Each lab worksheet will contain several activities, most of which will involve writing math on paper, and some of which will involve running code in a Jupyter Notebook. Lab activities are meant to last an hour, and the second hour of lab is dedicated to starting the homework assignment. To receive credit for a lab, you must show your lab TA your work on both the lab worksheet and homework assignment.
While you must get checked off by your lab TA individually, we encourage you to form groups with 1-2 other students to complete the activities together.
These outputs satisfy \(5x-y+3z=0\). Conversely, any vector on the plane has \(y=5x+3z\), so we can produce it using the input \(\begin{bmatrix}x\\z\end{bmatrix}\). Thus the set of possible outputs is exactly \(P\).
\(C\): Yes. The new column is on \(P\), so its inclusion does not expand \(\operatorname{colsp}(B)\) beyond the vectors that were already in \(\operatorname{colsp}(B)\). Thus \(\operatorname{colsp}(C)=\operatorname{colsp}(B)=P\).
\(D\): No. Every column is a multiple of \(\begin{bmatrix}1\\5\\0\end{bmatrix}\), so its column space is only a line. For instance, \(\begin{bmatrix}0\\3\\1\end{bmatrix}\) is on \(P\) but cannot be produced by \(D\), since every output of \(D\) has third entry zero.
\(E\): No. Its second column, \(\begin{bmatrix}0\\1\\0\end{bmatrix}\), is a possible output of \(E\), but it is not on \(P\): \(5(0)-1+3(0)=-1\ne0\). Having one column on the plane is not enough.
Every output has last two entries zero. Setting \(b=d=0\) lets us choose the first two entries freely through \(a\) and \(c\). Thus the possible outputs form a plane in \(\mathbb{R}^4\).
b)
Find two vectors \(\vec u\) and \(\vec v\) such that
1.
\(\vec u\) and \(\vec v\) are linearly independent.
Neither vector is a scalar multiple of the other, so they are linearly independent.
Column 2 is \(2\vec u\), and column 4 is \(-\vec u+3\vec v\). These are redundant columns, so removing them does not change the column space. Thus \(\operatorname{span}(\vec u,\vec v)=\operatorname{colsp}(A)\).
c)
Find two different\(4\times2\) matrices whose column space is equal to \(\operatorname{colsp}(A)\).
The columns of \(A_1\) are \(\vec u,\vec v\) from part (b), and those of \(A_2\) are \(\vec u,\vec u+\vec v\). Both pairs span the same plane, since \(\vec v=(\vec u+\vec v)-\vec u\).
Activity 3: Columns and invertibility
Definition: Linearly independent. The collection of vectors \(\vec v_1,\vec v_2,\ldots,\vec v_d\) is linearly independent when none of the vectors in the collection can be written as a linear combination of the other vectors in the collection.
Fact: A square matrix is invertible if and only if its columns are linearly independent.
a)
For each matrix, determine whether or not it is invertible.
\(A\) is not invertible. Its third column is the sum of its first two columns. This redundancy means that different inputs can give the same output. For instance,
We cannot uniquely recover the input from the output.
\(B\) is invertible. It is already upper triangular, with nonzero diagonal entries. For any proposed output \(\begin{bmatrix}b_1\\b_2\\b_3\end{bmatrix}\), the input must satisfy
Solve from the bottom row upward: first \(x_3\) is determined, then \(x_2\), then \(x_1\). Every output has exactly one input, so \(B\) is invertible.
\(C\) is not invertible. Its second column is \(\vec0\), which is a linear combination of the other columns with both coefficients zero. Changing the second entry of an input does not change the output, so the input cannot be recovered uniquely.
b)
For which real values of \(t\) is \(D\) invertible?
\(\boxed{t\ne0}\). When \(t\ne0\), the matrix multiplies each input coordinate by a nonzero number. We can undo this by dividing the four output coordinates by \(2,-1,3,t\), respectively.
When \(t=0\), the fourth column is \(\vec0\). Changing the fourth input coordinate does not change the output, so the matrix is not invertible.
Activity 4: Subspaces
A subspace generalizes a line or plane through the origin: it is a set of vectors that contains \(\vec0\) and is βflatβ in some sense. Formally, a subset \(S\) of \(\mathbb{R}^n\) is a subspace of \(\mathbb{R}^n\) if:
1.
\(\vec0\in S\).
2.
If \(\vec u,\vec v\in S\), then \(\vec u+\vec v\in S\). We say \(S\) is closed under addition.
3.
If \(\vec u\in S\) and \(c\in\mathbb{R}\), then \(c\vec u\in S\). We say \(S\) is closed under scalar multiplication.
a)
Sketch each set below. Each is a subset of \(\mathbb{R}^2\), but only some are subspaces of \(\mathbb{R}^2\). Which and why?
(i) Top right quadrant including its boundary \(x\ge0,\ y\ge0\)
xyβ555β5
(ii) The line \(y=2x\)
xyβ555β5
(iii) The line \(y=3x-4\)
xyβ555β5
Solution
(i) Top right quadrant including its boundary \(x\ge0,\ y\ge0\)
xyβ555β5
(ii) The line \(y=2x\)
xyβ555β5
(iii) The line \(y=3x-4\)
xyβ555β5
(i) Not a subspace. It is not closed under scalar multiplication. For example,
which is outside the quadrant, even though \(\begin{bmatrix}1\\1\end{bmatrix}\) is inside it.
(ii) A subspace. The line contains \(\vec0\). If \(\vec u=\begin{bmatrix}a\\2a\end{bmatrix}\) and \(\vec v=\begin{bmatrix}b\\2b\end{bmatrix}\) are on the line, then