# Appendix C. Solutions to exercises

The exercises are restated in main-text order. Each exercise number links back to its original statement.

## Vector spaces and bases

### Exercise 1.1.2 (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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:axiom-consequences)

*Awaiting solution.*

### Exercise 1.2.12 (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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:positive-real-vector-space)

*Awaiting solution.*

### Exercise 1.2.13 (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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:span-and-containing-subspaces)

*Awaiting solution.*

### Exercise 1.2.14 (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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:parameter-dependent-span)

*Awaiting solution.*

### Exercise 1.2.15 (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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:affine-solution-set)

*Awaiting solution.*

### Exercise 1.2.16 (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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:polynomial-interpolation)

*Awaiting solution.*

### Exercise 1.2.17 (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)$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:recursive-sequences)

*Awaiting solution.*

### Exercise 1.2.18 (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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:intersections-and-sums)

*Awaiting solution.*

### Exercise 1.2.19 (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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:basis-extension)

*Awaiting solution.*

### Exercise 1.2.20 (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)$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw01:span-and-independence-assertions)

*Awaiting solution.*

### Exercise 1.2.21

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?

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw03:modified-bases-and-dependence)

*Awaiting solution.*

### Exercise 1.2.22

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

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/vector-spaces-and-bases/#ex:hw03:continuous-functions-infinite-dimension)

*Awaiting solution.*

## Matrices and vector coordinates

### Exercise 2.1.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.
$$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:matrix-product-entries)

*Awaiting solution.*

### Exercise 2.1.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)$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:matrix-product-associativity)

*Awaiting solution.*

### Exercise 2.1.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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:block-shear-inverses)

*Awaiting solution.*

### Exercise 2.1.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$?

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:characterizing-the-identity)

*Awaiting solution.*

### Exercise 2.1.5

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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:matrix-commutation)

*Awaiting solution.*

### Exercise 2.1.6

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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:zero-products)

*Awaiting solution.*

### Exercise 2.1.7

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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:upper-triangular-subspace)

*Awaiting solution.*

### Exercise 2.1.8

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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/matrices-and-vector-coordinates/#ex:hw02:two-by-two-matrix-identities)

*Awaiting solution.*

## Linear equations and maps

### Exercise 3.1.5

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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw02:inconsistent-system)

*Awaiting solution.*

### Exercise 3.2.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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw02:matrix-product-bilinearity)

*Awaiting solution.*

### Exercise 3.3.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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw03:shift-map-powers)

*Awaiting solution.*

### Exercise 3.3.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.
$$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw03:prescribed-nilpotence-index)

*Awaiting solution.*

### 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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:lec03:inverse-is-linear)

*Awaiting solution.*

### Exercise 3.3.8

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}$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw02:inverse-uniqueness-and-products)

*Awaiting solution.*

### Exercise 3.3.9

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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/linear-equations-and-maps/#ex:hw02:one-sided-inverses)

*Awaiting solution.*

## Kernel, image, and rank

### Exercise 4.3.11

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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:kernel-image-and-rank)

*Solution.* **(a)** The kernel consists of the solutions of $Ax=0$. Subtracting the first row from the third, and then the second row from the third, gives

$$
A\sim
      \begin{pmatrix}
        1&2&0&1\\
        0&1&1&1\\
        0&0&0&0
      \end{pmatrix}.
$$

Thus the equations are

$$
x_1+2x_2+x_4=0,
      \qquad
      x_2+x_3+x_4=0.
$$

Taking $x_3$ and $x_4$ as free variables, we obtain $x_2=-x_3-x_4$ and $x_1=2x_3+x_4$. Consequently,

$$
x=
      x_3\begin{pmatrix}2\\-1\\1\\0\end{pmatrix}
      +x_4\begin{pmatrix}1\\-1\\0\\1\end{pmatrix},
$$

and

$$
\ker T=
      \operatorname{span}\left\{
        \begin{pmatrix}2\\-1\\1\\0\end{pmatrix},
        \begin{pmatrix}1\\-1\\0\\1\end{pmatrix}
      \right\}.
$$

These two vectors span the kernel. The third and fourth coordinates of a linear combination are its two coefficients, so a combination equal to zero forces both coefficients to be zero. Hence the vectors are linearly independent and form a basis of $\ker T$.

**(b)** Let $c_1,c_2,c_3,c_4$ denote the columns of $A$. They satisfy

$$
c_2=2c_1+c_3,
      \qquad
      c_4=c_2-c_1=c_1+c_3.
$$

For every $x\in\mathbb{R}^4$,

$$
\begin{aligned}
      Ax
        &=x_1c_1+x_2c_2+x_3c_3+x_4c_4\\
        &=(x_1+2x_2+x_4)c_1+(x_2+x_3+x_4)c_3.
    
\end{aligned}
$$

Therefore $\operatorname{im}T\subseteq
    \operatorname{span}\{c_1,c_3\}$.

Conversely, if $y=ac_1+bc_3$, choose $x=(a,0,b,0)^T$. Then $Ax=y$, so $\operatorname{span}\{c_1,c_3\}\subseteq\operatorname{im}T$. We conclude that

$$
\operatorname{im}T=
      \operatorname{span}\left\{
        \begin{pmatrix}1\\0\\1\end{pmatrix},
        \begin{pmatrix}0\\1\\1\end{pmatrix}
      \right\}.
$$

To check linear independence, suppose $ac_1+bc_3=0$. Then

$$
a\begin{pmatrix}1\\0\\1\end{pmatrix}
      +b\begin{pmatrix}0\\1\\1\end{pmatrix}
      =\begin{pmatrix}a\\b\\a+b\end{pmatrix}=0,
$$

which gives $a=b=0$. Thus $(c_1,c_3)$ is a basis of $\operatorname{im}T$. [^12]

**(c)** Both bases have two vectors, so

$$
\operatorname{nullity}T=2,
      \qquad
      \operatorname{rank}T=2.
$$

The rank–nullity identity is verified by

$$
\operatorname{rank}T+\operatorname{nullity}T
        =2+2=4=\dim\mathbb{R}^4.
$$

**(d)** The map $T$ is not injective, since its nullity is $2$. It is not surjective, since $\operatorname{rank}T=2<3=\dim\mathbb{R}^3$. ◻

[^12]: To identify a span with the image, prove both inclusions. Then check linear independence to obtain a basis.

### Exercise 4.3.12

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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:rank-nullity)

*Solution.* **(a)** By the rank–nullity theorem,

$$
\operatorname{rank}L
        =\dim V-\dim\ker L=7-3=4.
$$

The map $L$ is not injective because $\operatorname{nullity}L=3\ne0$. It is not surjective because $\operatorname{rank}L=4<5=\dim W$.

**(b)** Suppose $T\colon\mathbb{R}^4\to\mathbb{R}^4$ is injective. Then $\operatorname{nullity}T=0$, and the rank–nullity theorem gives

$$
\operatorname{rank}T=4-0=4.
$$

This equals the dimension of the codomain, so $T$ is surjective. Since $T$ is linear, injective, and surjective, it is an isomorphism.

**(c)** Suppose $L\colon\mathbb{R}^6\to\mathbb{R}^4$ were injective. Its nullity would be zero, so the rank–nullity theorem would give

$$
\operatorname{rank}L=6.
$$

However, $\operatorname{im}L\subseteq\mathbb{R}^4$, so $\operatorname{rank}L\le4$. This is a contradiction. Thus no such linear map can be injective.

**(d)** Suppose $L\colon\mathbb{R}^3\to\mathbb{R}^5$ were surjective. Then $\operatorname{rank}L=5$, and rank–nullity would imply

$$
\operatorname{nullity}L
        =3-5=-2.
$$

Nullity is a dimension and is therefore nonnegative. This contradiction shows that no such linear map can be surjective. [^13] ◻

[^13]: A negative value of nullity contradicts its meaning as the dimension of the kernel.

### Exercise 4.3.14

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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:prescribed-kernel-and-image)

*Solution.* **(a)** Seek a map of the form

$$
L(x,y,z)=(ax+by+cz)(1,2,1).
$$

For both generators of $K$ to lie in the kernel, we require $a+b=0$ and $b+c=0$. Choose $a=c=1$ and $b=-1$. This gives

$$
L(x,y,z)=(x-y+z)(1,2,1).
$$

**(b)** In the standard bases, the matrix of $L$ is

$$
M=
      \begin{pmatrix}
        1&-1&1\\
        2&-2&2\\
        1&-1&1
      \end{pmatrix},
$$

since

$$
M\begin{pmatrix}x\\y\\z\end{pmatrix}
        =\begin{pmatrix}x-y+z\\2(x-y+z)\\x-y+z\end{pmatrix}.
$$

**(c)** We verify both equalities by proving both inclusions. The two generators satisfy $L(1,1,0)=0$ and $L(0,1,1)=0$. By linearity, every vector $a(1,1,0)+b(0,1,1)$ also maps to zero. Hence $K\subseteq\ker L$.

Conversely, if $v=(x,y,z)\in\ker L$, then $x-y+z=0$, so $y=x+z$. Thus

$$
v=(x,x+z,z)=x(1,1,0)+z(0,1,1)\in K.
$$

Therefore $\ker L=K$.

Every output of $L$ is a multiple of $(1,2,1)$, giving $\operatorname{im}L\subseteq S$. Conversely, every vector of $S$ has the form $t(1,2,1)$, and

$$
L(t,0,0)=t(1,2,1).
$$

Hence $S\subseteq\operatorname{im}L$, and $\operatorname{im}L=S$.

**(d)** The kernel has dimension $2$, and the image has dimension $1$. Thus

$$
\operatorname{nullity}L=2,
      \qquad
      \operatorname{rank}L=1,
$$

and

$$
\operatorname{rank}L+\operatorname{nullity}L
        =1+2=3=\dim\mathbb{R}^3.
$$

 ◻

### Exercise 4.3.16

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.
    $$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:adapted-bases)

*Solution.* **(a)** The condition $L(x,y,z)=0$ gives the system

$$
x+y+z=0,
      \qquad
      x+2y+3z=0.
$$

Subtracting the first equation from the second gives $y+2z=0$. Hence $y=-2z$, and the first equation then gives $x=z$. The solutions are exactly

$$
(x,y,z)=(z,-2z,z)=z(1,-2,1).
$$

Therefore

$$
\ker L=\operatorname{span}\{(1,-2,1)\}.
$$

The equation $a(1,-2,1)=0$ forces $a=0$, so this single vector is linearly independent and forms a basis of the kernel.

**(b)** Choose the ordered list

$$
E=(e_1,e_2,e_3)
        =\bigl((1,-2,1),(1,0,0),(0,1,0)\bigr).
$$

If $ae_1+be_2+ce_3=0$, then

$$
(a+b,-2a+c,a)=(0,0,0),
$$

giving $a=b=c=0$. Thus these vectors are linearly independent and form a basis of $\mathbb{R}^3$, with the kernel basis first.

**(c)** Set

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

If $af_1+bf_2=0$, then

$$
a+b=0,
      \qquad
      a+2b=0.
$$

These equations imply $a=b=0$. Hence $F=(f_1,f_2)=\bigl((1,1),(1,2)\bigr)$ is an ordered basis of $\mathbb{R}^2$.

**(d)** Since

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

their $F$-coordinate columns give

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

[^14]

**(e)** Applying $L$ to each column of $E$ gives

$$
L(E)=[\,0\ \ f_1\ \ f_2\,]
        =\begin{pmatrix}0&1&1\\0&1&2\end{pmatrix}.
$$

On the other hand,

$$
\begin{aligned}
      FM
        &=[\,f_1\ \ f_2\,]
          \begin{pmatrix}0&1&0\\0&0&1\end{pmatrix}\\
        &=[\,0\ \ f_1\ \ f_2\,]
          =\begin{pmatrix}0&1&1\\0&1&2\end{pmatrix}.
    
\end{aligned}
$$

Thus $L(E)=FM$. ◻

[^14]: Each column of $M$ records $L(e_j)$ in the basis $F$. The kernel vector gives the zero first column.

### Exercise 4.3.18

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].
    $$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw03:kernel-image-and-adapted-bases)

*Awaiting solution.*

### Exercise 4.4.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})$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw03:polynomial-differentiation-powers)

*Awaiting solution.*

### Exercise 4.4.2

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}.
    $$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/kernel-image-and-rank/#ex:hw04:polynomial-differentiation)

*Solution.* **(a)** Write

$$
p(x)=ax^3+bx^2+cx+d.
$$

Then $D(p)=p'=3ax^2+2bx+c$, which is zero exactly when $a=b=c=0$. The constant coefficient $d$ is unrestricted. Therefore

$$
\ker D=\operatorname{span}\{1\},
      \qquad
      \operatorname{nullity}D=1.
$$

Every derivative belongs to $\mathcal P_2(\mathbb{R})$. Conversely, given $q(x)=ux^2+vx+w$, choose

$$
p(x)=\frac{u}{3}x^3+\frac{v}{2}x^2+wx.
$$

Then $D(p)=q$. Hence

$$
\operatorname{im}D=\mathcal P_2(\mathbb{R})
        =\operatorname{span}\{1,x,x^2\},
      \qquad
      \operatorname{rank}D=3.
$$

**(b)** The map $D$ is not injective because its nullity is $1$. It is surjective because its image is all of $\mathcal P_2(\mathbb{R})$.

**(c)** Apply $D$ to the given basis entries. We obtain

$$
D(E)=[\,D(1)\ \ D(x)\ \ D(x^2)\ \ D(x^3)\,]
        =[\,0\ \ 1\ \ 2x\ \ 3x^2\,].
$$

Expressing these entries in $F=[\,1\ \ x\ \ x^2\,]$ gives

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

Thus $D(E)=FM$.

**(d)** We want the nonzero basis images to be $1,x,x^2$, respectively. Taking their antiderivatives gives

$$
E'=\left[\,1\ \ x\ \ \frac{x^2}{2}\ \ \frac{x^3}{3}\,\right].
$$

Its first vector is a basis of $\ker D$. Since the remaining entries are nonzero scalar multiples of the usual monomials, $E'$ is a basis of $\mathcal P_3(\mathbb{R})$. Moreover,

$$
D(E')=[\,0\ \ 1\ \ x\ \ x^2\,]
        =[\,1\ \ x\ \ x^2\,]
          \begin{pmatrix}
            0&1&0&0\\
            0&0&1&0\\
            0&0&0&1
          \end{pmatrix}.
$$

Therefore the matrix of $D$ with respect to $E'$ and $F$ has the required form. ◻

## Multilinear algebra and determinants

Let $M$ be an $n\times n$ matrix with columns $c_1,\ldots,c_n$, and let $D$ be the normalized determinant function from [§ 5.4](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#sec:linear-algebra-i:determinant). The following column expansion is used in [Exercise 5.4.5](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:four-by-four-determinant). Each column of $M$ can be written in terms of the standard basis,

$$
c_k=e_1M^1_k+\cdots+e_nM^n_k.
$$

The determinant can be computed by applying the antisymmetric and multilinear properties of $D$ to

$$
\begin{aligned}
    \det(M)&=D(c_1,\ldots,c_n)\\
      &=D(e_1M^1_1+\cdots+e_nM^n_1,\ldots,
        e_1M^1_n+\cdots+e_nM^n_n).
  \end{aligned}
$$

### Exercise 5.1.3

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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:bilinear-antisymmetry)

*Solution.* Let $v,w\in V$ be arbitrary. By the hypothesis and bilinearity,

$$
\begin{aligned}
  0&=A(v+w,v+w)\\
   &=A(v,v)+A(v,w)+A(w,v)+A(w,w).
\end{aligned}
$$

Since $A(v,v)=A(w,w)=0$, this reduces to

$$
A(v,w)+A(w,v)=0.
$$

Hence $A(w,v)=-A(v,w)$. Since $v,w$ were arbitrary, $A$ is antisymmetric. ◻

### Exercise 5.4.2

Show that

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

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:two-by-two-determinant)

*Solution.* Let $(e_1,e_2)$ be the standard ordered basis of $\mathbb{R}^2$. The column vectors of the matrix are

$$
v=ae_1+be_2,\qquad w=ce_1+de_2.
$$

Geometrically, $v$ and $w$ span the parallelogram

$$
P(v,w)=\{sv+tw\mid 0\le s,t\le1\}.
$$

Let $A$ be the oriented area function, normalized by $A(e_1,e_2)=1$. It is antisymmetric and bilinear. By uniqueness of the normalized antisymmetric bilinear function, the determinant on columns satisfies

$$
\det\begin{bmatrix}a&c\\b&d\end{bmatrix}=A(v,w).
$$

Thus the determinant is the signed area of this parallelogram, while its ordinary area is $|A(v,w)|$.

Bilinearity gives

$$
\begin{aligned}
  A(v,w)
    &=A(ae_1+be_2,ce_1+de_2)\\
    &=acA(e_1,e_1)+adA(e_1,e_2)\\
    &\quad+bcA(e_2,e_1)+bdA(e_2,e_2)\\
    &=adA(e_1,e_2)+bcA(e_2,e_1)\\
    &=(ad-bc)A(e_1,e_2)\\
    &=ad-bc.
\end{aligned}
$$

The terms with repeated basis vectors vanish because $A(e_1,e_1)=A(e_2,e_2)=0$. Antisymmetry gives $A(e_2,e_1)=-A(e_1,e_2)$, and the normalization gives the final equality. Consequently, the determinant is $ad-bc$. ◻

### Exercise 5.4.3

Show that

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

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:three-by-three-triangular-determinant)

*Solution.* Let $M$ be the matrix in the question. Its columns are

$$
c_1=ae_1,\qquad c_2=be_1+de_2,\qquad
  c_3=ce_1+e\,e_2+fe_3.
$$

Let $D$ be the normalized determinant function. Then $\det M=D(c_1,c_2,c_3)$ and $D(e_1,e_2,e_3)=1$. Every term with repeated basis vectors vanishes. Expanding the inputs by multilinearity therefore gives

$$
\begin{aligned}
  \det M
    &=aD(e_1,be_1+de_2,c_3)\\
    &=abD(e_1,e_1,c_3)+adD(e_1,e_2,c_3)\\
    &=adD(e_1,e_2,ce_1+e\,e_2+fe_3)\\
    &=adcD(e_1,e_2,e_1)+adeD(e_1,e_2,e_2)\\
    &\quad+adfD(e_1,e_2,e_3)\\
    &=adf.
\end{aligned}
$$

 ◻

### Exercise 5.4.4

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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:upper-triangular-determinant)

*Solution.* Let $M=(A^i_j)$ be the upper triangular $m\times m$ matrix, with columns $c_1,\ldots,c_m$. Since entries below the diagonal are zero,

$$
c_j=\sum_{i=1}^j A^i_j e_i,\qquad 1\le j\le m.
$$

Expand $\det M=D(c_1,\ldots,c_m)$ by multilinearity, choosing one basis vector from each column. A term with repeated basis vectors vanishes.

The first column can contribute only $e_1$. The second can contribute $e_1$ or $e_2$, but choosing $e_1$ repeats the first input, so only $e_2$ can remain. Continuing in this way, column $j$ must contribute $e_j$, since its other choices have already appeared in earlier inputs. Thus the only term that can remain selects the diagonal entry from every column. Using $D(e_1,\ldots,e_m)=1$, we obtain

$$
\begin{aligned}
  \det M&=A^1_1\cdots A^m_mD(e_1,\ldots,e_m)\\
    &=A^1_1\cdots A^m_m.
\end{aligned}
$$

 ◻

### Exercise 5.4.5

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).
$$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:four-by-four-determinant)

*Solution.* Let $M$ be the matrix in the question. We simplify it one column at a time. Adding a multiple of one column to another leaves the determinant unchanged. At each step, $c_j$ denotes column $j$ of the current matrix. We work from right to left, choosing each multiple to cancel an entry below the diagonal.

First replace $c_3$ by $c_3-\frac15c_4$. The third and fourth entries of this column become

$$
4-\frac15\cdot3=\frac{17}{5},\qquad
  1-\frac15\cdot5=0.
$$

Thus

$$
\det M=\det\begin{bmatrix}
    2&1&0&0\\
    1&3&2&0\\
    0&1&\tfrac{17}{5}&3\\
    0&0&0&5
  \end{bmatrix}.
$$

Next replace $c_2$ by $c_2-\frac{5}{17}c_3$, using the updated third column. The second and third entries become

$$
3-\frac{5}{17}\cdot2=\frac{41}{17},\qquad
  1-\frac{5}{17}\cdot\frac{17}{5}=0.
$$

Therefore,

$$
\det M=\det\begin{bmatrix}
    2&1&0&0\\
    1&\tfrac{41}{17}&2&0\\
    0&0&\tfrac{17}{5}&3\\
    0&0&0&5
  \end{bmatrix}.
$$

Finally replace $c_1$ by $c_1-\frac{17}{41}c_2$, using the updated second column. The first and second entries become

$$
2-\frac{17}{41}\cdot1=\frac{65}{41},\qquad
  1-\frac{17}{41}\cdot\frac{41}{17}=0.
$$

We now have an upper triangular matrix, so its determinant is the product of its diagonal entries. Hence

$$
\det M=\det\begin{bmatrix}
    \tfrac{65}{41}&1&0&0\\
    0&\tfrac{41}{17}&2&0\\
    0&0&\tfrac{17}{5}&3\\
    0&0&0&5
  \end{bmatrix}
  =\frac{65}{41}\cdot\frac{41}{17}\cdot\frac{17}{5}\cdot5
  =65.
$$

 ◻

### Exercise 5.4.6

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

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:negating-a-matrix)

*Solution.* Let $A$ be a real $n\times n$ matrix with columns $c_1,\ldots,c_n$, and let $D:(\mathbb{R}^n)^n\to\mathbb{R}$ be the normalized determinant function. The columns of $-A$ are $-c_1,\ldots,-c_n$. By multilinearity, each of the $n$ negated columns contributes a factor of $-1$, so

$$
\begin{aligned}
  \det(-A)&=D(-c_1,\ldots,-c_n)\\
    &=(-1)^nD(c_1,\ldots,c_n)\\
    &=(-1)^n\det A.
\end{aligned}
$$

Therefore,

$$
\det(-A)=
  \begin{cases}
    \det A & \text{if \(n\) is even},\\
    -\det A & \text{if \(n\) is odd}.
  \end{cases}
$$

 ◻

### Exercise 5.4.7

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).
$$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:column-addition)

*Solution.* Let $D$ be the determinant function on columns. Only column $j$ changes, and $c'_j=c_j+ac_k$. By linearity in the $j$-th input,

$$
\begin{aligned}
  \det M'
    &=D(c_1,\ldots,c_{j-1},c_j+ac_k,c_{j+1},\ldots,c_n)\\
    &=D(c_1,\ldots,c_n)\\
    &\quad+aD(c_1,\ldots,c_{j-1},c_k,c_{j+1},\ldots,c_n).
\end{aligned}
$$

Since $j\ne k$, the second determinant-function value contains $c_k$ in both positions $j$ and $k$. It vanishes because its inputs repeat. Hence $\det M'=D(c_1,\ldots,c_n)=\det M$. ◻

### Exercise 5.4.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)$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/determinants/#ex:hw05:permutation-matrices)

*Solution.* **(a)** Suppose a matrix $P_\sigma$ is a permutation matrix where $c_k=e_{\sigma(k)}$. Since $\sigma:\{1,\ldots,n\}\to\{1,\ldots,n\}$ is bijective, $\sigma(1),\ldots,\sigma(n)$ will be distinct and exhaust $\{1,\ldots,n\}$. Each column is a standard basis vector, so it contains a single $1$ in row $\sigma(k)$ and zeros elsewhere. Thus every column contains exactly one $1$. Since each row index occurs exactly once among $\sigma(1),\ldots,\sigma(n)$, every row also contains exactly one $1$.

Conversely, consider an $n\times n$ matrix $P$ where every entry is $1$ or $0$ and there is exactly one $1$ in each row and column. For each column $k$, there exists a unique index $\sigma(k)$ giving the row containing its $1$. Hence

$$
c_k=e_{\sigma(k)}.
$$

No two columns can have their $1$ in the same row, so $\sigma$ is injective. An injective map from a finite set to itself is also surjective, so $\sigma$ is bijective. Thus $\sigma\in S_n$ and

$$
P=\begin{bmatrix}e_{\sigma(1)}&\ldots&e_{\sigma(n)}\end{bmatrix}
    =P_\sigma.
$$

Therefore $P$ is a permutation matrix if and only if every entry is $0$ or $1$ with exactly one $1$ in each row and column.

**(b)** We know that when we multiply a matrix $M$ by a basis vector it produces the corresponding column, $Me_i=c_i$. Matrix multiplication acts separately on each column of the matrix on the right. So when multiplying $M$ by the matrix of basis vector columns,

$$
M\begin{bmatrix}e_1\mid\ldots\mid e_n\end{bmatrix}
    =\begin{bmatrix}c_1\mid\ldots\mid c_n\end{bmatrix}.
$$

Applying the same rule to the permuted basis columns gives

$$
\begin{aligned}
  M\begin{bmatrix}e_{\sigma(1)}\mid\ldots\mid e_{\sigma(n)}\end{bmatrix}
    &=\textcolor{red}{\begin{bmatrix}Me_{\sigma(1)}\mid\ldots\mid
      Me_{\sigma(n)}\end{bmatrix}}\\
    &=\begin{bmatrix}c_{\sigma(1)}\mid\ldots\mid c_{\sigma(n)}\end{bmatrix}.
\end{aligned}
$$

Since $P_\sigma=\begin{bmatrix}e_{\sigma(1)}\mid\ldots\mid
e_{\sigma(n)}\end{bmatrix}$,

$$
MP_\sigma=\begin{bmatrix}c_{\sigma(1)}\mid\ldots\mid
    c_{\sigma(n)}\end{bmatrix}.
$$

**(c)** We first express $v\in\mathbb{R}^n$ as a linear combination of the standard basis vectors,

$$
v=v^1e_1+\ldots+v^ne_n.
$$

Now applying $P_\sigma$ to both sides and using linearity,

$$
\begin{aligned}
  P_\sigma v&=P_\sigma(v^1e_1+\ldots+v^ne_n)\\
    &=v^1P_\sigma e_1+\ldots+v^nP_\sigma e_n.
\end{aligned}
$$

Focusing on each $k$-th term $P_\sigma e_k$, we know that right-multiplying by the $k$-th basis vector produces the $k$-th column. By the definition of $P_\sigma$, this gives

$$
P_\sigma e_k=\textcolor{red}{e_{\sigma(k)}}.
$$

Substituting this identity into the linear combination gives

$$
\begin{aligned}
  \textcolor{red}{P_\sigma v}
    &=v^1e_{\sigma(1)}+\ldots+v^n\textcolor{red}{e_{\sigma(n)}}\\
    &=\sum_{k=1}^n v^ke_{\sigma(k)}.
\end{aligned}
$$

Thus, $P_\sigma$ defines the linear map that permutes the coordinates of $v$ according to $\sigma$, moving the coefficient $v^k$ from the $k$-th coordinate to the $\sigma(k)$-th coordinate. Equivalently, the $i$-th output coordinate comes from the input index $k$ satisfying $\sigma(k)=i$, so

$$
\textcolor{red}{(P_\sigma v)^i=v^{\sigma^{-1}(i)}.}
$$

**(d)** Fix any $k\in\{1,\ldots,n\}$. It was proven in part (c) that

$$
P_\tau e_k=e_{\tau(k)}.
$$

Applying $P_\sigma$ and using its action on standard basis vectors gives

$$
\begin{aligned}
  P_\sigma P_\tau e_k&=P_\sigma e_{\tau(k)}\\
    &=e_{\sigma(\tau(k))}.
\end{aligned}
$$

On the other hand, the composition satisfies $(\sigma\circ\tau)(k)=\sigma(\tau(k))$, so

$$
\begin{aligned}
  P_{\sigma\circ\tau}e_k
    &=\textcolor{red}{e_{(\sigma\circ\tau)(k)}}\\
    &=e_{\sigma(\tau(k))}.
\end{aligned}
$$

Thus $P_{\sigma\circ\tau}e_k=P_\sigma P_\tau e_k$ for every $k$. Every vector is a linear combination of the standard basis vectors, so linearity implies that the two matrices act identically on every vector. Therefore,

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

**(e)** The determinant of $P_\sigma$ is the value of the normalized antisymmetric multilinear function $D$ on its columns. Here $c_k=e_{\sigma(k)}$, so

$$
\begin{aligned}
  \textcolor{red}{\det(P_\sigma)}&=D(c_1,\ldots,c_n)\\
    &=D(e_{\sigma(1)},\ldots,e_{\sigma(n)}).
\end{aligned}
$$

Each column is already a standard basis vector, so there is just one basis-vector value to evaluate. Since $\sigma$ is bijective, these inputs are distinct.

Choose a decomposition $\sigma=\tau_1\circ\cdots\circ\tau_r$ into $r$ transpositions. Whenever two inputs are interchanged in an antisymmetric multilinear function, a factor of $-1$ is produced. Applying the transpositions in this decomposition rearranges $(e_1,\ldots,e_n)$ into $(e_{\sigma(1)},\ldots,e_{\sigma(n)})$, contributing a factor of $(-1)^r$. Normalization gives $D(e_1,\ldots,e_n)=1$, and the definition of the sign gives $\varepsilon(\sigma)=(-1)^r$. Hence,

$$
\begin{aligned}
  D(e_{\sigma(1)},\ldots,e_{\sigma(n)})
    &=\textcolor{red}{(-1)^r}D(e_1,\ldots,e_n)\\
    &=\textcolor{red}{(-1)^r\cdot1}\\
    &=\varepsilon(\sigma).
\end{aligned}
$$

Therefore, $\det(P_\sigma)=\varepsilon(\sigma)$. ◻

## Eigenvalues and diagonalization

### Exercise 7.1.5

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?

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:sums-of-eigenvectors)

*Awaiting solution.*

### Exercise 7.3.2

Find all eigenvectors of the matrix

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

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:triangular-matrix-eigenvectors)

*Awaiting solution.*

### Exercise 7.3.3

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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:eigenvectors-in-a-basis)

*Awaiting solution.*

### Exercise 7.4.1

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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:rotation-eigenvalues)

*Awaiting solution.*

### Exercise 7.4.5

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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:eigenvalue-true-or-false)

*Awaiting solution.*

### Exercise 7.5.5

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$.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw06:nilpotent-eigenvalues)

*Awaiting solution.*

### Exercise 7.6.1

(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.

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/eigenvalues-and-diagonalization/#ex:hw07:disjoint-subspaces-independence)

*Solution.* Suppose $av_1+bv_2=0$, where $a,b$ are scalars. Then $av_1=-bv_2$. Since $V_1,V_2$ are subspaces,

$$
av_1=-bv_2\in V_1\cap V_2=\{0\}.
$$

Hence $av_1=0$ and $bv_2=0$. Both $v_1$ and $v_2$ are nonzero, so $a=b=0$. Therefore $\{v_1,v_2\}$ is linearly independent. ◻

## Inner products and norms

### Exercise 8.1.2

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.
    $$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/inner-products-and-norms/#ex:hw07:coordinate-inner-products)

*Solution.* **1.1.** Testing positive definiteness gives

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

The real coordinates $v^1,v^2$ can have opposite signs, so this expression can be negative even when $v\ne0$. Thus the form is not positive definite and is not an inner product.

**1.2.** First, the form is symmetric because

$$
\begin{aligned}
      (w,v)&=2w^1v^1-w^1v^2-w^2v^1+2w^2v^2\\
        &=(v,w).
    \end{aligned}
$$

To test positive definiteness, calculate

$$
\begin{aligned}
      (v,v)&=2(v^1)^2-2v^1v^2+2(v^2)^2\\
        &=\bigl((v^1)^2-2v^1v^2+(v^2)^2\bigr)
          +(v^1)^2+(v^2)^2\\
        &=(v^1-v^2)^2+(v^1)^2+(v^2)^2.
    \end{aligned}
$$

A sum of real squares is nonnegative and vanishes only when every squared term is zero. Hence $(v,v)=0$ exactly when $v=0$, and $(v,v)>0$ whenever $v\ne0$.

For linearity in the first argument, let $a\in\mathbb{R}$ and $u,v,w\in\mathbb{R}^2$ be arbitrary. Then

$$
\begin{aligned}
      (av+u,w)
        &=2(av^1+u^1)w^1-(av^1+u^1)w^2\\
        &\quad -(av^2+u^2)w^1+2(av^2+u^2)w^2\\
        &=a\bigl(2v^1w^1-v^1w^2-v^2w^1+2v^2w^2\bigr)\\
        &\quad +\bigl(2u^1w^1-u^1w^2-u^2w^1+2u^2w^2\bigr)\\
        &=a(v,w)+(u,w).
    \end{aligned}
$$

By symmetry,

$$
(v,aw+u)=(aw+u,v)=a(w,v)+(u,v)=a(v,w)+(v,u).
$$

Thus the form is bilinear, symmetric, and positive definite, so it is an inner product. ◻

### Exercise 8.1.3

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}
    $$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/inner-products-and-norms/#ex:hw07:tensor-inner-products)

*Solution.* **2.1.** The prescribed basis values are symmetric, with $T(e_1,e_2)=T(e_2,e_1)=1$. To test positive definiteness, write $v=ae_1+be_2$, where $a,b\in\mathbb{R}$. Since $T$ is a 2-tensor, bilinearity gives

$$
\begin{aligned}
      T(v,v)&=T(ae_1+be_2,ae_1+be_2)\\
        &=a\bigl(aT(e_1,e_1)+bT(e_1,e_2)\bigr)\\
        &\quad +b\bigl(aT(e_2,e_1)+bT(e_2,e_2)\bigr)\\
        &=a^2T(e_1,e_1)+abT(e_1,e_2)\\
        &\quad +abT(e_2,e_1)+b^2T(e_2,e_2)\\
        &=a^2+ab+ab+b^2\\
        &=(a+b)^2\ge0.
    \end{aligned}
$$

Choosing $a=1$ and $b=-1$ gives $v=e_1-e_2\ne0$, but $T(v,v)=0$. Therefore $T$ is not positive definite and is not an inner product.

**2.2.** Here

$$
T(e_1,e_2)=1\ne-1=T(e_2,e_1).
$$

Thus $T$ is not symmetric and cannot be an inner product. ◻

### Exercise 8.4.3

(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.
    $$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/inner-products-and-norms/#ex:hw07:minimization-and-cauchy-schwarz)

*Solution.* **4.1.** A quadratic $f(t)=at^2+bt+c$ with $a>0$ is an upward-opening parabola and has a unique minimum. By bilinearity and symmetry of the real inner product,

$$
\begin{aligned}
      f(t)&=|v-tw|^2=(v-tw,v-tw)\\
        &=(v,v)-t(v,w)-t(w,v)+t^2(w,w)\\
        &=(w,w)t^2-2(v,w)t+(v,v).
    \end{aligned}
$$

Since $w\ne0$, positive definiteness gives $a=(w,w)>0$. Thus $f$ has a unique minimum.

**4.2.** Complete the square in $f(t)=at^2+bt+c$. Factoring out $a$ from the first two terms gives

$$
f(t)=a\left(t^2+\frac{b}{a}t\right)+c.
$$

Since $(t-d)^2=t^2-2dt+d^2$, the required shift satisfies $-2d=b/a$, or $d=-b/(2a)$. Adding and subtracting $(b/(2a))^2$ gives

$$
\begin{aligned}
      f(t)&=a\left(t^2+\frac{b}{a}t
        +\left(\frac{b}{2a}\right)^2
        -\left(\frac{b}{2a}\right)^2\right)+c\\
        &=a\left(\left(t+\frac{b}{2a}\right)^2
          -\left(\frac{b}{2a}\right)^2\right)+c\\
        &=a\left(t+\frac{b}{2a}\right)^2
          +\left(c-\frac{b^2}{4a}\right).
    \end{aligned}
$$

Because $a>0$, the squared term has its unique minimum at zero. Consequently,

$$
t_{\min}=-\frac{b}{2a},\qquad
    f_{\min}=c-\frac{b^2}{4a}.
$$

Substituting $a=(w,w)$, $b=-2(v,w)$, and $c=(v,v)$ yields

$$
t_{\min}=\frac{(v,w)}{(w,w)},\qquad
    f_{\min}=(v,v)-\frac{(v,w)^2}{(w,w)}.
$$

**4.3.** First suppose $w\ne0$. The preceding calculation also applies when $v=0$. Positive definiteness gives

$$
f(t)=|v-tw|^2\ge0\qquad\text{for every }t\in\mathbb{R}.
$$

Thus its global minimum satisfies

$$
f_{\min}=(v,v)-\frac{(v,w)^2}{(w,w)}\ge0.
$$

Since $(w,w)>0$, multiplying by $(w,w)$ gives

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

If equality holds, then $f_{\min}=0$, so

$$
|v-t_{\min}w|^2=0.
$$

Positive definiteness implies $v-t_{\min}w=0$. Hence $v=sw$ with $s=t_{\min}$.

Conversely, if $v=sw$ for some $s\in\mathbb{R}$, then

$$
f(s)=|v-sw|^2=0.
$$

Since $f(t)\ge0$ for every $t$, its minimum is zero. Therefore

$$
(v,v)-\frac{(v,w)^2}{(w,w)}=0,
$$

which gives equality in the Cauchy–Schwarz inequality. If instead $w=sv$, our assumption $w\ne0$ forces $s\ne0$. Then $v=s^{-1}w$, so the same argument applies.

Finally, if $w=0$, bilinearity gives $(v,0)=0$ and $(0,0)=0$, so

$$
(v,w)^2=0=(v,v)(w,w).
$$

Equality holds, and the required alternative $w=sv$ is satisfied by $s=0$. This completes the inequality and its equality characterization for all $v,w\in V$. ◻

### 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.
$$

[Original exercise](https://xyzmaths.org/notes/linear-algebra/linear-algebra-i/inner-products-and-norms/#ex:lec08:pythagorean-theorem)

*Awaiting solution.* A solution has not yet been supplied.
