Exercises – Long Day#


Exercise 1: Span of Vectors in \(\mathbb{R}^3\)#

In this exercise we will investigate the span of the following three vectors from \(\mathbb{R}^3\):

\[\begin{split}{\mathbf w}_1=\left[\begin{array}{r}1\\-1\\2\end{array}\right], {\mathbf w}_2=\left[\begin{array}{r}1\\3\\2\end{array}\right], \ \mathrm{and} \ {\mathbf w}_3=\left[\begin{array}{r}7\\9\\14\end{array}\right]. \end{split}\]

Question a#

Investigate whether \(\mathrm{Span}({\mathbf w}_1,{\mathbf w}_2,{\mathbf w}_3)\) can be spanned by fewer than three vectors. If so, then write one of the vectors as a linear combination of the other two.

Question b#

Check that the vectors \({\mathbf w}_1\) and \({\mathbf w}_2\) are linearly independent and conclude that the list \(({\mathbf w}_1,{\mathbf w}_2)\) is an ordered basis for \(\mathrm{Span}({\mathbf w}_1,{\mathbf w}_2,{\mathbf w}_3)\).

Question c#

Calculate the dimension of \(\mathrm{Span}({\mathbf w}_1,{\mathbf w}_2,{\mathbf w}_3)\).


Exercise 2: Another Span of Vectors in \(\mathbb{R}^3\)#

We are given the following three vectors in \(\mathbb{R}^3\):

\[\begin{split}{\mathbf v}_1=\left[\begin{array}{r}1\\-1\\2\end{array}\right], {\mathbf v}_2=\left[\begin{array}{r}1\\3\\2\end{array}\right], \ \mathrm{and} \ {\mathbf v}_3=\left[\begin{array}{r}1\\0\\0\end{array}\right]. \end{split}\]

Question a#

Show that the three given vectors are linearly independent.

Question b#

Determine an ordered basis for \(\mathrm{Span}({\mathbf v}_1,{\mathbf v}_2,{\mathbf v}_3)\). What is the dimension of this span?


Exercise 3: Kernel and Column Space of a Matrix#

We are given a matrix \(\mathbf A\) as follows

\[\begin{split} {\mathbf A}= \left[ \begin{array}{rrrr} 1 & 1 & 1 & 1\\ 0 & 2 & 4 & -1\\ 2 & 0& -2 & 3\\ 2 & 4 & 6 & 1\\ \end{array} \right]. \end{split}\]

Question a#

Determine an ordered basis for the kernel of the matrix. What is the nullity of the matrix?

Question b#

Determine an ordered basis for the column space of the matrix, and check that the rank-nullity theorem holds (Theorem 9.4.2 in the textbook).


Exercise 4: Dimension of Kernel and Column Space#

We are given the reduced row-echelon form of a complex matrix \(\mathbf A \in \mathbb{C}^{5 \times 10}\) by

\[\begin{split} \mathrm{rref}(\mathbf A)=\left[ \begin{array}{rrrrrrrrrr} 0 & 1&-1+i& 0 &\sqrt{2}-i&-\pi& 0 & 1 &\pi^2& e^3\\ 0 & 0 & 0 & 1 & 8 &3/2 & 0 & 1 &100 & -1/2\\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & i & -2 & 4/5\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\ \end{array} \right]. \end{split}\]

State, without doing any calculations, the nullity \(\mathrm{null}(\mathbf A)\) of matrix \(\mathbf A\) as well as the dimension of its column space, i.e. its rank \(\rho(\mathbf A)\).


Exercise 5: Spans and Homogeneous Systems of Linear Equations#

Justify that the solution set to the following homogeneous linear equation system over \(\mathbb R\):

\[\begin{split} \left\{ \begin{array}{rcl} x_2 +3x_3 - x_4+2x_5 & = & 0\\ 2x_1+3x_2+x_3+3x_4 & = & 0\\ x_1 + x_2 -x_3 + 2x_4-x_5 & = & 0 \end{array} \right. \end{split}\]

is the span of some vectors in \(\mathbb{R}^5.\) Then choose an ordered basis for the solution set. What is the dimension of the span?


Exercise 6: Span of Vectors#

In \(\mathbb{R}^6\) we are given the four vectors:

\[\begin{split}{\mathbf u}_1=\left[\begin{array}{c}1\\0\\1\\0\\1\\0\end{array}\right]\, , \quad {\mathbf u}_2=\left[\begin{array}{c}0\\1\\1\\1\\1\\-1\end{array}\right] \,, \quad {\mathbf v}_1=\left[\begin{array}{c}4\\-5\\-1\\-5\\-1\\5\end{array}\right]\, , \quad {\mathbf v}_2=\left[\begin{array}{c}-3\\2\\-1\\2\\-1\\-2\end{array}\right]\,.\end{split}\]

Question a#

Show that \({\mathbf u}_1\) and \({\mathbf u}_2\) span the same set that \({\mathbf v}_1\) and \({\mathbf v}_2\) span. In other words, show that \(\mathrm{Span}({\mathbf u}_1,{\mathbf u}_2)=\mathrm{Span}({\mathbf v}_1,{\mathbf v}_2)\).

Question b#

State a vector in \(\mathbb{R}^6\) that is not contained within \(\mathrm{Span}({\mathbf u}_1,{\mathbf u}_2)\).


Exercise 7: Ordered Bases#

As in Exercise 2 we will consider the span of the following three vectors from \(\mathbb{R}^3\):

\[\begin{split}{\mathbf v}_1=\left[\begin{array}{r}1\\-1\\2\end{array}\right], {\mathbf v}_2=\left[\begin{array}{r}1\\3\\2\end{array}\right], \ \mathrm{and} \ {\mathbf v}_3=\left[\begin{array}{r}1\\0\\0\end{array}\right]. \end{split}\]

Question a#

As we saw in Exercise 2, \(({\mathbf v}_1,{\mathbf v}_2,{\mathbf v}_3)\) is a ordered basis for \(\mathrm{Span}({\mathbf v}_1,{\mathbf v}_2,{\mathbf v}_3)\) and thus the span has a dimension of \(3\). Show that every vector \({\mathbf v}\) in \(\mathbb{R}^3\) can be written as a linear combination of \({\mathbf v}_1,{\mathbf v}_2,\) and \({\mathbf v}_3\), and conclude that \(\mathrm{Span}({\mathbf v}_1,{\mathbf v}_2,{\mathbf v}_3)=\mathbb{R}^3\).

Note: The intention behind this Exercise is to illustrate how any 3-dimensional span contained within \(\mathbb{R}^3\) is identical to \(\mathbb{R}^3\).

Question b#

Show that \(({\mathbf e}_1,{\mathbf e}_2,{\mathbf e}_3)\), where

\[\begin{split}{\mathbf e}_1=\left[ \begin{array}{r}1\\0\\0\end{array} \right], {\mathbf e}_2=\left[ \begin{array}{r}0\\1\\0\end{array} \right], \ \text{and} \ {\mathbf e}_3=\left[ \begin{array}{r}0\\0\\1\end{array} \right]\,,\end{split}\]

also is an ordered basis for \(\mathrm{Span}({\mathbf v}_1,{\mathbf v}_2,{\mathbf v}_3)\).

Note: This Question illustrates how the ordered basis described in Theorem 9.2.1 is not always the “nicest” choice of ordered basis that is possible.


Exercise 8: Dimension and Span#

As in Exercise 1 we consider the span of the following three vectors from \(\mathbb{R}^3\):

\[\begin{split}{\mathbf w}_1=\left[\begin{array}{r}1\\-1\\2\end{array}\right], {\mathbf w}_2=\left[\begin{array}{r}1\\3\\2\end{array}\right], \ \mathrm{and} \ {\mathbf w}_3=\left[\begin{array}{r}7\\9\\14\end{array}\right]. \end{split}\]

Can \(\mathrm{Span}({\mathbf w}_1,{\mathbf w}_2,{\mathbf w}_3)\) be spanned by just on vector? Note that we saw in Exercise 1 that this span has a dimension of 2 - thus we would intuitively expect the answer to be no.


“Exercise 9”: Thematic Python Module#

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