#math/linear-algebra **Problem 1** For each of the following subsets of $F^3$, determine whether it is a subspace of $F^3$: 1. ${(x_{1},x_{2},x_{3}) \in F^3 : x_{1} + 2x_{2} + 3x_{3} = 0}$ 2. ${(x_{1},x_{2},x_{3}) \in F^3 : x_{1} + 2x_{2} + 3x_{3} = 4}$ 3. ${(x_{1},x_{2},x_{3}) \in F^3 : x_{1}x_{2}x_{3} = 0}$ 4. ${(x_{1},x_{2},x_{3}) \in F^3 : x_{1} = 5x_{3}}$ **Problem 1.1** $U = \{(x_{1},x_{2},x_{3}) \in F^3 : x_{1} + 2x_{2} + 3x_{3} = 0\}$ 1. $0 \in{} U$ 2. Let $x, y \in{} U$. Then if we have $x + y$ $ \begin{align} (x+y)&= (x_{1}+y_{1}) + 2(x_{2}+y_{2}) + 3(x_{3}+y_{3}) \\ &= (x_{1} + 2x_{2}+3x_{3}) + (y_{1} + 2y_{2} + 3y_{3}) \\ &= 0 + 0 \\ &=0 \end{align} $ 3. Let $u \in{} U$ and $c \in{} F$. Then if we have $cu$ $ \begin{align} c(u_{1}+2u_{2} + 3u_{3}) & = c(0) \\ & = 0 \end{align} $ $\therefore U$ is a subspace of $F^3$. **Problem 1.2** $U = \{(x_{1},x_{2},x_{3}) \in F^3 : x_{1} + 2x_{2} + 3x_{3} = 4\}$ 1. $0 \not\in U$. $(0,0,0)$ can not satisfy the constraint. $\therefore U$ is not a subspace of $F^3$. **Problem 1.3** $U = \{(x_{1},x_{2},x_{3}) \in F^3 : x_{1}x_{2}x_{3} = 0\}$ 1. $0 \in{} F^3$. 2. Let $u, v \in{} F^3$. $ \begin{align} u+v & = (u_{1}u_{2}u_{3}) + (v_{1}v_{2}v_{3}) \\ & = 0 + 0 \\ & = 0 \end{align} $ 3. Let $u \in{} F^3$ and $c\in{}F$. $ \begin{align} cu & = c(u_{1}u_{2}u_{3}) \\ & = c0\\ & = 0 \end{align} $ So $cu\in U$ $\therefore U$ is a subspace of $F^3$. **Problem 1.4** $U = \{(x_{1},x_{2},x_{3}) \in F^3 : x_{1} = 5x_{3}\}$ Before even fully answering... we know that the condition is linear and [[Homogenous Equation|Homogenous]] representing a plane or complex plane if $F=\mathbb{R}$ or $F=\mathbb{C}$, respectively. 1. $0 \in{} U$ 2. Let $u=(5u_{3},u_{2},u_{3}), v=(5v_{3},v_{2},v_{3}) \in{} U$ $ \begin{align} u+v & = (5u_{3},u_{2},u_{3}) + (5v_{3},v_{2},v_{3}) \\ & = (5(u_{3} + v_{3}), (u_{2}+v_{2}), (u_{3} + v_{3})) \end{align} $ 3. Let $c \in{} F, u \in{} U$. $ \begin{align} cu & = c(5u_{3}, u_{2}, u_{3}) \\ & = (5(cu_{3}),cu_{2}, cu_{3}) \end{align} $ $\therefore U$ is a subspace of $F^3$. --- **Problem 2** Verify all the assertions in Example 1.35. (a) If $b \in{} F$, then $ \{(x_{1},x_{2},x_{3},x_{4}) \in{} F^4 : x_{3} = 5x_{4}+b\} $ is a subspace of $F^4$ if and only if $b=0$. $(\Rightarrow)$Let $b=0$. $U = \{(x_{1},x_{2},5x_{4},x_{4}) \in{} F^4\}$ (1) $(0,0,0,0) \in{} U$ (2) Let $u = (a, b, 5d, d) : a,b,d \in{} F$ and $w=(x,y,5z, z) : x,y,z \in{} F$. $ \begin{align} u + w & = (a, b, 5d, d) + (x,y,5z,z) \\ & = (a + x, b + y, 5(d + z), d+z) \end{align} $ (3) Let $u = (a,b,5d,d)$ and $\alpha \in{} F$. $ \begin{align} \alpha u & = (\alpha a, \alpha b, 5(\alpha d), \alpha d) \end{align} $ $\therefore U$ is a subspace of $F^4$. $(\Leftarrow)$ Let $U$ be a subspace of $F^4$. $0 \in{} U$. Setting all the free variables to $0$, $(x_{1},x_{2},5x_{4}+b,x_{4}) = (0,0,b,0)$. $\therefore b = 0$ **** (b) The set of continuous real-valued functions on the interval $[0,1]$ is a subspace of $R^{[0,1]}$. Let $U = \{f \in{} R^{[0,1]}: f \text{ is continuous }\}$ . (1) $0 \in{} U$ since $f(x) = 0$ is continuous. (2) The sum of continuous functions, $(f + g)(x)$ is continuous. (3) Scaling a continuous function by $c \in{} \mathbb{R}$, $cf(x)$, is continuous. **** (c) The set of differentiable real-valued functions on $\mathbb{R}$ is a subspace of $\mathbb{R}^\mathbb{R}$. Let $U = \{f \in{} R^{R}: f \text{ is differentiable }\}$ . (1) $0 \in{} U$ since $f(x) = 0$ is differentiable. $f'(x) = 0$. (2) If $f \in{} U$ and $g \in{} U$, then $(f+g)(x) \in{} U$ is differentiable. $(f+g)'(x) = f'(x) + g'(x)$. (3) If $c\in{}\mathbb{R}$ and $f \in{} U$ then $cf \in{} U$ since $(cf)'(x) = cf'(x)$. **** (d) The set of differentiable real-valued functions $f$ on the interval (0, 3) such that $f'(2) = b$ is a subspace of $\mathbb{R}^{(0,3)}$ if and only if $b=0$. Let $U = \{f \in{} R^{(0,3)} : f\text{ is differentiable and }f'(2) = b \in{}\mathbb{R}\}$. Let $b = 0$ and $f'(2) = 0$. - (1) $0 \in{} U$, since $0'(x) = 0$. - (2) $f,g \in{} U$ then $(f + g)'(x) = f'(x) + g'(x)$. and $(f+g)'(2) = f'(2) + g'(2) = 0 + 0 = 0$. So $(f+g)(x) \in{} U$. - (3) $f \in{} U$ and $c \in{} \mathbb{\mathbb{R}}$. Then $(cf)(x) = cf(x)$ and $(cf)'(2) = cf'(2) = c(0) = 0$. So $cf(x) \in{} U$. Thus if $b=0$ then $U$ is a subspace of $R^{(0,3)}$ Let $U$ be a subspace of $\mathbb{R}^{(0,3)}$. Let $f,g \in{} U$ then $(f + g)'(x) = f'(x) + g'(x)$. and $(f+g)'(2) = f'(2) + g'(2) = b + b = 2b$. Thus $ \begin{align} b & =2b \\ \end{align} $ So $b=0$. $\therefore U \text{ is a subspace of } \mathbb{R}^{(0,3)} \iff b=0$. Without any proofs we know if we add two functions with b not equaling 0, then we'd just end up with 2b. Which means it wouldn't hold that two functions in the space added together are also in the space. **** (e) The set of all sequences of complex numbers with limit $0$ is a subspace of $C^{\infty}$. Let $U = \{(x_{1}, x_{2}, \dots) : x_{i} \in{} C \text{ for } i = 1, 2, \dots \text{ and } \lim_{ i \to \infty } x_{i} = 0\}$. (1) $0 \in{} U$ since $\lim_{ i \to \infty } 0_{i} = 0$. (2) If $x, y \in{} U$, then $\lim_{ i \to \infty }(x_{i}+y_{i}) = \lim_{ i \to \infty }x_{i} + \lim_{ i \to \infty } y_{i} = 0 + 0 = 0$ (3) If $x \in{} U$ and $c\in{}C$, then $\lim_{ i \to \infty }(cx_{i}) = c\left(\lim_{ i \to \infty }x_{i}\right) = c0 = 0$. Thus $U$ is a subspace of $C^{\infty}$. **** **Problem 3** Show that the set of differentiable real-valued functions $f$ on the interval $(-4,4)$ such that $f'(-1) = 3f(2)$ is a subspace of $\mathbb{R}^{(-4,4)}$. Let $U = \{f\in{}\mathbb{R}^{(-4,4)} : f \text{ is differentiable and } f'(-1)=3f(2)\}$ 1. $0 \in U$. Since $0'(-1) = 0 = 3(0(2))$. 2. Let $u, v \in{} U$. Then . $ \begin{align} (u+v)'(-1) & = u'(-1) + v'(-1) & \text{ Definition for Sum of Functions}\\ & = 3u(2) + 3v(2) \\ & = 3(u+v)(2) & \text{ Definition for Sum of Functions} \end{align} $ 3. Let $c \in{} \mathbb{R}, u \in{} U$. Then . $ \begin{align} (cu)(-1) & = c(u(-1)) & \text{ Definition for Product with Function} \\ & = c(3u(2)) \\ & 3((cu)(2)) \end{align} $ $\therefore$ the set of differentiable real-valued functions $f$ on the interval $(-4,4)$ such that $f'(-1) = 3f(2)$ is a subspace of $\mathbb{R}^{(-4,4)}$. --- **Problem 4** Suppose $b \in \mathbb{R}$. Show that the set of continuous real-valued functions $f$ on the interval $[0,1]$ such that $\int_0^1 f = b$ is a subspace of $\mathbb{R}^{[0,1]}$ if and only if $b = 0$. Let $U = \{f \in{} \mathbb{R}^{[0,1]} : f \text{ is continuous and }\int_{0}^{1} f\, = b\}$. $\Rightarrow$ Let $U$ be a subspace of $F^{[0,1]}$ and $u \in U, c \in \mathbb{R}$. So, $\int_{0}^{1} \,cu = c\int_{0}^{1} \, u = cb$. For $cb = b$ to be true, it must be that $b = 0$. $\Leftarrow$ Let $b=0$. 1. $0 \in U$ 2. Let $u, v \in U$ $ \begin{align} \int_{0}^{1} \, (u+v) & = \int_{0}^{1} \, u + \int_{0}^{1} \, v & \text{Definition of Addition of Integrals}\\ & =b + b \\ & = 0 + 0 \\ & = 0 \end{align} $ 3. Let $c \in \mathbb{R}, u \in U$. $ \begin{align} \int_{0}^{1} \, cu & = c \int_{0}^{1} \, u & \text{ Definition of Mul with Integral}\\ & =c (b) \\ & = c(0) \\ & =0 \end{align} $ So, $U$ is a subspace of $\mathbb{R}^{[0,1]}$. $\therefore$ The set of continuous real-valued functions $f$ on the interval $[0,1]$ such that $\int_0^1 f = b$ where $b \in \mathbb{R}$ is a subspace of $\mathbb{R}^{[0,1]}$ if and only if $b = 0$. --- **Problem 5** Is $\mathbb{R}^2$ a subspace of the complex vector space $\mathbb{C}^2$? No. If $c=i \in \mathbb{C}, x=(1,1)\in \mathbb{R}^2$, then $cx = (i,i) \not\in \mathbb{R}^2$ --- **Problem 6** **(a)** Is ${(a,b,c) \in \mathbb{R}^3 : a^3 = b^3}$ a subspace of $\mathbb{R}^3$? **(b)** Is ${(a,b,c) \in \mathbb{C}^3 : a^3 = b^3}$ a subspace of $\mathbb{C}^3$? **Problem 6A** Is $U = \{(a,b,c) \in \mathbb{R}^3 : a^3 = b^3\}$ a subspace of $\mathbb{R}^3$? 1. $0 \in U$ 2. Let $x,y \in U$. Then $ \begin{align} (x+y) & = (x_{1}+y_{1}, x_{2}+y_{2},x_{3}+y_{3}) \\ & = (x_{1}+y_{1}, x_{1}+y_{1},x_{3}+y_{3}) & \text{Since } x \mapsto x^{3} \text{ is injective on R }\\ & \in U \end{align} $ 3. Let $x \in U, a\in \mathbb{R}$. Then $ \begin{align} ax & =(ax_{1},ax_{2},ax_{3}) \\ & =(ax_{1},ax_{1},ax_{3}) & \text{ Since } x \mapsto x^{3} \text{ is injective on R }\\ & \in U & \text{ Since } (ax_{1})^{3}=(ax_{2})^{3} \end{align} $ $\therefore U$ is a subspace of $\mathbb{R}^{3}$ **Problem 6B** Is $U=\{(a,b,c) \in \mathbb{C}^3 : a^3 = b^3\}$ a subspace of $\mathbb{C}^3$? We hinged the previous proof on the fact that $f(x)=x^{3}$ is an [[Injective Function]] allowing us to conclude that if $a^3=b^3$ then $a=b$ . This is not always the case when $a,b\in \mathbb{C}$. So, to disprove, we want to find a value of $a$ and $b$ such that $a^{3}=b^{3}$ but $a\neq b$. Then when we add it with another term $u \in U$, we'll _probably_ end up with something $\not\in U$. So lets look at the [[Roots of Polynomials|roots]] of the function. $ \begin{align} a^{3} - b^{3} & =0 \\ (a-b)(a^2+ab+b^2) & =0 \\ \end{align} $ For the first term, we get $a=b$, which is not we're looking for so lets rule that out. The roots of the second term, treating $b$ as the constant, are $ \begin{align} a & = \frac{-b\pm \sqrt{b^2-4b^2}}{2} \\ & = \frac{-b\pm \sqrt{-3b^2}}{2} \\ & = \frac{-b\pm (\sqrt{3})bi}{2}\\ & = b\frac{-1\pm (\sqrt{3})i}{2} \end{align} $ This is a generic formula for values of a relative to b which satisfy $a^{3}=b^{3}$. For a concrete counter example, choose $b=1$, then $ a = \frac{-1\pm (\sqrt{3})i}{2} $ Clearly, $a\neq b$ and $a^{3}=b^{3}$. Now, (choosing the positive radical root), let $u = (\frac{-1 + (\sqrt{3})i}{2}, 1, 0) \in U \quad\text{ Since }u_{1}^3=u_{2}^3$ and $ v = \left( \frac{1}{2}, -1, 0 \right) $ Now $u+v = \left( \frac{\sqrt{3}}{2}i, 0 , 0\right)$, but $\left( \frac{\sqrt{3}}{2}i \right)^{3}=-\frac{3\sqrt{3}i}{8} \neq \left(0\right)^3$ So $(u+v)\not\in U$. $\therefore U$ is not a subspace of $\mathbb{R}^{3}$ --- **Problem 7** Give an example of a nonempty subset $U$ of $\mathbb{R}^2$ such that $U$ is closed under addition and under taking additive inverses (meaning $-u \in U$ whenever $u \in U$), but $U$ is not a subspace of $\mathbb{R}^2$. Since the inverse implies $0\in U$, we'd want an example where $\lambda \in R, u\in U, \text{ but }\lambda u\not\in U$. Let $ U = \{(-1,1), (1, -1), (0,0)\} $ Evidently each element has an additive inverse. For closure under addition we have $(-1,1) + (1,-1) = (0,0) \in U$ $(-1,1) + (0,0) = (-1, 1)\in U$ $(1,-1) + (0,0) = (1, -1)\in U$ But, $3(-1,1) = (-3, 3) \not\in U$. So $U$ is not a subspace of $\mathbb{R}^2$. --- **Problem 8** Give an example of a nonempty subset $U$ of $\mathbb{R}^2$ such that $U$ is closed under scalar multiplication, but $U$ is not a subspace of $\mathbb{R}^2$. Scalar multiplication probably means we need an infinitely large set. Let $ U = \{(a,b) \in \mathbb{R}^2 : a=0 \text{ or } b= 0\} $ Evidently $U$ is closed under scalar multiplication $(0, \lambda b) \text{ and } (\lambda a, 0) \in U.$ Then, $(0, 1) \in U \text{ and } (1,0) \in U$, but $(0,1) + (1,0) = (1,1) \not\in U$. So, $U$ is not a subspace. --- **Problem 9** A function $f : \mathbb{R} \to \mathbb{R}$ is called periodic if there exists a positive number $p$ such that $f(x) = f(x + p)$ for all $x \in \mathbb{R}$. Is the set of periodic functions from $\mathbb{R}$ to $\mathbb{R}$ a subspace of $\mathbb{R}^\mathbb{R}$? Explain. Intuition says yes because frequency waves when added together are still periodic. Let $ U = \{f \in \mathbb{R}^\mathbb{R} : f(x) = f(x+p) \} $ 1. $0 \in U$ 2. Let $f \in U, \lambda \in \mathbb{R}$. Then $(\lambda f)(x) = \lambda(f(x)) = \lambda(f)(x+p) = (\lambda f)(x+p)$ 3. Let $f, g \in U$. Then $f(x) = f(x+p) \text{ and } g(x) = g(x+p).$ $(f+g)(x) = f(x)+g(x).$ $= f(x+p) + g(x+p) = (f+g)(x+p).$ So $U$ is a subspace of $\mathbb{R}^\mathbb{R}$. --- **Problem 10** Suppose $U_{1}$ and $U_{2}$ are subspaces of $V$. Prove that the intersection $U_{1} \cap U_{2}$ is a subspace of $V$. Let $I = U_{1}\cap U_{2}$ 1. Since $0\in U_{1}$ and $0\in U_{2}$, $0 \in I$. 2. Let $i,j \in I$. Then $i,j\in U_{1}$ and $i,j\in U_{2}$ and $U_{1}, U_{2}$ are closed under addition, so $(i+j) \in U_{1} \text{ and } (i+j) \in U_{2} \implies (i+j)\in I$. 3. Let $i\in I, \lambda \in F$. Since $i\in U_{1} \implies \lambda i \in U_{1}$ and $i\in U_{2}\implies \lambda i\in U_{2}$. $\therefore i\in I.$ So $I$ is a subspace of $V.$ --- **Problem 11** Prove that the intersection of every collection of subspaces of $V$ is a subspace of $V$. Let $ I = \bigcap_{\alpha \in A} U_{\alpha} \text{ where } A \text{ is an arbitrary indexing set}$ 1. Since $0 \in U_{\alpha}$ for every $\alpha \in A$, $0 \in I$. 2. Let $x, y \in I$. Then $x, y \in U_{\alpha}$ for every $\alpha \in A$. Since each $U_{\alpha}$ is a subspace, $x + y \in U_{\alpha}$ for every $\alpha \in A$. $\therefore (x+y) \in I$. 3. Let $x \in I, \lambda \in F$. Since $x \in U_{\alpha} \implies \lambda x \in U_{\alpha}$ for every $\alpha \in A$. $\therefore \lambda x \in I.$ So $I$ is a subspace of $V.$ --- **Problem 12** Prove that the union of two subspaces of $V$ is a subspace of $V$ if and only if one of the subspaces is contained in the other. Let $U_{1},U_{2}$ be subspaces of $V$ and $U=U_{1}\cup U_{2}$ ($\Rightarrow$) Assume $U$ is a subspace. Assume towards a contradiction, that $U_{1} \not\subseteq U_{2}$ and $U_{2} \not\subseteq U_{1}$. Since $U_{1} \not\subseteq U_{2}$ there exists a $u\in U_{1}$ with $u\not\in U_{2}$. And since $U_{2} \not\subseteq U_{1}$ and there exists $w\in U_{2}$ with $w\not\in U_{1}$. Since $U$ is a subspace, $(u+w) \in U$. Then either $(u+w) \in U_{1}$ or $(u+w)\in U_{2}$. Without loss of generality, $(u+w) \in U_{1}$, then $-u + (u + w) \in U_{1} \implies w\in U_{1}$. Which is a contradiction. $\therefore U_{1}\subseteq U_{2} \text{ or } U_{2}\subseteq U_{1}$ $(\Leftarrow)$ Assume without loss of generality that $U_{1}\subseteq U_{2}$. Then $U_{1}\cup U_{2}=U_{2}$. $\therefore U_{1}\cup U_{2}$ is a subspace. The union of two subspaces of $V$ is a subspace of $V$ if and only if one of the subspaces is contained in the other. >[!Example] >Consider $U_{1}=\{(x,0) \in \mathbb{R}^2\}$ and $U_{2}=\{(0,x)\in \mathbb{R}^2\}$. --- **Problem 13** Prove that the union of three subspaces of $V$ is a subspace of $V$ if and only if one of the subspaces contains the other two. Let $U = U_{1}\cup U_{2}\cup U_{3}$ $(\Rightarrow)$ Assume $U$ is a subspace of $V$. **Case A:** WLOG, assume $U_{1}\cup U_{2}$ is not a subspace, (by problem 12 we know neither is a subset of the other). Then there exists $u\in U_{1}-U_{2}$ and $w\in U_{2}-U_{1}$. Then $(u+w) \not\in U_{1}\cup U_{2}$. (Proof: Suppose $u+w\in U_{1}$, then $w=u+w+(-u)\in U_{1}$ contradicting $w\in U_{2}-U_{1}$. Suppose $u+w\in U_{2}$, then $u=u+w+(-w)\in U_{2}$ contradicting $u\in U_{1}-U_{2}$). WLOG, Let $u'\in U_{1}$. $\text{If }(u'\in U_{2})$ then consider $v=u'+w+u$. - $v\not\in U_{1}$ : ATC $v\in U_{1}\implies(-u')+v=(-u')+u+w+u=w+u\in U_{1}$. But $w+u\not\in U_{1}\implies v\not\in U_{1}$ - $v\not\in U_{2}$ : ATC $v\in U_{2}\implies(-u')+v=(-u')+u+w+u=w+u\in U_{2}$. But $w+u\not\in U_{2}\implies v\not\in U_{2}$ - Since $u'+w+u$ lies in $U$, then it must be $u'+w+u \in U_{3}$ since $U$ is a subspace. Then $u'=-(w+u) + (u'+w+u) \in U_{3}$. $\text{If }(u'\not\in U_{2})$ then consider $v= u'+\lambda w : \lambda \in F$. - $v\not\in U_{1}$ : ATC $v = u' + \lambda w\in U_{1}\implies-u'+u'+\lambda w\in U_{1}\implies w\in U_{1}$. But $w\not\in U_{1}\implies v\not\in U_{1}$ - $v \not\in U_{2}$ : ATC $v = u'+\lambda w\in U_{2}\implies-\lambda w+u'+\lambda w\in U_{2}\implies u'\in U_{2}$. But $u'\not\in U_{2}\implies v\not\in U_{2}$. - Since $v=u'+\lambda w \in U \implies u'+\lambda w\in U_{3}$ since $U$ is a subspace. _We want to isolate $u'$ so we need to manipulate multiple $\lambdas._ Choose $\lambda=1,2$. $u'+1w, u'+2w\in U_{3} \implies 2(u'+1w) + -(u'+2w)=u'\implies u'\in U_{3}$. Note we need two **non-zero** values for $\lambda$. We cannot choose $\lambda=0$ due to division by 0 in an earlier step. This means its a requirement that $|F|\geq_{}3$, thus excluding vector spaces over [[GF(2)|F_2]]. Thus in any case $u'\in U_{3}$. Similarly, a $w'\in U_{2}$ has $w'\in U_{3}$. $\therefore U_{1}\subseteq U_{3}$ and $U_{2}\subseteq U_{3}$. **Case B:** WLOG, assume $U_{1}\cup U_{2}$ is a subspace. WLOG, by Problem 12, assume $U_{2}\subseteq U_{1} \implies U_{1}\cup U_{2} = U_{1}$. Since $U$ is a subspace, it must be $(U_{1}\cup U_{2})\subseteq U_{3}$ or $U_{3}\subseteq (U_{1}\cup U_{2})=U_{1}$. In either case, one subspace contains the other two. $(\Leftarrow)$ WLOG, assume that $U_{3}\subseteq U_{1}$ and $U_{2}\subseteq U_{1}$—so no loss in generality by picking $U_{1}$ as the container. Then $U=U_{1}\cup U_{2}\cup U_{3}=U_{1}$. $\therefore U$ is a subspace. The union of three subspaces of $V$ is a subspace of $V$ if and only if one of the subspaces contains the other two. $\quad \blacksquare{}$ >[!Tip] >If $x + y\in U$ it does not mean $x,y\in U$. Take for example, $x=(1,0), y=(0,1)$ and $U=\{(a,a)\in \mathbb{R}^2\}$. However, if $x+y\in U$ and $x \in U \implies y\in U$ since $-x \in U$. --- **Problem 14** Verify the assertion in Example 1.38. Suppose that $U=\{(x,x,y,y)\in F^4:x,y\in F\}$ and $W=\{(x,x,x,y)\in F^4:x,y,z \in F\}$. Prove that $ U+W=\{(x,x,y,z)\in F^{4}:x,y,z\in F\} = S $ $(\Rightarrow)$ $U+W\subseteq S$ Suppose $u=(a,a,b,b)\in U:a,b\in F$ and $w=(c,c,c,d)\in W: c,d\in F$. Then $ \begin{align} u+w & =(a+c,a+c, b + c, b + d) \end{align} $ Since all $a,b,c,d\in F$, let $x=a+c, y=b+c, z=b+d$ then we can rewrite $ u+w=(x,x,y,z) : x,y,z\in F $ $U+W\subseteq S$ $(\Leftarrow)$ $S \subseteq U + W$ Let $s \in S$, then $s=(x,x,y,z) : x,y,z\in F$. Then we need a $u=(a,a,b,b)\in U:a,b\in F$ and $w=(c,c,c,d)\in W: c,d\in F$ such that $ \begin{align} a+c & =x \\ b+c & =y \\ b+d & =z \\ \end{align} $ Conveniently set $b=0$. $ \begin{align} a+c & =x \\ c & =y \\ d & =z \\ \end{align} $ Then we get $u=(x-y,x-y,0,0)\in U$ and $w=(y,y,y,z)\in W$. Checking $ \begin{align} u+w & =(x-y,x-y,0,0) + (y,y,y,z) \\ & =(x,x,y,z) \\ & = s \end{align} $ $\therefore S \subseteq U+W$ So, $S = U + W\quad \blacksquare{}$ > [!Insight] > The solution set for a fixed $s$ is a proper subset of $U \times W$. Although we can vary $b$, this line would not cover all of U or W—it's just a sliver (1D [[Affine Subspace]]) and particularlly dependent set of pairs of u's and w's. Across all possible values of $s \in S$, we can cover all of U and W (direct consequence from the definition of S). Additionally, the $b$ we set to 0 is the key to spanning the **intersection** of U and W, $\{\alpha,\alpha,\alpha,\alpha :\alpha \in F\}$. This intersection allows us to shift the weight between u and w for each s. Let $v=(b,b,b,b)\in U\cap W$. Then, $(s=u+w\to s = u + 0 + w$ $\to s = u + (v + -v) + w$ $\to s =(u+v) + (-v + w)$. And $u+v\in U, -v+w\in W$. --- **Problem 15** Suppose $U$ is a subspace of $V$. What is $U + U$? It should be equal to $U$. Let $S= U+U=\{u+w : u,w\in U\}$. First, we show $S\subseteq U$. Let $u\in U$. Since $U$ is a subspace, $0 \in U$. Then $u = u + 0 \in S$. $\therefore U \subseteq S$. Second, we show $U\subseteq S$. Let $s = u + w\in S$. By definition $u, w \in U$. Since $U$ is a subspace, and closed under addition, $s=(u+w)\in U$. $\therefore$ $S \subseteq U$. Thus, $S=U\quad \blacksquare{}$ --- **Problem 16** Is the operation of addition on the subspaces of $V$ commutative? In other words, if $U$ and $W$ are subspaces of $V$, is $U + W = W + U$? Yes. Since $V$ is a vector space, it is commutative. Since $U$ and $W$ are subspaces of $V$, elements of each also belong to $V$. $u\in U\subseteq V$ and $w\in W\subseteq V$. $ \begin{align} U+W & =\{(u+w) : u\in U , w\in W \} \\ & = \{(w+u) : u\in U , w\in W \} & \text{Commutativity of elements in }V \\ & =W+U \end{align} $ Thus, if $U$ and $W$ are subspaces of $V$, then $U + W = W + U$. $\quad \blacksquare{}$ --- **Problem 17** Is the operation of addition on the subspaces of $V$ associative? In other words, if $U_{1}, U_{2}, U_{3}$ are subspaces of $V$, is $(U_{1} + U_{2}) + U_{3} = U_{1} + (U_{2} + U_{3})?$ Yes since $U_{1},U_{2},U_{3}$ are subspaces, every element $u\in U_{i}\subseteq V$. And the vector space, $V$, requires associativity over all its elements $(u + v) + w = u + (v+w) \quad\forall u,v,w\in V$. $ \begin{align} (U_{1}+U_{2}) + U_{3} & =\{(u_{1}+u_{2}) : u_{1}\in U_{1} , u_{2}\in U_{2} \} + U_{3}\\ & =\{(u_{1}+u_{2}) +u_{3} : u_{1}\in U_{1} , u_{2}\in U_{2}, u_{3}\in U_{3} \} \\ & =\{u_{1}+(u_{2} +u_{3}) : u_{1}\in U_{1} , u_{2}\in U_{2}, u_{3}\in U_{3} \} & \text{Assoc. of V}\\ & = U_{1}+ \{(u_{2} +u_{3}) : u_{2}\in U_{2}, u_{3}\in U_{3} \} \\ & = U_{1}+ (U_{2}+U_{3}) \end{align} $ Thus, $(U_1 + U_2) + U_3 = U_1 + (U_2 + U_3) \quad \blacksquare$ --- **Problem 18** Does the operation of addition on the subspaces of $V$ have an additive identity? Which subspaces have additive inverses? --- Claim: $\{0\}$ is the additive inverse on subspaces of $V$. Let $Z = \{0\}$. Let $U$ be an arbitrary subspace of V. We will show $U = U + Z$. First, we show $U \subseteq U + Z$. Let $u\in U$. Then $u = u + 0 \in U + Z$. Thus, $U \subseteq U + Z$. Second, we show $U + Z \subseteq U$. Let $v \in U+Z$. By definition, $v = u + 0$ where $u\in U$. Thus, $U + Z \subseteq U$. Thus $U+Z=U.\quad \blacksquare{}$ Thus, the operation of addition on subspaces of $V$ have an additive identity. --- Claim: Only the trivial subspace, $Z=\{ 0 \}$, has an additive inverse. Let U be an arbitrary subspace of V. For U to have an additive inverse, there must be a subspace $W$ such that $U + W = Z = \{0\}$. Case 1: $U=\{0\}$. Then, $U + U = \{0\} + \{0\} = \{0\} = Z$. Thus a subspace $\{ 0 \}$ has an additive inverse. Case 2: $U \neq \{ 0 \}$, then there must exist at least one non-zero element. Let $u\in U$ be the non-zero element of U. Since $W$ is a subspace, $0\in W$. Then, $u + 0 \in U+W$. However, $Z =\{ 0 \}$, forcing $u=0$. However, this contradicts the premise that $u$ is nonzero. Thus for an arbitrary subspace $U \neq \{ 0 \}$, it does not have an additive inverse. Therefore, the only the trivial subspace, $Z=\{ 0 \}$, has an additive inverse. $\quad \blacksquare{}$ --- **Problem 19** Prove or give a counterexample: if $U_{1}, U_{2}, W$ are subspaces of $V$ such that $U_{1} + W = U_{2} + W,$ then $U_{1} = U_{2}$. Claim: the statement is False. Let $U_{1}=\{0\}, U_{2} = W = \{x : x \in \mathbb{R}\}$. Then $U_{1}+W=W$ by the additive identity over addition of subspaces. And, as previously shown, $U_{2}+W=W+W=W$. Since, $U_{1} \neq U_{2}$ it is not necessarily case that if $U_{1}, U_{2}, W$ are subspaces of $V$ such that $U_{1} + W = U_{2} + W,$ then $U_{1} = U_{2}$. $\quad \blacksquare{}$ --- **Problem 20** Suppose $ U = {(x, x, y, y) \in F^4 : x, y \in F} $ Find a subspace $W$ of $F^4$ such that $F^4 = U \oplus W$. Let $ W = \{ (0, a,b,0)\in F^{4}: a,b \in F \} $ Claim: $U\oplus W=F^{4}$. Proof: We will show that $U+W=F^{4}$ and $U\cap W=\{ 0 \}$. First, $U+W\subseteq F^{4}$. Let $v\in U+W$. By definition $v=u+w$ where $u=(x,y,y,x)$ with $x,y \in F$ and $w=(0,a,b,0)$ with $a,b \in F$. $ \begin{align} v & = u + w \\ & =(x,x,y,y) + (0,a,b,0) \\ & =(x, x + a, y + b, y) \end{align} $ Since $x,y,a,b\in F$ they are closed under addition of $F$. Thus, $v\in F^{4}$ and $U+W\subseteq F^{4}$. Second, $F^{4}\subseteq U+W$. Let $v\in F^{4}$. Let $v=(a,b,c,d)$ with $a,b,c,d\in F$. Let $u=(a,a,d,d)\in U$ and $w=(0,b-a,c-d,0)\in W$. then $v = u + w$ $= (a, a, d, d) + (0, b-a, c-d, 0) = (a,b,c,d)$ So, $v\in U+W$. Thus, $F\subseteq U+W$. Finally, $U\cap W=\{ 0 \}$. Let $v\in U\cap{}W$. Then, by definition, $v=(x,x,y,y)\in U$ with $x,y\in F$ and $v=(0,a,b,0)$ with $a,b,\in F.$ Equating these two together we get $ (x,x,y,y)=(0,a,b,0) $ By the first and fourth elements of each list, $x=0$ and $y=0$. So, $v=(0,0,0,0)$. Thus, for an arbitrary $v\in U\cap W$, $v= 0$ and $U\cap W=\{ 0 \}$. Therefore, $U\oplus{}W=F^{4}.\quad \blacksquare{}$ --- **Problem 21** Suppose $U = {(x, y, x+y, x-y, 2x) \in F^5 : x, y \in F}.$ Find a subspace $W$ of $F^5$ such that $F^5 = U \oplus W$. Let $ W = \{ (0,0,a,b,c) : a,b,c \in F\} $ Claim: $U\oplus W=F^{5}$. Proof: We will show that $U+W=F^{5}$ and $U\cap W=\{ 0 \}$. First, $U+W\subseteq F^{5}$. Let $v\in U+W$. Then, by definition, $v=u+w$ where $u\in U$ and $w\in W$. Assume $ \begin{align} v & =(x,y,x+y,x-y,2x) + (0,0,a,b,c) \\ & =(x+0,y+0,x+y+a,x-y+b,2x+c) \end{align} $ where $x,y,a,b,c\in F$. Since $F$ is closed under addition, each element of $v$ is in $F$. Thus, $v\in F^{5}$ and $U+W\subseteq F^{5}$. Second, $F^{5}\subseteq U+W$. Let $v\in F^{5}$. Then, $v=(a,b,c,d,e)$ with $a,b,c,d,e\in F$. Let $u=(a,b,a+b,a-b,2a)\in U$ and $w=(0,0,c-a,d-a,e-2a)\in W$. Observe that $v$ can be decomposed into $u+w$. $ \begin{align} v & =u+w \\ & = (a, b, a + b, a - b, 2a) + (0,0,c-a-b, d-a+b, e-2a) \end{align} $ Thus, $v\in U+W$ and $F^{5}\in U+W$. Finally, $U\cap W=\{ 0 \}$. Let $v\in U\cap W$. Then $v=(x, y, x+y, x-y, 2x)\in U$ with $x,y\in F$ and $w=(0,0,a,b,c)$ with $a,b,c\in F$. Equating these two each other $ (x, y, x+y, x-y, 2x)= (0,0,a,b,c) $ the first and second elements each each list forces $x=0$ and $y=0$. Plugging this back in we get $ (0, 0, 0, 0, 0)= (0,0,a,b,c) $ by the third, fourth, and fifth elements of each list $a=0, b=0, $and $c=0$. Thus for an arbitrary $v\in U\cap W, v= 0$. Thus, $U\cap W=\{ 0 \}$ and $U\oplus W$. Thus $U\oplus W=F^{5}. \quad \blacksquare{}$ --- **Problem 22** Suppose $U = {(x, y, x+y, x-y, 2x) \in F^5 : x, y \in F}.$ Find three subspaces $W_{1}, W_{2}, W_{3}$ of $F^5$, none of which equals ${0}$, such that $F^5 = U \oplus W_{1} \oplus W_{2} \oplus W_{3}$. Continuing from Problem 21, let $W= \{ (0,0,a,b,c) : a,b,c \in F\}$, then $U\oplus W=F^{5}$. Then finding a $W_{1},W_{2},W_{3}$ such that $W=W_{1}\oplus W_{2}\oplus W_{3}$ will suffice to satisfy $F^{5}=U\oplus W_{1}\oplus W_{2}\oplus W_{3}$. Let $ \begin{align} W_{1} & =\{ (0,0,a,0,0) \in F^{5} : a \in F \} \\ W_{2} & =\{ (0,0,0,b,0) \in F^{5} : b \in F \} \\ W_{3} & =\{ (0,0,0,0,c) \in F^{5} : c \in F \} \\ \end{align} $ Claim: $W_{1}\oplus W_{2}\oplus W_{3}=W$ Proof: We will show that $W_{1}+W_{2}+W_{3}\subseteq W$, $W\subseteq W_{1}+W_{2}+W_{3}$, and $W_{1}\cap W_{2}=\{ 0 \}$ and $(W_{1} + W_{2})\cap W_{3}$. Evidently, $W=W_{1}+W_{2}+W_{3}$. Second, suppose $w_{1}\in W_{1},w_{2}\in W_{2},w_{3}\in W_{3}$ such that $0=w_{1}+w_{2}+w_{3}$ $=(0,0,a,0,0) + (0,0,0,b,0) + (0,0,0,0,c)$. This forces $a=b=c=0$. Thus, $W=W_{1}\oplus W_{2}\oplus W_{3}.$ Thus, $U\oplus W=U\oplus W_{1}\oplus W_{2}\oplus W_{3}=F^{5}.\quad \blacksquare{}$ --- **Problem 23** Prove or give a counterexample: if $U_{1}, U_{2}, W$ are subspaces of $V$ such that $V = U_{1} \oplus W \quad \text{and} \quad V = U_{2} \oplus W,$ then $U_{1} = U_{2}$. Claim: the statement is false. Proof: Let $V=\{ (x,y)\in \mathbb{R}^{2} \}$ and $W=\{ (0,x)\in \mathbb{R}^{2}\}$ and $U_{1}=\{ (y,y) \in \mathbb{R}^{2}\}$ and $U_{2}=\{ (z,0)\in \mathbb{R}^{2} \}$. Clearly, $U_{1}\oplus W=V$ and $U_{2}\oplus W=V$ but $U_{2}\neq U_{1}$. >[!Note] >The direct sum of two subspaces does resemble the union of two disjoint sets, $U$ and $W$, (excluding the element 0) into the universal set. But, unlike union of disjoint sets, if $W$ is fixed, it is not necessarily the case that $U$ is unique. --- **Problem 24** A function $f : \mathbb{R} \to \mathbb{R}$ is called **even** if $f(-x) = f(x)$ for all $x \in \mathbb{R}$. A function $f : \mathbb{R} \to \mathbb{R}$ is called **odd** if $f(-x) = -f(x)$ for all $x \in \mathbb{R}$. Let $U_{e}$ denote the set of real-valued even functions on $\mathbb{R}$ and let $U_{o}$ denote the set of real-valued odd functions on $\mathbb{R}$. Show that $\mathbb{R}^\mathbb{R} = U_{e} \oplus U_{o}$. **Motivation**: For any function, split it across the y-axis and create an even and odd function based on the RHS of the y-axis. Repeat again for the y-axis. ```tikz \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[->,gray] (-4.6,0) -- (4.6,0) node[right,black] {$x$}; \draw[->,gray] (0,-1.9) -- (0,1.9) node[above,black] {$y$}; % left half (x <= 0), now ending at the origin \draw[blue,very thick] plot[smooth] coordinates {(-4,1.7) (-3.2,1.2) (-2.4,0.72) (-1.6,0.30) (-0.8,0.05) (0,0)}; % right half (x >= 0) \draw[blue,very thick] plot[smooth] coordinates {(0,0) (0.6,0.85) (1.2,1.0) (1.9,0.5) (2.5,-0.05) (3.1,-0.45) (3.6,-0.32) (4,-0.12)}; \node[blue] at (-3,1.55) {$f(x),\ x\le 0$}; \node[blue] at (2.6,1.25) {$f(x),\ x>0$}; \node at (-4,2.5) {$f(x)$}; \end{tikzpicture} \end{document} ``` ```tikz \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=0.75] % ---------- o1 (odd) ---------- \draw[->,gray] (-4.6,0) -- (4.6,0) node[right,black] {$x$}; \draw[->,gray] (0,-1.9) -- (0,1.9) node[above,black] {$y$}; \draw[blue,very thick] plot[smooth] coordinates {(0,0) (0.6,0.85) (1.2,1.0) (1.9,0.5) (2.5,-0.05) (3.1,-0.45) (3.6,-0.32) (4,-0.12)}; \begin{scope}[scale=-1] \draw[red,very thick] plot[smooth] coordinates {(0,0) (0.6,0.85) (1.2,1.0) (1.9,0.5) (2.5,-0.05) (3.1,-0.45) (3.6,-0.32) (4,-0.12)}; \end{scope} \node[blue] at (1.5,1.35) {$f(x)$}; \node[red] at (-1.8,-1.3) {$-f(-x)$}; \node at (-4,2.5) {$o_1(x)$}; % ---------- e1 (even), shifted right ---------- \begin{scope}[shift={(11,0)}] \draw[->,gray] (-4.6,0) -- (4.6,0) node[right,black] {$x$}; \draw[->,gray] (0,-1.9) -- (0,1.9) node[above,black] {$y$}; \draw[blue,very thick] plot[smooth] coordinates {(0,0) (0.6,0.85) (1.2,1.0) (1.9,0.5) (2.5,-0.05) (3.1,-0.45) (3.6,-0.32) (4,-0.12)}; \begin{scope}[xscale=-1] \draw[red,very thick] plot[smooth] coordinates {(0,0) (0.6,0.85) (1.2,1.0) (1.9,0.5) (2.5,-0.05) (3.1,-0.45) (3.6,-0.32) (4,-0.12)}; \end{scope} \node[blue] at (1.5,1.35) {$f(x)$}; \node[red] at (-1.5,1.35) {$f(-x)$}; \node at (-4,2.5) {$e_1(x)$}; \end{scope} \end{tikzpicture} \end{document} ``` ```tikz \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=0.75] % ---------- o2 (odd) ---------- \draw[->,gray] (-4.6,0) -- (4.6,0) node[right,black] {$x$}; \draw[->,gray] (0,-1.9) -- (0,1.9) node[above,black] {$y$}; \draw[blue,very thick] plot[smooth] coordinates {(-4,1.7) (-3.2,1.2) (-2.4,0.72) (-1.6,0.30) (-0.8,0.05) (0,0)}; \begin{scope}[scale=-1] \draw[red,very thick] plot[smooth] coordinates {(-4,1.7) (-3.2,1.2) (-2.4,0.72) (-1.6,0.30) (-0.8,0.05) (0,0)}; \end{scope} \node[blue] at (-2.7,1.55) {$f(x)$}; \node[red] at (2.7,-1.55) {$-f(-x)$}; \node at (-4,2.5) {$o_2(x)$}; % ---------- e2 (even), shifted right ---------- \begin{scope}[shift={(11,0)}] \draw[->,gray] (-4.6,0) -- (4.6,0) node[right,black] {$x$}; \draw[->,gray] (0,-1.9) -- (0,1.9) node[above,black] {$y$}; \draw[blue,very thick] plot[smooth] coordinates {(-4,1.7) (-3.2,1.2) (-2.4,0.72) (-1.6,0.30) (-0.8,0.05) (0,0)}; \begin{scope}[xscale=-1] \draw[red,very thick] plot[smooth] coordinates {(-4,1.7) (-3.2,1.2) (-2.4,0.72) (-1.6,0.30) (-0.8,0.05) (0,0)}; \end{scope} \node[blue] at (-2.7,1.55) {$f(x)$}; \node[red] at (2.7,1.55) {$f(-x)$}; \node at (-4,2.5) {$e_2(x)$}; \end{scope} \end{tikzpicture} \end{document} ``` We can visually see that adding all the functions together will give us $2f(x)$. Multiplying $o_{1}, o_{2}, e_{1}, e_{2}$ by $\frac{1}{2}$ will give us $f(x)$. Additionally, we can surmise that adding two odd functions and two even functions results in an odd and even function, respectively. **Proof**: First, show $U_{e}$ and $U_{o}$ are subspaces. The trivial function, $0$, is an element of and $U_{e}.$ Let $u, v \in U_{e}$ be arbitrary functions. Then $u(-x) = u(x)$ and $v(-x) = v(x)$ with $x \in \mathbb{R}$. Adding these equations together, $u(-x) + v(-x) = u(x) + v(x)$ we get $(u+v)(-x)=(u+v)(x)$ by definition of addition under $\mathbb{R}^{\mathbb{R}}$. So $U_{e}$ is closed under addition. Now, let $u\in U_{e}$ and $\lambda \in \mathbb{R}$. Then $u(-x) = u(x)$ and $\lambda u(-x) = \lambda u(x)$. Thus $U_{e}$ is a subspace. We can repeat similar logic to show $U_{o}$ is a subspace. Second, show $U_{e}+U_{o} \subseteq \mathbb{R}^{\mathbb{R}}$. Let $v=e+o\in U_{e}+U_{o}$ with $e\in U_{e}$ and $o\in U_{o}$. By definition, both $e$ and $o$ are functions in $\mathbb{R}^{\mathbb{R}}$, which is closed under addition. Thus any arbitrary $v\in U_{e}+U_{o}$ is an element of $\mathbb{R}^{\mathbb{R}}.$ Third, show $\mathbb{R}^{\mathbb{R}}$ $\subseteq U_{e} + U_{o}$. Let $v\in \mathbb{R}^{\mathbb{R}}.$ Assume $v=f(x)$ with $x \in \mathbb{R}$. Then $v$ can be decomposed into the following functions $v=e + o$, $ 2o(x) = \begin{cases} -f(-x)+f(x) & x\leq_{}0 \\ f(x)-f(-x) & x > 0 \end{cases} $ $ 2e(x) = \begin{cases} f(-x) + f(x) & x \leq 0 \\ f(x) + f(-x) & x > 0 \end{cases} $ So $o(-x) = -o(x), o\in U_{o}$ and $e(-x)=e(x), e\in U_{e}$. Thus $\mathbb{R}^\mathbb{R}\subseteq U_{e} + U_{o}$. Show $U_{e}\cap U_{o}=\{ 0 \}$. Let $v\in U_{e}\cap U_{o}$ then $v(-x)=v(x)$ and $v(-x)=-v(x)$. So $v(x)=v(-x)$ and adding $v(x)$ we get $2v(x)=0$. So it must be that $v=0$. Thus $U_{e}\cap U_{o}=\{ 0 \}$ and $U_{e}\oplus U_{o}$ Thus $U_{e}\oplus U_{o}=\mathbb{R}^\mathbb{R}. \quad \blacksquare{}$