# All problems

## Homework 1

### Problem 1 · Consequences of the axioms

Let $\mathbb F$ denote $\mathbb{R}$ or $\mathbb{C}$. Let $V$ be a vector space over $\mathbb F$, $v\in V$, and $a\in\mathbb F$. Prove the following statements directly from the vector space axioms.

1.  **(a)** The zero vector and the additive inverse of each vector are unique.

2.  **(b)** $0v=0_V$ and $a0_V=0_V$.

3.  **(c)** $(-1)v=-v$.

4.  **(d)** If $av=0_V$, then $a=0$ or $v=0_V$.

Distinguish scalar zeros from vector zeros in your proofs.

[Exercise 1.1.2 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:axiom-consequences) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:axiom-consequences)

### Problem 2 · An unfamiliar vector space

On $V=\{x\in\mathbb{R}:x>0\}$, define

$$
x\oplus y=xy,\qquad a\odot x=x^a\qquad(a\in\mathbb{R}).
$$

1.  **(a)** Prove that these operations make $V$ a vector space over $\mathbb{R}$. Identify its zero vector and the additive inverse of $x$.

2.  **(b)** Determine the dimension of $V$ and characterize all its bases.

You may use the usual properties of real powers and logarithms.

[Exercise 1.2.12 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:positive-real-vector-space) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:positive-real-vector-space)

### Problem 3 · What span does

Let $V$ be a vector space over $\mathbb F$, where $\mathbb F$ denotes $\mathbb{R}$ or $\mathbb{C}$. Let $S,T\subseteq V$ be arbitrary subsets, possibly empty or infinite. Recall that an empty linear combination is equal to $0_V$.

1.  **(a)** Prove that $\operatorname{span}(S)$ is a subspace containing $S$.

2.  **(b)** Prove that every subspace containing $S$ contains $\operatorname{span}(S)$. Deduce that $\operatorname{span}(S)$ is the intersection of all subspaces containing $S$.

[Exercise 1.2.13 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:span-and-containing-subspaces) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:span-and-containing-subspaces)

### Problem 4 · A parameter that changes the span

Let $\mathbb F$ denote $\mathbb{R}$ or $\mathbb{C}$. For $a\in\mathbb F$, set

$$
v_1=(1,0,1),\qquad v_2=(0,1,1),\qquad v_3=(1,1,a).
$$

1.  **(a)** Determine exactly when $\{v_1,v_2,v_3\}$ is a basis of $\mathbb F^3$. For each remaining value of $a$, find a basis and the dimension of its span, and describe the span by a linear equation.

2.  **(b)** When the three vectors form a basis, express any $(x,y,z)\in\mathbb F^3$ as their linear combination.

[Exercise 1.2.14 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:parameter-dependent-span) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:parameter-dependent-span)

### Problem 5 · Solutions and differences of solutions

Let $\mathbb F$ denote $\mathbb{R}$ or $\mathbb{C}$. In $\mathbb F^3$, define

$$
\begin{aligned}
      H&=\{(x,y,z):x+y+z=0,\ x-y=0\},\\
      A&=\{(x,y,z):x+y+z=1,\ x-y=0\}.
    \end{aligned}
$$

1.  **(a)** Prove that $H$ is a subspace and find a basis and its dimension. Determine whether $A$ is a subspace.

2.  **(b)** Find $p\in A$ for which $A=\{p+h:h\in H\}$, and prove this equality. Prove that the difference of any two elements of $A$ belongs to $H$.

[Exercise 1.2.15 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:affine-solution-set) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:affine-solution-set)

### Problem 6 · A polynomial determined by three values

Let $\mathbb F$ denote $\mathbb{R}$ or $\mathbb{C}$, and work in $\mathcal P_2(\mathbb F)$, the polynomials of degree at most two with coefficients in $\mathbb F$, including the zero polynomial.

1.  **(a)** Construct $q_{-1},q_0,q_1$ such that, for $j,k\in\{-1,0,1\}$,

    $$
    q_j(k)=
            \begin{cases}
              1,&j=k,\\
              0,&j\ne k.
            \end{cases}
    $$

2.  **(b)** Prove that these polynomials form a basis and that every $p\in\mathcal P_2(\mathbb F)$ satisfies

    $$
    p=p(-1)q_{-1}+p(0)q_0+p(1)q_1.
    $$

3.  **(c)** Find the unique polynomial $p\in\mathcal P_2(\mathbb F)$ for which $p(-1)=2$, $p(0)=-1$, and $p(1)=4$.

[Exercise 1.2.16 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:polynomial-interpolation) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:polynomial-interpolation)

### Problem 7 · A vector space of recursively defined sequences

Let $\mathbb F$ be $\mathbb{R}$ or $\mathbb{C}$. Let $V$ consist of the infinite sequences $(x_0,x_1,\ldots)$, where each $x_k\in\mathbb F$, that satisfy

$$
x_{n+2}=x_{n+1}+x_n\qquad(n\ge0).
$$

1.  **(a)** Prove that $V$ is a vector space where vector addition is

    $$
    (x_0,x_1,\ldots)+(y_0,y_1,\ldots)
              =(x_0+y_0,x_1+y_1,\ldots)
    $$

    and scalar multiplication is

    $$
    s(x_0,x_1,\ldots)=(sx_0,sx_1,\ldots).
    $$

    Construct a basis and determine its dimension.

2.  **(b)** Prove that the only sequence in $V$ with finitely many nonzero terms is the zero sequence.

*Hint.* For (a), consider the two sequences with initial values $(x_0,x_1)=(1,0)$ and $(x_0,x_1)=(0,1)$.

[Exercise 1.2.17 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:recursive-sequences) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:recursive-sequences)

### Problem 8 · Intersecting two spans

Let $\mathbb F$ denote $\mathbb{R}$ or $\mathbb{C}$. In $\mathbb F^4$, let

$$
\begin{aligned}
      U&=\operatorname{span}\{(1,0,1,0),(0,1,0,1)\},\\
      W&=\operatorname{span}\{(1,1,0,0),(0,0,1,1)\}.
    \end{aligned}
$$

1.  **(a)** Find bases and dimensions of $U$, $W$, and $U\cap W$.

2.  **(b)** Define $U+W=\{u+w:u\in U,w\in W\}$. Prove directly that $U+W$ is a subspace, find a basis and its dimension, and describe it by one linear equation. Do not assume a dimension formula for sums of subspaces.

[Exercise 1.2.18 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:intersections-and-sums) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:intersections-and-sums)

### Problem 9 · Extending an independent set

Let $V$ be a vector space over $\mathbb F$, where $\mathbb F$ denotes $\mathbb{R}$ or $\mathbb{C}$, and let $V$ have dimension $n$.

1.  **(a)** Prove that every linearly independent subset of $V$ is finite and can be extended to a basis of $V$.

2.  **(b)** Deduce that any $n$ linearly independent vectors form a basis, and that any set of $n$ vectors spanning $V$ is a basis.

3.  **(c)** Prove that a subspace $W\subseteq V$ with $\dim W=n$ must equal $V$. Give an example showing that an infinite-dimensional space can have a proper subspace of the same dimension. Exhibit bases to justify the comparison.

*Hint.* For (a), show that adjoining $v\notin\operatorname{span}(S)$ to an independent set $S$ preserves independence. Use the comparison theorem to bound the number of steps.

[Exercise 1.2.19 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:basis-extension) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:basis-extension)

### Problem 10 · Testing plausible assertions

Decide whether each statement is true or false. Prove every true statement and give an explicit counterexample for every false one. Here $S,T$ are subsets of a vector space $V$ over $\mathbb F$, where $\mathbb F$ denotes $\mathbb{R}$ or $\mathbb{C}$.

1.  **(a)** If $S$ and $T$ are linearly independent, then $S\cup T$ is linearly independent.

2.  **(b)** If $S$ and $T$ are linearly independent, then $S\cap T$ is linearly independent.

3.  **(c)** If $S$ and $T$ are finite and $\operatorname{span}(S)=\operatorname{span}(T)$, then $S$ and $T$ have the same number of elements.

4.  **(d)** $\operatorname{span}(S\cap T)
          =\operatorname{span}(S)\cap\operatorname{span}(T)$.

5.  **(e)** If $S\subsetneq T$ and $T$ is linearly independent, then $\operatorname{span}(S)\subsetneq\operatorname{span}(T)$.

[Exercise 1.2.20 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:span-and-independence-assertions) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw01:span-and-independence-assertions)

## Homework 2

### Problem 1

Given a matrix $M$, let $M^j_k$ denote the entry in the $j$-th row and $k$-th column of $M$. Let $A\in\mathcal M_{r\times s}$ and $B\in\mathcal M_{s\times t}$. Show that the definition of matrix multiplication is the same as

$$
(AB)^j_l=\sum_{k=1}^s A^j_kB^k_l,
    \qquad 1\le j\le r,\quad 1\le l\le t.
$$

[Exercise 2.1.1 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:matrix-product-entries) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:matrix-product-entries)

### Problem 2

Let $A,B,C$ be scalar-valued matrices such that $(AB)C$ and $A(BC)$ are well defined. Use the formula for matrix multiplication in [Exercise 2.1.1](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:matrix-product-entries) to prove associativity, i.e., $(AB)C=A(BC)$.

[Exercise 2.1.2 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:matrix-product-associativity) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:matrix-product-associativity)

### Problem 3

For $X,Y\in\mathcal M_{k\times l}$, let $P,Q\in\mathcal M_{k+l\times k+l}$ be given by

$$
P=\begin{bmatrix}I_{k\times k}&X\\0&I_{l\times l}\end{bmatrix}
    \quad\text{and}\quad
    Q=\begin{bmatrix}I_{k\times k}&Y\\0&I_{l\times l}\end{bmatrix}.
$$

1.  **(a)** Compute $PQ$.

2.  **(b)** Given $X$, find a matrix $Y$ such that $PQ=QP=I$.

[Exercise 2.1.3 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:block-shear-inverses) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:block-shear-inverses)

### Problem 4

1.  **(a)** Fix $s\ge1$. Prove that if $J\in\mathcal M_{r\times r}$ satisfies $JB=B$ for every $B\in\mathcal M_{r\times s}$, then $J=I_{r\times r}$.

2.  **(b)** Show by example that, for every $r\ge2$, $JB=B$ for a single nonzero $B$ does not imply $J=I_{r\times r}$. What happens when $r=1$?

[Exercise 2.1.4 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:characterizing-the-identity) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:characterizing-the-identity)

### Problem 5

Matrix multiplication defines a map

$$
\begin{gathered}
      \mathcal M_{p\times q}\times\mathcal M_{q\times r}
        \longrightarrow\mathcal M_{p\times r}\\
      (A,B)\longmapsto AB.
    \end{gathered}
$$

This problem shows that matrix multiplication is a bilinear map.

1.  **(a)** Show that given $A\in\mathcal M_{p\times q}$, the map

    $$
    \begin{gathered}
              \mathcal M_{q\times r}\longrightarrow\mathcal M_{p\times r}\\
              B\longmapsto AB
            \end{gathered}
    $$

    is linear.

2.  **(b)** Show that given $B\in\mathcal M_{q\times r}$, the map

    $$
    \begin{gathered}
              \mathcal M_{p\times q}\longrightarrow\mathcal M_{p\times r}\\
              A\longmapsto AB
            \end{gathered}
    $$

    is linear.

[Exercise 3.2.5 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw02:matrix-product-bilinearity) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:matrix-product-bilinearity)

### Problem 6

Recall that matrix multiplication is not necessarily commutative.

1.  **(a)** For $A\in\mathcal M_{r\times s}$ and $B\in\mathcal M_{p\times q}$, determine exactly when $AB$ and $BA$ are both defined.

2.  **(b)** Determine when $AB$ and $BA$ have the same size.

3.  **(c)** Given $r\ge2$, find matrices $A,B\in\mathcal M_{r\times r}$ such that $AB\ne BA$.

4.  **(d)** Let $E^i_j\in\mathcal M_{r\times r}$ be the matrix whose entry in row $i$ and column $j$ is $1$ and all of whose other entries are $0$. Prove that $\{E^i_j:1\le i,j\le r\}$ is a basis of $\mathcal M_{r\times r}$ and that

    $$
    E^i_jE^k_l=\delta^k_jE^i_l,
    $$

    where $\delta^k_j=1$ if $j=k$ and $0$ otherwise.

5.  **(e)** Prove that if $A\in\mathcal M_{r\times r}$ satisfies $AB=BA$ for every $B\in\mathcal M_{r\times r}$, then $A=cI_{r\times r}$ for some $c\in\mathbb F$.

6.  **(f)** Determine all $A\in\mathcal M_{r\times r}$ that commute with every $E^i_i$, $1\le i\le r$. Conclude that, for $r\ge2$, commuting with every diagonal matrix is a strictly weaker condition than the one in (e).

*Hint.* Compare the entries of $AE^i_j$ and $E^i_jA$.

[Exercise 2.1.5 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:matrix-commutation) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:matrix-commutation)

### Problem 7

There are nonzero matrices $A$ and $B$ such that $AB=0$.

1.  **(a)** Find all $A\in\mathcal M_{2\times2}$ with $A^2=0$.

2.  **(b)** Find $A,B\in\mathcal M_{2\times2}$ with $AB=0$ and $BA\ne0$.

[Exercise 2.1.6 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:zero-products) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:zero-products)

### Problem 8

Prove that the set of upper triangular matrices

$$
\{A\in\mathcal M_{r\times r}:A^j_k=0\text{ whenever }j>k\}
$$

is a subspace of $\mathcal M_{r\times r}$, compute its dimension, and prove that it is closed under matrix multiplication.

[Exercise 2.1.7 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:upper-triangular-subspace) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:upper-triangular-subspace)

### Problem 9

Let $\mathbb F=\mathbb{R}$ or $\mathbb{C}$, and let

$$
A=\begin{bmatrix}2&3\\4&-1\end{bmatrix},\qquad
    B=\begin{bmatrix}0&1\\1&-1\end{bmatrix}.
$$

1.  **(a)** Compute $AB-BA$.

2.  **(b)** Show that $X\in\mathcal M_{2\times2}$ satisfies $AX=XA$ if and only if $X=pI+qA$ for some $p,q\in\mathbb F$.

3.  **(c)** Show that $X=0$ is the only $X\in\mathcal M_{2\times2}$ with $AX=XB$.

4.  **(d)** Show that $A^2=A+14I$.

5.  **(e)** Use this to write $A^3$ in the form $pA+qI$.

6.  **(f)** Use this to find $N\in\mathcal M_{2\times2}$ such that $AN=NA=I$.

[Exercise 2.1.8 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:two-by-two-matrix-identities) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:two-by-two-matrix-identities)

### Problem 10

Call $M\in\mathcal M_{m\times m}$ invertible if there is $N\in\mathcal M_{m\times m}$ with $MN=NM=I$. Prove that such an $N$ is unique (so $M^{-1}$ is well defined), and that if $M,N$ are invertible then so is $MN$, with $(MN)^{-1}=N^{-1}M^{-1}$.

[Exercise 3.3.8 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw02:inverse-uniqueness-and-products) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:inverse-uniqueness-and-products)

### Problem 11

Let $A,B\in\mathcal M_{m\times m}$ with $AB=I$.

1.  **(a)** Prove that if $x$ is a column matrix such that $Bx=0$, then $x=0$.

2.  **(b)** Deduce that the columns of $B$ are distinct and form a linearly independent subset of $\mathbb F^m$ with $m$ elements, and hence a basis. Conclude that every $y\in\mathbb F^m$ can be written as $y=Bx$.

3.  **(c)** Prove that $BA=I$.

[Exercise 3.3.9 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw02:one-sided-inverses) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:one-sided-inverses)

### Problem 12

Work over $\mathbb F=\mathbb{R}$ or $\mathbb{C}$. Consider the system

$$
2x-3y=5,\qquad x+y=-1,\qquad 3x+5y=0,
$$

1.  **(a)** Show that this system has no solution.

2.  **(b)** Find matrices $A,v,$ and $b$ such that the system is equivalent to

    $$
    Av=b.
    $$

3.  **(c)** Find the set of all $b\in\mathbb F^3$ for which $Av=b$ has a solution, and show that for each such $b$, the solution is unique.

[Exercise 3.1.5 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw02:inconsistent-system) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw02:inconsistent-system)

## Homework 3

### Problem 1

Let $\mathcal P_n(\mathbb{R})$ be the vector space of all polynomials of degree at most $n$ in the variable $x$ with real coefficients, including the zero polynomial. Take $n=3$. A basis of $\mathcal P_3(\mathbb{R})$ is

$$
E=\begin{bmatrix}1&x&x^2&x^3\end{bmatrix}.
$$

1.  **(a)** Recall that differentiation is a linear map,

    $$
    \begin{aligned}
              D:\mathcal P_3(\mathbb{R})&\to\mathcal P_3(\mathbb{R})\\
              f&\mapsto f'
            \end{aligned}
    $$

    Find the matrix $M$ such that

    $$
    D(E)=EM.
    $$

2.  **(b)** Find the matrix $N$ such that

    $$
    D^2(E)=EN,
    $$

    where $D^2=D\circ D:\mathcal P_3(\mathbb{R})\to\mathcal P_3(\mathbb{R})$.

[Exercise 4.4.1 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw03:polynomial-differentiation-powers) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw03:polynomial-differentiation-powers)

### Problem 2

Let $C(\mathbb{R})$ be the vector space of continuous real-valued functions with domain $\mathbb{R}$. Prove that this space has infinite dimension.

[Exercise 1.2.22 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw03:continuous-functions-infinite-dimension) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw03:continuous-functions-infinite-dimension)

### Problem 3

Let $E=\begin{bmatrix}e_1&e_2&e_3\end{bmatrix}$ be a basis of $V$. Consider the linear map $L:V\to V$ such that

$$
\begin{aligned}
      L(e_1)&=e_2\\
      L(e_2)&=e_3\\
      L(e_3)&=0
    \end{aligned}
$$

Show that if $M$ is the matrix where $L(E)=EM$, then $M,M^2\ne0$ but $M^3=0$.

[Exercise 3.3.3 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw03:shift-map-powers) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw03:shift-map-powers)

### Problem 4

Let $m\ge2$ be an integer. Find a matrix $M$ such that

$$
M,M^2,\ldots,M^{m-1}\ne0\quad\text{but}\quad M^m=0.
$$

[Exercise 3.3.4 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw03:prescribed-nilpotence-index) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw03:prescribed-nilpotence-index)

### Problem 5

Let $\{u,v,w\}$ be a basis of a real vector space $V$.

1.  **(a)** Show that $\{u+v+w,v+w,w\}$ is also a basis.

2.  **(b)** Is it possible that a subset $\{v_1,v_2,v_3\}\subset V$ is linearly dependent but the set $\{v_2+v_3,v_3+v_1,v_1+v_2\}$ is linearly independent?

[Exercise 1.2.21 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw03:modified-bases-and-dependence) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw03:modified-bases-and-dependence)

### Problem 6

Let $V,W$ be finite-dimensional vector spaces, with $\dim V=m$ and $\dim W=n$, and let $L:V\to W$ be a linear map. Consider the sets

$$
K=\{v\in V:L(v)=0\}\subset V
$$

and

$$
L(V)=\{L(v):v\in V\}\subset W.
$$

Set $k=\dim K$. Recall that the empty set is a basis of the zero subspace.

1.  **(a)** Prove that $K$ is a subspace of $V$.

2.  **(b)** Prove that $L(V)$ is a subspace of $W$.

3.  **(c)** Prove that there exists a row matrix basis $E=\begin{bmatrix}e_1&\cdots&e_m\end{bmatrix}$ of $V$ such that

    $$
    \begin{aligned}
              \begin{bmatrix}L(e_1)&\cdots&L(e_{m-k})\end{bmatrix}
                &\text{ is a basis of }L(V),\text{ and}\\
              \begin{bmatrix}e_{m-k+1}&\cdots&e_m\end{bmatrix}
                &\text{ is a basis of }K.
            \end{aligned}
    $$

4.  **(d)** Prove that

    $$
    \dim(K)+\dim(L(V))=\dim(V).
    $$

    This is known as the rank-nullity theorem.

5.  **(e)** Prove that there exist row matrix bases $E$ of $V$ and $F$ of $W$ such that $L(E)=FM$, where $r=m-k$ and

    $$
    M=\left[
              \begin{array}{c|c}
                I_{r\times r}&0_{r\times(m-r)}\\
                \hline
                0_{(n-r)\times r}&0_{(n-r)\times(m-r)}
              \end{array}
            \right].
    $$

[Exercise 4.3.18 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw03:kernel-image-and-adapted-bases) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw03:kernel-image-and-adapted-bases)

## Homework 4

### Problem 1

Let $T:\mathbb{R}^4\to\mathbb{R}^3$ be the linear map given by

$$
A=\begin{bmatrix}
      1&2&0&1\\
      0&1&1&1\\
      1&3&1&2
    \end{bmatrix}.
$$

1.  **(a)** Find $\ker T$ and give a basis for it.

2.  **(b)** Find $\operatorname{im}T$ and give a basis for it.

3.  **(c)** Compute the nullity and rank of $T$, and verify the rank-nullity theorem.

4.  **(d)** Determine whether $T$ is injective and whether it is surjective. Justify both answers.

[Exercise 4.3.11 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:kernel-image-and-rank) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw04:kernel-image-and-rank)

### Problem 2

Answer each question using the rank-nullity theorem.

1.  **(a)** Suppose $L:V\to W$, where $\dim V=7$, $\dim W=5$, and $\dim\ker L=3$. Find $\operatorname{rank}L$. Is $L$ injective? Is it surjective?

2.  **(b)** Prove that every injective linear map $T:\mathbb{R}^4\to\mathbb{R}^4$ is an isomorphism.

3.  **(c)** Prove that no linear map from $\mathbb{R}^6$ to $\mathbb{R}^4$ can be injective.

4.  **(d)** Prove that no linear map from $\mathbb{R}^3$ to $\mathbb{R}^5$ can be surjective.

[Exercise 4.3.12 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:rank-nullity) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw04:rank-nullity)

### Problem 3

Define the subspaces

$$
K=\operatorname{span}\{(1,1,0),(0,1,1)\}\subseteq\mathbb{R}^3
$$

and

$$
S=\operatorname{span}\{(1,2,1)\}\subseteq\mathbb{R}^3.
$$

Construct a linear map $L:\mathbb{R}^3\to\mathbb{R}^3$ such that

$$
\ker L=K\qquad\text{and}\qquad\operatorname{im}L=S.
$$

1.  **(a)** Give an explicit formula for $L(x,y,z)$.

2.  **(b)** Write $L$ as a matrix.

3.  **(c)** Prove that its kernel and image are exactly $K$ and $S$, rather than merely containing these subspaces.

4.  **(d)** Verify rank-nullity for your map.

[Exercise 4.3.14 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:prescribed-kernel-and-image) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw04:prescribed-kernel-and-image)

### Problem 4

Let $L:\mathbb{R}^3\to\mathbb{R}^2$ be defined by

$$
L(x,y,z)=(x+y+z,\;x+2y+3z).
$$

1.  **(a)** Find a basis for $\ker L$.

2.  **(b)** Extend this basis to an ordered basis $E=(e_1,e_2,e_3)$ of $\mathbb{R}^3$, with $e_1$ spanning $\ker L$.

3.  **(c)** Choose an ordered basis $F=(f_1,f_2)$ of $\mathbb{R}^2$ such that

    $$
    L(e_2)=f_1,\qquad L(e_3)=f_2.
    $$

4.  **(d)** Find the matrix $M$ of $L$ with respect to $E$ and $F$.

5.  **(e)** Verify directly the identity

    $$
    L(E)=FM.
    $$

[Exercise 4.3.16 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:adapted-bases) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw04:adapted-bases)

### Problem 5

Let $\mathcal P_3(\mathbb{R})$ be the vector space of real polynomials of degree at most $3$, including the zero polynomial, and define $\mathcal P_2(\mathbb{R})$ similarly. Consider the differentiation map

$$
D:\mathcal P_3(\mathbb{R})\to\mathcal P_2(\mathbb{R}),\qquad D(p)=p'.
$$

1.  **(a)** Find $\ker D$, $\operatorname{im}D$, the nullity of $D$, and the rank of $D$.

2.  **(b)** Determine whether $D$ is injective and whether it is surjective.

3.  **(c)** Find the matrix of $D$ with respect to

    $$
    E=\begin{bmatrix}1&x&x^2&x^3\end{bmatrix},
            \qquad F=\begin{bmatrix}1&x&x^2\end{bmatrix}.
    $$

4.  **(d)** Find a new ordered basis $E'$ of $\mathcal P_3(\mathbb{R})$, beginning with a basis of $\ker D$, for which the matrix relative to $E'$ and $F$ is

    $$
    \begin{bmatrix}
              0&1&0&0\\
              0&0&1&0\\
              0&0&0&1
            \end{bmatrix}.
    $$

[Exercise 4.4.2 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:polynomial-differentiation) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw04:polynomial-differentiation)

## Homework 5

### Problem 1

Let $A:V\times V\to\mathbb{R}$ be a bilinear function on a real vector space $V$ such that $A(v,v)=0$ for every $v\in V$. Show $A$ is antisymmetric.

[Exercise 5.1.3 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:bilinear-antisymmetry) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw05:bilinear-antisymmetry)

### Problem 2

Show that

$$
\det\left(\begin{bmatrix}a&c\\b&d\end{bmatrix}\right)=ad-bc.
$$

[Exercise 5.4.2 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:two-by-two-determinant) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw05:two-by-two-determinant)

### Problem 3

How is $\det(-A)$ related to $\det A$ for an $n\times n$ matrix $A$? Explain.

[Exercise 5.4.6 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:negating-a-matrix) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw05:negating-a-matrix)

### Problem 4

Show that

$$
\det\begin{bmatrix}a&b&c\\0&d&e\\0&0&f\end{bmatrix}=adf.
$$

[Exercise 5.4.3 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:three-by-three-triangular-determinant) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw05:three-by-three-triangular-determinant)

### Problem 5

Explain why the determinant of an upper triangular $m\times m$ matrix equals the product of its diagonal entries. In other words, explain why

$$
\det\begin{bmatrix}
      A^1_1&A^1_2&\cdots&A^1_{m-1}&A^1_m\\
      0&A^2_2&\cdots&A^2_{m-1}&A^2_m\\
      \vdots&&&&\vdots\\
      0&0&\cdots&0&A^m_m
    \end{bmatrix}=A^1_1 A^2_2\cdots A^m_m.
$$

A detailed proof is not required. Describe the process that gives this conclusion.

[Exercise 5.4.4 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:upper-triangular-determinant) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw05:upper-triangular-determinant)

### Problem 6

Let the columns of $M$ be $c_1,\ldots,c_n$. Prove that, given $j\ne k$ and $a\in\mathbb F$, if $M'$ is the matrix whose columns are given by

$$
\begin{aligned}
      c'_j&=c_j+ac_k\\
      c'_i&=c_i\quad\text{if \(i\ne j\)}
    \end{aligned}
$$

then

$$
\det(M')=\det(M).
$$

[Exercise 5.4.7 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:column-addition) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw05:column-addition)

### Problem 7

Use the computation procedure described above to compute

$$
\det\left(\begin{bmatrix}
      2&1&0&0\\
      1&3&2&0\\
      0&1&4&3\\
      0&0&1&5
    \end{bmatrix}\right).
$$

[Exercise 5.4.5 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:four-by-four-determinant) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw05:four-by-four-determinant)

### Problem 8

Given a permutation $\sigma\in S_n$, the *permutation matrix* $P_\sigma$ is the matrix whose $k$-th column is $c_k=e_{\sigma(k)}$, i.e.,

$$
P_\sigma=\bigl[e_{\sigma(1)}\mid\cdots\mid e_{\sigma(n)}\bigr].
$$

For example, take $n=3$ and let $\sigma$ be the permutation given by

$$
\begin{aligned}
      \sigma(1)&=2\\
      \sigma(2)&=1\\
      \sigma(3)&=3.
    \end{aligned}
$$

Its permutation matrix is

$$
\begin{aligned}
      P_\sigma
        &=\bigl[e_{\sigma(1)}\mid e_{\sigma(2)}\mid e_{\sigma(3)}\bigr]\\
        &=\bigl[e_2\mid e_1\mid e_3\bigr]\\
        &=\begin{bmatrix}0&1&0\\1&0&0\\0&0&1\end{bmatrix}.
    \end{aligned}
$$

1.  **(a)** Show that a matrix is a permutation matrix if and only if every entry is $0$ or $1$ and there is exactly one $1$ in each row and each column.

2.  **(b)** Show that if

    $$
    M=\bigl[c_1\mid\cdots\mid c_n\bigr],
    $$

    then

    $$
    MP_\sigma=\bigl[c_{\sigma(1)}\mid\cdots\mid c_{\sigma(n)}\bigr],
    $$

3.  **(c)** Given a permutation $\sigma$ and $v=(v^1,\ldots,v^n)\in\mathbb{R}^n$, describe the linear map defined by $P_\sigma$. In other words, what is $P_\sigma v$?

4.  **(d)** Show that, for any two permutations $\sigma$ and $\tau$,

    $$
    P_{\sigma\circ\tau}=P_\sigma P_\tau
    $$

    by showing that for any $k\in\{1,\ldots,n\}$,

    $$
    P_{\sigma\circ\tau}e_k=P_\sigma P_\tau e_k.
    $$

5.  **(e)** Show that $\det(P_\sigma)=\varepsilon(\sigma)$.

[Exercise 5.4.8 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:permutation-matrices) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw05:permutation-matrices)

## Homework 6

### Problem 1

Find all eigenvectors of the matrix

$$
M=\begin{bmatrix}
      1&1&0\\
      0&2&1\\
      0&0&2
    \end{bmatrix}.
$$

[Exercise 7.3.2 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:triangular-matrix-eigenvectors) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw06:triangular-matrix-eigenvectors)

### Problem 2

Let $(e_1,e_2,e_3)$ be a basis of $V$ and $L:V\to V$ be the map given by

$$
\begin{aligned}
      L(e_1)&=e_1+e_2\\
      L(e_2)&=2e_2+e_3\\
      L(e_3)&=2e_3.
    \end{aligned}
$$

Find the eigenvectors of $L$ by solving

$$
L(v)=\lambda v,
$$

where

$$
v=e_1a^1+e_2a^2+e_3a^3,
$$

directly for $a^1,a^2,a^3,\lambda$.

[Exercise 7.3.3 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:eigenvectors-in-a-basis) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw06:eigenvectors-in-a-basis)

### Problem 3

True or false? Explain. If false, provide a counterexample.

1.  **3.1.** If a matrix has one eigenvector, then it has infinitely many eigenvectors.

2.  **3.2.** Every matrix over a field $\mathbb F$ has at least one eigenvalue in $\mathbb F$.

3.  **3.3.** Similar matrices always have the same eigenvectors.

4.  **3.4.** If two matrices have the same eigenvalues, then they are similar.

[Exercise 7.4.5 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:eigenvalue-true-or-false) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw06:eigenvalue-true-or-false)

### Problem 4

Suppose, for a matrix $A$, $v_1$ is an eigenvector for the eigenvalue $\lambda_1$ and $v_2$ is an eigenvector for the eigenvalue $\lambda_2$. What are the necessary and sufficient conditions that $v_1+v_2$ be an eigenvector of $A$ and what is its eigenvalue?

[Exercise 7.1.5 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:sums-of-eigenvectors) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw06:sums-of-eigenvectors)

### Problem 5

For any $\alpha\in\mathbb{R}$, the real matrix

$$
R_\alpha=\begin{bmatrix}
      \cos\alpha&-\sin\alpha\\
      \sin\alpha&\cos\alpha
    \end{bmatrix}
$$

is called a rotation matrix, because it rotates each vector counterclockwise by the angle $\alpha$. Compute the (possibly complex) eigenvalues and eigenvectors of $R_\alpha$.

[Exercise 7.4.1 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:rotation-eigenvalues) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw06:rotation-eigenvalues)

### Problem 6

A linear transformation $A:V\to V$ is called *nilpotent* if for some positive integer $k$, $A^k$ is the zero matrix. Prove that the only eigenvalue of $A$ is $0$.

[Exercise 7.5.5 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:nilpotent-eigenvalues) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw06:nilpotent-eigenvalues)

## Homework 7

### Problem 1

Which of the following is an inner product? Explain.

1.  **1.1.** (5 points) For any $(v^1,v^2),(w^1,w^2)\in\mathbb{R}^2$,

    $$
    (v,w)=v^1w^2+v^2w^1.
    $$

2.  **1.2.** (5 points) For any $(v^1,v^2),(w^1,w^2)\in\mathbb{R}^2$,

    $$
    (v,w)=2v^1w^1-v^1w^2-v^2w^1+2v^2w^2.
    $$

[Exercise 8.1.2 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/inner-products-and-norms/#ex:hw07:coordinate-inner-products) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw07:coordinate-inner-products)

### Problem 2

Let $V$ be a 2-dimensional real vector space and $(e_1,e_2)$ be a basis. Which of the following 2-tensors is an inner product? Explain.

1.  **2.1.** (5 points) Let $T:V\times V\to\mathbb{R}$ be the 2-tensor given by

    $$
    \begin{aligned}
              T(e_1,e_1)&=1\\
              T(e_1,e_2)=T(e_2,e_1)&=1\\
              T(e_2,e_2)&=1
            \end{aligned}
    $$

2.  **2.2.** (5 points) Let $T:V\times V\to\mathbb{R}$ be given by

    $$
    \begin{aligned}
              T(e_1,e_1)&=1\\
              T(e_1,e_2)&=1\\
              T(e_2,e_1)&=-1\\
              T(e_2,e_2)&=1
            \end{aligned}
    $$

[Exercise 8.1.3 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/inner-products-and-norms/#ex:hw07:tensor-inner-products) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw07:tensor-inner-products)

### Problem 3

(10 points) Let $V_1,V_2$ be subspaces of $V$ such that

$$
V_1\cap V_2=\{0\}.
$$

Prove directly that whenever $v_1\in V_1$ and $v_2\in V_2$ are nonzero vectors, the set $\{v_1,v_2\}$ is linearly independent.

[Exercise 7.6.1 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw07:disjoint-subspaces-independence) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw07:disjoint-subspaces-independence)

### Problem 4

(30 points) Let $V$ be a real inner product space and let $v,w\in V$ be nonzero vectors. Consider the function $f:\mathbb{R}\to\mathbb{R}$ given by

$$
f(t)=|v-tw|^2.
$$

1.  **4.1.** (10 points) Prove that $f$ has a unique minimum.

2.  **4.2.** (10 points) Find the minimum value of $f$ and the value of $t$ for which $f(t)$ equals the minimum value.

3.  **4.3.** (10 points) Use your solution to the previous parts of this problem to prove that for any $v,w\in V$,

    $$
    (v,w)^2\le(v,v)(w,w)
    $$

    and equality holds if and only if there exists a scalar $s\in\mathbb{R}$ such that

    $$
    v=sw\quad\text{or}\quad w=sv.
    $$

[Exercise 8.4.3 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/inner-products-and-norms/#ex:hw07:minimization-and-cauchy-schwarz) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:hw07:minimization-and-cauchy-schwarz)

## Lecture exercises

### Exercise 3.3.7

Let $L:V\to W$ be an invertible linear map between vector spaces over the same field. Prove that $L^{-1}:W\to V$ is linear.

[Exercise 3.3.7 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:lec03:inverse-is-linear) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:lec03:inverse-is-linear)

### Exercise 8.5.2

Let $v,w$ be orthogonal vectors in a real inner-product space. Using only the properties of the inner product, prove the Pythagorean identity

$$
\lVert v+w\rVert^2=\lVert v\rVert^2+\lVert w\rVert^2.
$$

[Exercise 8.5.2 in the chapter](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/inner-products-and-norms/#ex:lec08:pythagorean-theorem) · [Appendix solution](https://xyzmaths.org/notes/linear-algebra/appendices/exercise-solutions/#sol:lec08:pythagorean-theorem)
