Exercises – Long Day#


Exercise 1: Linearity and the Rank-Nullity Theorem#

Two maps \(f: \mathbb{R}^2 \to \mathbb{R}^2\) and \(g: \mathbb{R}^2 \to \mathbb{R}^2\) are given by:

\[\begin{split}f\left(\left[\begin{array}{r} x_1\\ x_2 \end{array}\right]\right)=\left[\begin{array}{r} x_1-x_2\\-x_1+x_2\end{array}\right] \quad \text{and} \quad g\left(\left[\begin{array}{r}x_1\\x_2\end{array}\right]\right)=\left[\begin{array}{r}-x_2\\x_1^{2}\end{array}\right]. \end{split}\]

Question a#

Show that only one of the two maps is a linear map between the real vector spaces \(\mathbb R^2\) and \(\mathbb R^2\). Find out which by investigating whether they fulfill the two linearity requirements in Definition 11.0.1 in the textbook.

Question b#

Provide a basis as well as an ordered basis for the kernel of \(f\). Then determine the dimension of the kernel.

Question c#

State the image space of the found linear map. Also, provide a basis as well as an ordered basis for the image space, and determine the dimension of the image space.


Exercise 2: Linear Maps defined by Diagonal Matrices#

Let \(\lambda_1,\lambda_2 \in \mathbb{R}\) and define

\[\begin{split}{\mathbf A}=\left[\begin{array}{rr} \lambda_1 & 0\\ 0 & \lambda_2\end{array}\right].\end{split}\]

In this exercise we investigate the linear map \(L_{\mathbf A}: \mathbb{R}^2 \to \mathbb{R}^2\) defined by \(L_{\mathbf A}\left({\mathbf v}\right)={\mathbf A}\cdot {\mathbf v}.\)

Question a#

Sketch the set \(\mathcal{K}=\{(v_1,v_2) \, \mid \, 0 \le v_1 \le 1, \, 0 \le v_2 \le 1\}\) in \(\mathbb{R}^2\).

Question b#

Sketch the set \(L_{\mathbf A}(\mathcal{K})\), meaning the set \(\{L_{\mathbf A}({\mathbf v}) \, \mid \, {\mathbf v} \in \mathcal{K} \}\), in the following cases:

  1. \(\lambda_1=1\) and \(\lambda_2=1\)

  2. \(\lambda_1=2\) and \(\lambda_2=3\)

  3. \(\lambda_1=-1\) and \(\lambda_2=2\)

  4. \(\lambda_1=-4\) and \(\lambda_2=-3\)

Question c#

With \(\mathcal{K}\) and \({\mathbf A} \in \mathbb{R}^{2 \times 2}\) as before, check that the area of \(L_{\mathbf A}(\mathcal{K})\) equals \(|\det({\mathbf A})|.\)

Question d#

Now let

\[\begin{split}{\mathbf A}=\left[\begin{array}{rr} 1 & \lambda\\ 0 & 1\end{array}\right] \quad,\, \lambda \in \mathbb{R}.\end{split}\]

Check that \(L_{\mathbf A}(\mathcal{K})\) has an area of \(1\) and that \(\det({\mathbf A})=1\).

Note: It turns out that it for an arbitrary matrix \({\mathbf A} \in \mathbb{R}^{2 \times 2}\) holds true that the area of \(L_{\mathbf A}(\mathcal{K})\) equals \(|\det({\mathbf A})|.\)


Exercise 3: Linear Maps and Differentiation#

As in Example 10.4.5 in the textbook the notation \(C_\infty(\mathbb R)\) symbolises a real vector space consisting of all functions from \(\mathbb{R}\) to \(\mathbb{R}\) that can be differentiated any arbitrary number of times. In this exercise we consider the subspace \(V_1\) of \(C_\infty(\mathbb{R})\) that is spanned by the functions \(\mathrm e^t, \mathrm e^{-t}, \cos(t),\) and \(\sin(t)\). You may use the fact that these four functions are linearly independent over \(\mathbb{R}\) and hence that they constitute an ordered basis for \(V_1\).

We now define a function \(L: V_1 \to V_1\) by the expression \(L(f)=f'+f\), where \(f \in V_1\) and where \(f'\) denotes the derivative of the function \(f\).

Question a#

Show that the function \(L\) is a linear map between real vector spaces.

Question b#

Determine the mapping matrix \({}_\beta [L] _\beta\) when \(\beta=(\mathrm e^t,\mathrm e^{-t},\cos(t),\sin(t)).\)

Question c#

Another ordered basis is now chosen for \(V_1\): \(\gamma=(\mathrm{sinh(t)},\mathrm{cosh(t)},\sin(t),\cos(t))\). The functions \(\mathrm{sinh(t)}\) and \(\mathrm{cosh(t)}\) were defined in Exercise 10 from Long Day in Week 2. Determine the mapping matrix \({}_\gamma [L] _\gamma\) directly from the formula in Lemma 11.3.3 in the textbook.

Question d#

Determine the change-of-basis matrix \({}_\gamma [\mathrm{id}_{V_1}] _\beta\).

Question e#

Use the second part of Theorem 11.3.4 in the textbook to realise that \({}_\gamma [\mathrm{id}_{V_1}] _\beta \cdot {}_\beta [L] _\beta = {}_\gamma [L] _\gamma \cdot {}_\gamma [\mathrm{id}_{V_1}] _\beta.\) Check that the equation holds using your results from the previous questions.


Exercise 4: Change of Basis and Mapping Matrices#

We are given the vectors

\[\begin{split}\mathbf v_1 = \left[\begin{array}{r} 1\\ 2\end{array}\right] \text{ and } \mathbf v_2=\left[\begin{array}{r} 3\\ 7\end{array}\right] \,\text{ from $\mathbb{R}^2$},\end{split}\]

as well as

\[\begin{split}\mathbf w_1 = \left[\begin{array}{r} 1\\ 2\\ 2\end{array}\right], \mathbf w_2 = \left[\begin{array}{r} 2\\ 3\\1\end{array}\right], \text{ and } \mathbf w_3 = \left[\begin{array}{r} 1\\ 2\\1\end{array}\right] \,\text{ from $\mathbb{R}^3$}.\end{split}\]

We now define the ordered bases

\[\begin{split}\beta=\left(\mathbf v_1,\mathbf v_2\right) \quad \text{and} \quad \epsilon=\left( \left[\begin{array}{r} 1\\ 0\end{array}\right],\left[\begin{array}{r} 0\\ 1\end{array}\right]\right) \text{ for $\mathbb{R}^2$}\end{split}\]

as well as

\[\begin{split}\gamma=\left(\mathbf w_1,\mathbf w_2,\mathbf w_3\right) \quad \text{and} \quad \eta=\left( \left[\begin{array}{r} 1\\ 0\\ 0\end{array}\right],\left[\begin{array}{r} 0\\ 1\\0\end{array}\right],\left[\begin{array}{r} 0\\ 0\\1\end{array}\right]\right) \text{ for $\mathbb{R}^3$}.\end{split}\]

A linear map \(L:\mathbb{R}^2\to \mathbb{R}^3\,\) fulfills that

\[L(\mathbf{v}_1)=\mathbf{w}_1+\mathbf{w}_2-3\mathbf{w}_3 \quad \mathrm{and} \quad L(\mathbf{v}_2)=\mathbf{w}_1-\mathbf{w}_2-2\mathbf{w}_3\,.\]

The goal with this Exercise is to determine the mapping matrix \({}_\eta[L]_\epsilon\), meaning the mapping matrix of \(L\), with respect to the ordered standard bases.

Question a#

State the mapping matrix \({}_\gamma[L]_\beta\) of \(L\).

Question b#

State the mapping matrix \({}_\eta[L]_\beta\) of \(L\), where \(\beta\) is as before and \(\eta\) is the ordered standard basis for \(\mathbb{R}^3\,.\)

Question c#

Now state the mapping matrix \({}_\eta[L]_\epsilon\) of \(L\), where \(\eta\) and \(\epsilon\) are the ordered standard bases for \(\mathbb{R}^2\) and \(\mathbb{R}^3\).


Exercise 5: Kernel of a Linear Map#

Let \(V_1\) and \(V_2\) be two vector spaces over a field \(\mathbb{F}\). Show that the kernel of a linear map \(L: V_1 \to V_2\) is a subspace of \(V_1.\)


Exercise 6: Linear Map from a Polynomial Space#

Let \(V_1=\{a+bZ+cZ^2 \, \mid \, a,b,c \in \mathbb{R}\}\) be a subspace of the real vector space \(\mathbb{R}[Z]\) that consists of all polynomials of degree no higher than two. We define a function \(L: V_1 \to \mathbb{R}\) by the expression \(p(Z) \mapsto p'(1)\). The expression \(p'(1)\) is the number you get from inserting \(1\) into \(p'(Z)\), where \(p'(Z)\) denotes the derivative of \(p(Z)\).

Question a#

Calculate \(L(Z^2+Z)\) and \(L(5Z^2-10Z+4)\).

Question b#

Show that \(L\) is a linear map between real vector spaces.

Question c#

Provide a basis for \(\mathrm{ker}(L)\).

Question d#

Show that \(\mathrm{image}(L)=\mathbb{R}\). Conclude that the map \(L\) is surjective.


Exercise 7: Injective Linear Maps#

A function \(f: A \to B\) is called injective if and only if it for all \(a_1,a_2 \in A\) holds that \(f(a_1)=f(a_2)\) implies \(a_1=a_2\). See the text before Example 2.2.4 in the textbook. In this exercise we will investigate what it means for a linear map \(L: V_1 \to V_2\) between two vector spaces \(V_1\) and \(V_2\) over \(\mathbb{F}\) to be injective.

Question a#

Assume that a linear map \(L: V_1 \to V_2\) is injective. Show that then \(\mathrm{ker}(L)=\{{\mathbf 0}\}.\)

Question b#

Assume that a linear map \(L: V_1 \to V_2\) is given for which \(\mathrm{ker}(L)=\{{\mathbf 0}\}.\) Show that \(L\) then is injective.

Question c#

Conclude based on the two previous Questions that a linear map \(L: V_1 \to V_2\) is injective if and only if \(\mathrm{ker}(L) = \{{\mathbf 0}\}.\)


Question 8: Investigation of a Linear Map from \(\Bbb R^4\) to \(\Bbb R^3\)#

Let \(L:\mathbb{R} ^4 \to \mathbb{R}^3\) be given by the expression

\[\begin{split} L\left(\left[\begin{array}{r} v_1\\ v_2\\ v_3\\ v_4 \end{array}\right] \right)= \left[\begin{array}{r} v_1+v_2+3v_3+v_4\\ 3v_1-v_2+2v_3+4v_4\\ 2v_1+2v_2+6v_3+2v_4 \end{array}\right]. \end{split}\]

Question a#

Find a matrix \({\mathbf A} \in \mathbb{R}^{3 \times 4}\) for which it applies that

\[\begin{split} L\left(\left[\begin{array}{r} v_1\\ v_2\\ v_3\\ v_4 \end{array}\right] \right)={\mathbf A}\cdot \left[\begin{array}{r} v_1\\ v_2\\ v_3\\ v_4 \end{array}\right]. \end{split}\]

Use Lemma 11.1.1 from the textbook to conclude that \(L\) is a linear map.

Question b#

Let \(\beta\) be the ordered standard basis for \(\mathbb{R}^4\) and \(\gamma\) the one for \(\mathbb{R}^3\). Check that \({\mathbf A} = {}_\gamma[L]_\beta\).

Question c#

Provide an ordered basis for the kernel of \(L\) as well as the dimension of the kernel.

Question d#

Provide a basis for the image space of \(L\) as well as the dimension of the image space.


Exercise 9: Powers of Matrices#

Let \({\mathbf A} \in \mathbb{F}^{n \times n}\) be a matrix and \({\mathbf Q} \in \mathbb{F}^{n \times n}\) an invertible matrix. Let \(k\) be a natural number. The \(k\)th power of \({\mathbf A}\), with the notation \({\mathbf A}^k\), is defined as the matrix that is achieved by multiplying \({\mathbf A}\) \(k\) times by itself. More formally \({\mathbf A}^k\) is defined recursively as follows:

\[\begin{split}{\mathbf A}^k = \left\{ \begin{array}{rl} {\mathbf A} & \text{if $k=1$}\\ {\mathbf A}^{k-1}\cdot {\mathbf A} & \text{if $k \ge 2$.}\end{array} \right.\end{split}\]

Question a#

Assume that \({\mathbf D}\) is a diagonal matrix. Show using induction on \(k\) that the matrix \({\mathbf D}^k\) also is a diagonal matrix for all natural numbers \(k\).

Question b#

Show via induction on \(k\) that \(({\mathbf Q}^{-1} \cdot {\mathbf A} \cdot {\mathbf Q})^k={\mathbf Q}^{-1} \cdot {\mathbf A}^k \cdot {\mathbf Q}.\)

Question c#

Let

\[\begin{split} {\mathbf A}=\left[\begin{array}{rr} 0 & 1\\ -6 & 5\end{array}\right] \quad \text{and} \quad {\mathbf Q}=\left[\begin{array}{rr} 1 & 1\\ 2 & 3\end{array}\right]. \end{split}\]

Check that \({\mathbf Q}^{-1} \cdot {\mathbf A} \cdot {\mathbf Q}\) is a diagonal matrix and use this to find a closed-form expression for \({\mathbf A}^k\).


“Exercise 10”: Thematic Python Module#

The Jupyter Notebook for module 3 will be released today at 15:30 on the course’s DTU Learn module.