Section 28 Quiz 2 Review

28.1 Overview

Our second quiz covers the following sections:

  • Linear Transformations
  • Subspaces
    • 4.1: Subspaces of \(\mathbb{R}^n\)
    • 4.2: Null Space and Column Space
    • 4.3: Bases
    • 4.4: Coordinates

This corresponds to Problem Sets 3 and 4.

The best way to study is to do practice problems. The Quiz will have calculation problems (like Edfinity) and more conceptual problems (like the problem sets). Here are some ways to practice:

  • Make sure that you have mastered the Vocabulary, Skills and Concepts listed below.
  • Look over the Edfinity homework assingments
  • Do practice problems from the Edfinity Practice assignments. These allow you to “Practice Similar” by generating new variations of the same problem.
  • Redo the Jamboard problems
  • Try to resolve the Problem Sets and compare your answers to the solutions.
  • Do the practice problems below. Compare your answers to the solutions.

28.1.1 Vocabulary and Concepts

You should understand these concepts and be able to read and use these terms correctly:

  • all of the Important Definitions found here.
  • matrix multiplication
  • matrix inverses
  • the Invertible Matrix Theorem
  • subspaces
  • null space and column space of a matrix
  • kernel and image of a linear transformation
  • basis (span and linearly independent)
  • coordinate vector with respect to a basis \(\mathcal{B}\)
  • change-of-coordinates matrix
  • dimension

28.1.2 Skills

You should be able to perform these linear algebra tasks.

  • solve matrix algebra equations
  • find a matrix inverse
  • show that a subset is a subspace or demonstrate that it is not a subspace
  • describe the null space and the column space
  • determine if a vector is in a null space or column space
  • find a basis of a subspace
  • answer questions about the connections between all these ideas
  • write short proofs of basic statements using the Important Definitions

28.2 Practice Problems

28.2.1

In each case below, find the matrix of the linear transformation that is described, if you believe that the matrix exists. Otherwise, demonstrate that the transformation is not linear.

  1. The transformation \(T\) is given by: \[T \left( \begin{bmatrix} x_1 \\ x_2 \\ \end{bmatrix}\right) = \begin{bmatrix} x_1 + x_2 \\ 2 x_1 \\ -x_2 \\\end{bmatrix}. \]

  2. The transformation \(T\) is given by: \[T \left( \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} \right)= \begin{bmatrix} x_1 + x_2 + x_3 \\ x_1 x_2 \\ -x_2 + 2 x_3 \end{bmatrix}. \]

  3. The transformation \(L: \mathbb{R}^2 \to \mathbb{R}^2\) sends the shaded region on the left to the the shaded region on the right such that \(A\) maps to \(A\), \(B\) maps to \(B\), \(C\) maps to \(C\), and \(D\) maps to \(D\).

\(\qquad \qquad\)

  1. The transformation \(R: \mathbb{R}^2 \to \mathbb{R}^2\) sends the shaded region on the left to the the shaded region on the right such that \(A\) maps to \(A\), \(B\) maps to \(B\), \(C\) maps to \(C\), and \(D\) maps to \(D\).

\(\qquad \qquad\)

28.2.2

Find the inverse of the matrix \[ \left[ \begin{array}{rrr} 1 & -2 & 2 \\ 1 & 0 & 0 \\ 2 &-4 & 5 \end{array} \right] \]

28.2.3

Suppose that a linear transformation \(T: \mathbb{R}^n \rightarrow \mathbb{R}^n\) has the property that \(T(\mathsf{u}) = T(\mathsf{v})\) for some pair of distinct vectors \(\mathsf{u}, \mathsf{v} \in \mathbb{R}^n\). Can \(T\) map \(\mathbb{R}^n\) onto \(\mathbb{R}^n\)? Why or why not?

28.2.4

Let \(U\) and \(W\) be subspaces of a vector space \(\mathbb{R}^n\). Prove or disprove the following statements. Prove them by showing that the conditions are being a subspace are satisfied. Disprove them with a specific counter example.

  1. \(U \cap W = \{ \mathsf{v} \in \mathbb{R}^n \mid \mathsf{v} \in U \mbox{ and } \mathsf{v} \in W \}\) is a subspace

  2. \(U \cup W = \{ \mathsf{v} \in \mathbb{R}^n \mid \mathsf{v} \in U \mbox{ or } \mathsf{v} \in W \}\) is a subspace

  3. \(U+W = \{\mathsf{u} + \mathsf{w} \mid \mathsf{u} \in U \mbox{ and } \mathsf{w} \in W \}\) is a subspace

28.2.5

Let \(T: \mathbb{R}^n \rightarrow \mathbb{R}^m\) be a linear transformation.

  1. Suppose that \(T: \mathbb{R}^n \to \mathbb{R}^m\) is one-to-one. Prove that if \(\mathsf{v}_1, \mathsf{v}_2, \mathsf{v}_3\) are linearly independent, then \(T(\mathsf{v}_1), T(\mathsf{v}_2), T(\mathsf{v}_3)\) are linearly independent.

  2. Suppose that \(T: \mathbb{R}^n \to \mathbb{R}^m\) is onto. Prove that if \(\mathsf{v}_1, \mathsf{v}_2, \mathsf{v}_3\) span \(\mathbb{R}^n\) then \(T(\mathsf{v}_1), T(\mathsf{v}_2), T(\mathsf{v}_3)\) span \(\mathbb{R}^m\).

28.2.6

I have performed some row operations below for you on a matrix \(A\). Find a basis for the column space and the null space of \(A\). \[ A= \left[ \begin{matrix} 1& 2& 0& 2& 0& -1 \\ 1& 2& 1& 1& 0& -2 \\ 2& 4& -2& 6& 1& 2 \\ 1& 2& 0& 2& -1& -3 \\ \end{matrix}\right] \longrightarrow \left[ \begin{matrix} 1& 2& 0& 2& 0& -1\\ 0& 0& 1& -1& 0& -1\\ 0& 0& 0& 0& 1& 2\\ 0& 0& 0& 0& 0& 0\\ \end{matrix}\right] \]

28.2.7

Consider the matrix \[ A = \left[ \begin{array}{cccc} 1 & 5 & 2 & -4 \\ 3 & 10 & 2 & 8 \\ 4 & 15 & 4 & 4 \end{array} \right] \] Find a basis for \(\mathrm{Col}(A)\). Find a basis for \(\mathrm{Nul}(A)\).

28.2.8

Are the vectors in \({\mathcal B}\) a basis of \(\mathbb{R}^3\)? If not, find a basis of \(\mathbb{R}^3\) that consists of as many of the vectors from \({\mathcal B}\) as is possible. Explain your reasoning. \[ \mathcal{B}=\left\{ \begin{bmatrix} 1 \\ -1 \\ -2 \end{bmatrix},\begin{bmatrix} 2 \\ -1 \\ 1 \end{bmatrix},\begin{bmatrix} -1 \\ -1 \\ -8 \end{bmatrix} \right\} \]

28.2.9

Find the coordinates of \(\mathsf{w}\) in the standard basis and of \(\mathsf{v}\) in the \(\mathcal{B}\)-basis. \[ \mathcal{B} = \left\{ \mathsf{v}_1=\begin{bmatrix} 1 \\ 0 \\ 0 \\ 0 \end{bmatrix}, \mathsf{v}_2=\begin{bmatrix} 1 \\ 1 \\ 0 \\ 0 \end{bmatrix}, \mathsf{v}_3=\begin{bmatrix} 1 \\ 1 \\ 1 \\ 0 \end{bmatrix}, \mathsf{v}_4=\begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix} \right\}, \] \[ \mathsf{w} = \begin{bmatrix} 3 \\ -2 \\ 0 \\ -1 \end{bmatrix}_{\mathcal{B}}, \qquad \mathsf{v} = \begin{bmatrix} 10 \\ 9 \\ 7 \\ 4 \end{bmatrix}_{\mathcal{S}} \]

28.2.10

The subspace \(S \subset \mathbb{R}^5\) is given by \[ \mathsf{S} = \mathsf{span} \left( \begin{bmatrix}1\\ 1\\ 0\\ -1\\ 2 \end{bmatrix}, \begin{bmatrix} 0\\ 1\\ 1\\ 1\\ 1 \end{bmatrix}, \begin{bmatrix} 3\\ 1\\ -2\\ -5\\ 4 \end{bmatrix}, \begin{bmatrix} 1\\ 0\\ 1\\ 0\\ 1 \end{bmatrix}, \begin{bmatrix} 2\\ -1\\ -1\\ -3\\ 1 \end{bmatrix}, \right)\]

  1. Use the following matrix to find a basis for \(S\). What is the dimension of \(S\)? \[ A=\left[ \begin{array}{ccccc} 1 & 0 & 3 & 1 & 2 \\ 1 & 1 & 1 & 0 & -1 \\ 0 & 1 & -2 & 1 & -1 \\ -1 & 1 & -5 & 0 & -3 \\ 2 & 1 & 4 & 1 & 1 \\ \end{array} \right] \rightarrow \left[ \begin{array}{ccccc} 1 & 0 & 3 & 0 & 1 \\ 0 & 1 & -2 & 0 & -2 \\ 0 & 0 & 0 & 1 & 1 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ \end{array} \right] \]

  2. Find a basis for \(\mathrm{Nul}(A)\). What is the dimension of this nullspace?

28.2.11

A \(6 \times 8\) matrix \(A\) contains 5 pivots. For each of \(\mathrm{Col}(A)\) and \(\mathrm{Nul}(A)\),

  • Determine the dimension of the subspace,
  • Indicate whether it is subspace of \(\mathbb{R}^6\) or \(\mathbb{R}^8\), and
  • Decide how you would find a basis of the subspace.

28.3 Solutions to Practice Problems

28.3.1

  1. This is a linear transformation with \[A = \begin{bmatrix} 1 & 1 \\ 2 & 0 \\ 0 & -1 \end{bmatrix}.\]

  2. This is not a linear transformation because, for example, \[ 2 \, T \left( \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix} \right)= 2 \begin{bmatrix} 3 \\ 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 6 \\ 2 \\ 2 \end{bmatrix} \quad \mbox{while} \quad T \left( \begin{bmatrix} 2 \\ 2 \\ 2 \end{bmatrix} \right)= 2 \begin{bmatrix} 6 \\ 4 \\ 2 \end{bmatrix}. \]

  3. \(A= \begin{bmatrix} 1/2 & 1/2 \\ 1/2 & 1/2 \end{bmatrix}\)

  4. \(A= \begin{bmatrix} 0 & -1 \\ -1 & 0 \end{bmatrix}\)

28.3.2

The inverse is \[ \begin{bmatrix} 0 & 1 & 0 \\ -5/2 & 1/2 &1 \\ -2 & 0 & 1 \end{bmatrix} \]

28.3.3

No \(T\) cannot be an onto mapping by the Invertible Matrix Theorem. Since \(T\) is not one-to-one, the mapping cannot be onto.

28.3.4

  1. True
  • Since \(U\) and \(W\) are subspaces, we know that \(\mathbb{0} \in U\) and \(\mathbb{0} \in W\). Therefore \(\mathbb{0} \in U \cap W\).

  • Let \(\mathsf{v}_1 \in U \cap W\) and \(\mathsf{v}_2 \in U \cap W\).

  • We know that \(\mathsf{v}_1 \in U\) and \(\mathsf{v}_2 \in U\). Since \(U\) is a subspace, we have \(\mathsf{v}_1 + \mathsf{v}_2 \in U\).

  • We know that \(\mathsf{v}_1 \in W\) and \(\mathsf{v}_2 \in W\). Since \(W\) is a subspace, we have \(\mathsf{v}_1 + \mathsf{v}_2 \in W\). Therefore \(\mathsf{v}_1 + \mathsf{v}_2 \in U \cap W\).

  • Let \(\mathsf{v} \in U \cap W\) and \(c \in \mathbb{R}\).

  • We know that \(\mathsf{v} \in U\) and \(c \in R\). Since \(U\) is a subspace, we have \(c \mathsf{v} \in U\).

  • We know that \(\mathsf{v} \in W\) and \(c \in R\). Since \(W\) is a subspace, we have \(c \mathsf{v} \in W\).

  • Therefore \(c \mathsf{v} \in U \cap W\).

  1. False. Here is an example that shows this is not always true. Let \(V= \mathbb{R}^2\), \(U = \{ { x \choose 0} \mid x \in \mathbb{R} \}\) and \(W= \{ { 0 \choose y} \mid y \in \mathbb{R} \}\). The set \(U \cup W\) is not closed under addition. For example, \({1 \choose 0} + {0 \choose 1} = { 1 \choose 1} \notin U \cup W\).

  2. True.

  • Since \(U\) and \(W\) are subspaces, we know that \(\mathbb{0} \in U\) and \(\mathbb{0} \in W\). Therefore \(\mathbb{0} = \mathbb{0} + \mathbb{0} \in U + W\).

  • Let \(\mathsf{u}_1 + \mathsf{w}_1 \in U + W\) and \(\mathsf{u}_1 + \mathsf{w}_2 \in U + W\), where \(\mathsf{u}_1, \mathsf{u}_2 \in U\) and \(\mathsf{w}_1, \mathsf{w}_2 \in W\). Then \[ (\mathsf{u}_1 + \mathsf{w}_1) + (\mathsf{u}_2 + \mathsf{w}_2) = (\mathsf{u}_1 + \mathsf{u}_2) + (\mathsf{w}_1 + \mathsf{w}_2) \] and \(\mathsf{u}_3 = (\mathsf{u}_1 + \mathsf{u}_2) \in U\) (because \(U\) is a subspace) and \(\mathsf{w}_3 = (\mathsf{w}_1 + \mathsf{w}_2) \in W\) (because \(W\) is a subspace).

  • Therefore \((\mathsf{u}_1 + \mathsf{v}_1) + (\mathsf{u}_2 + \mathsf{w}_2) = \mathsf{u}_3 + \mathsf{w}_3 \in U + W\).

  • Let \(\mathsf{u} + \mathsf{w} \in U + W\) and \(c \in \mathbb{R}\). Then \(c(\mathsf{u} + \mathsf{w}) = c \mathsf{u} + c \mathsf{w}\). We know that \(c \mathsf{u} \in U\) (since \(U\) is a subspace) and \(c \mathsf{w} \in W\) (since \(W\) is a subspace). Therefore \(c(\mathsf{u} + \mathsf{w}) = c \mathsf{u} + c \mathsf{w} \in U+W\).

28.3.5

  1. Suppose that \(c_1 T(\mathsf{v}_1) + c_2 T(\mathsf{v}_2) + c_3 T(\mathsf{v}_3) = 0\). We must show that \(c_1 = c_2 = c_3 = 0\).
  • Since \(T\) is a linear transformation, this means that \(T(c_1 \mathsf{v}_1+ c_2 \mathsf{v}_2 + c_3 \mathsf{v}_3 )= 0\).
  • Since \(T\) is one-to-one and \(T(\mathbf{0}) = \mathbf{0}\), we must have \(c_1 \mathsf{v}_1+ c_2 \mathsf{v}_2 + c_3 \mathsf{v}_3 = \mathbf{0}\).
  • Because \(\mathsf{v}_1, \mathsf{v}_2, \mathsf{v}_3\) are linearly independent, this means that \(c_1 = c_2 = c_3 = 0\).

This proves that \(T(\mathsf{v}_1), T(\mathsf{v}_2), T(\mathsf{v}_3)\) are linearly independent.

  1. Given \(\mathsf{w} \in W\). We must show that there exist constants \(c_1, c_2, c_3\) such that \(\mathsf{w} = c_1 T(\mathsf{v}_1) + c_2 T(\mathsf{v}_2) + c_3 T(\mathsf{v}_3)\). Here we go!
  • Since \(T\) is onto, we know that there exists \(\mathsf{v} \in \mathbb{R}^n\) such that \(T(\mathsf{v}) = \mathsf{w}\).
  • Since \(\mathsf{v}_1, \mathsf{v}_2, \mathsf{v}_3\) span \(\mathbb{R}^n\), we know that there exist constants \(c_1, c_2, c_3\) such that \(\mathsf{v}= c_1 \mathsf{v}_1 + c_2 \mathsf{v}_2 + c_3 \mathsf{v}_k\)
  • Therefore \[ \mathsf{w} = T(\mathsf{v})= T(c_1 \mathsf{v}_1 + c_2 \mathsf{v}_2 + c_3 \mathsf{v}_k) = c_1 T(\mathsf{v}_1) + c_2 T(\mathsf{v}_2) + c_3 T(\mathsf{v}_k) \] because \(T\) is a linear transformation. This proves that \(T(\mathsf{v}_1), T(\mathsf{v}_2), T(\mathsf{v}_3)\) span \(W\).

28.3.6

A basis for \(\mathrm{Col}(A)\) is \[ \begin{bmatrix} 1 \\1 \\ 2 \\ 1 \end{bmatrix}, \quad \begin{bmatrix} 0 \\1 \\ -2 \\ 0 \end{bmatrix}, \quad \begin{bmatrix} 0 \\0 \\ 1 \\ -1 \end{bmatrix} \] and a basis for \(\mathrm{Nul}(A)\) is \[ \begin{bmatrix} -2 \\1 \\ 0 \\ 0 \\ 0 \\ 0 \end{bmatrix}, \quad \begin{bmatrix} -2 \\0 \\ 1 \\ 1 \\ 0 \\ 0 \end{bmatrix}, \quad \begin{bmatrix} 1 \\0 \\ 1\\ 0 \\ -2 \\ 1 \end{bmatrix}. \]

28.3.7

Using RStudio we find:

##      [,1] [,2] [,3] [,4]
## [1,]    1    5    2   -4
## [2,]    3   10    2    8
## [3,]    4   15    4    4
##      [,1] [,2] [,3] [,4]
## [1,]    1    0 -2.0   16
## [2,]    0    1  0.8   -4
## [3,]    0    0  0.0    0

A basis for \(\mathrm{Col}(A)\) is \[ \begin{bmatrix} 1 \\ 3 \\ 4 \end{bmatrix}, \quad \begin{bmatrix} 5 \\ 10 \\ 15 \end{bmatrix}. \]

A basis for \(\mathrm{Nul}(A)\) is \[ \begin{bmatrix} 2 \\ -0.8 \\ 1 \\ 0 \end{bmatrix}, \quad \begin{bmatrix} -16 \\ 4 \\ 0 \\ 1 \end{bmatrix}. \]

28.3.8

A =  cbind(c(1,-1,-2),c(2,-1,1),c(-1,-1,-8))
A
##      [,1] [,2] [,3]
## [1,]    1    2   -1
## [2,]   -1   -1   -1
## [3,]   -2    1   -8
rref(A)
##      [,1] [,2] [,3]
## [1,]    1    0    3
## [2,]    0    1   -2
## [3,]    0    0    0

No they are not a basis. The corresponding matrix only has two pivots. Let’s add the three elementary vectors to create matrix \(B\) and then row reduce.

B =  cbind(A, c(1,0,0),c(0,1,0),c(0,0,1))
B
##      [,1] [,2] [,3] [,4] [,5] [,6]
## [1,]    1    2   -1    1    0    0
## [2,]   -1   -1   -1    0    1    0
## [3,]   -2    1   -8    0    0    1
rref(B)
##      [,1] [,2] [,3] [,4]       [,5]       [,6]
## [1,]    1    0    3    0 -0.3333333 -0.3333333
## [2,]    0    1   -2    0 -0.6666667  0.3333333
## [3,]    0    0    0    1  1.6666667 -0.3333333

From this matrix, we can see that the vectors \[ \begin{bmatrix} 1 \\ -1 \\ -2 \end{bmatrix}, \quad \begin{bmatrix} 2 \\ -1 \\ 1 \end{bmatrix}, \quad \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}. \] are linearly independent because they correspond to the basis columns of \(B\).

28.3.9

We use the change of basis matrix. \[ P_{\cal B} = \begin{bmatrix} 1 & 1 & 1 & 1 \\ 0 & 1 & 1 & 1 \\ 0 & 0 & 1 & 1 \\ 0 & 0 & 0 & 1 \end{bmatrix} \] Then, the desired coordinate vectors are \[ \mathsf{w} = \begin{bmatrix} 0 \\ -3 \\ -1 \\ -1 \end{bmatrix}_{\mathcal{S}}, \qquad \mathsf{v} = \begin{bmatrix} 1 \\ 2 \\ 3 \\ 4 \end{bmatrix}_{\mathcal{B}} \] You can find these vectors by multiplying by \(P_\mathcal{B}\) and by augmenting and row reducing as seen here.

A =  cbind(c(1,0,0,0),c(1,1,0,0),c(1,1,1,0),c(1,1,1,1))
w = c(3,-2,0,-1)
v = c(10,9,7,4)
A  %*% w
##      [,1]
## [1,]    0
## [2,]   -3
## [3,]   -1
## [4,]   -1
Av = cbind(A,v)
rref(Av)
##              v
## [1,] 1 0 0 0 1
## [2,] 0 1 0 0 2
## [3,] 0 0 1 0 3
## [4,] 0 0 0 1 4

Or we can use the inverse of \(P_\mathcal{B}\). \[ P_{\cal B}^{-1} = \begin{bmatrix} 1 & -1 & 0 & 0 \\ 0 & 1 & -1 & 0 \\ 0 & 0 & 1 &-1 \\ 0 & 0 & 0 & 1 \end{bmatrix} \]

Ainv = solve(A)
Ainv %*% v
##      [,1]
## [1,]    1
## [2,]    2
## [3,]    3
## [4,]    4

28.3.10

  1. \(\dim(S) = 3\) and a basis for \(S\) is \[ \begin{bmatrix} 1 \\ 1 \\ 0 \\ -1 \\2 \end{bmatrix}, \quad \begin{bmatrix} 0 \\ 1 \\ 1 \\ 1 \\ 1 \end{bmatrix}, \quad \begin{bmatrix} 1 \\ 0 \\ 1 \\ 0 \\1 \end{bmatrix}. \]

  2. \(\dim(\mathrm{Nul}(A))=2\) and a basis is \[ \begin{bmatrix} -3 \\ 2 \\ 1 \\ 0 \\0\end{bmatrix}, \quad \begin{bmatrix} -1 \\ 2 \\ 0 \\ -1 \\1 \end{bmatrix}. \]

28.3.11

  • \(\mathrm{Col}(A)\) has dimension 5, and it is a subspace of \(\mathbb{R}^6\). You would find a basis by taking the pivot columns of \(A\).
  • \(\mathrm{Nul}(A)\) has dimension 3, and it is a subspace of \(\mathbb{R}^8\). You would find a basis by finding the parametric solution to \(A \mathsf{x}= \mathbb{0}\).