CS223 // Final Exam // Term 232

Final Exam (Term 232)

Gauss-Jordan, parameter cases, transposes, LU solving, determinant tricks, the four fundamental subspaces, eigen-decomposition, Gram-Schmidt and QR.

0 parts marked
Score 0 / 40 Time left 00:00

Question 1: Linear equations and matrix algebra

16 PTS
1
Solve by Gauss-Jordan elimination (reduced row echelon form).$$\begin{cases}-2x_1 + 3x_2 - 4x_3 = -2 \\ x_1 - 2x_2 + 2x_3 = 2 \\ 3x_1 + x_2 - x_3 = 1\end{cases}$$
3 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

2a
For which values of $a$ does the system have a unique solution?$$\begin{cases}x_1 + 2x_2 + x_3 = 3 \\ -x_1 + ax_2 + 4x_3 = -2 \\ 2x_1 - 3x_2 + ax_3 = b\end{cases}$$
1.5 pts
2b
Find the pairs $(a, b)$ for which the system has more than one solution.
1.5 pts
3a
$A = \begin{bmatrix}-1 & 2 & -3 \\ 2 & 1 & -1 \\ -2 & 3 & 1\end{bmatrix}$, $B = \begin{bmatrix}1 & -2 \\ -1 & 3 \\ -3 & 3\end{bmatrix}$. Let $C = B^TA^T$. Find $C$.
3 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

3b
Write $C$ in terms of $A$ and $B$.
2 pts
4
Solve the system using the given factorization $A = LU$.$$\begin{bmatrix}1 & -2 & 1 \\ -1 & 3 & 2 \\ 1 & 0 & 1\end{bmatrix}\begin{bmatrix}x_1\\x_2\\x_3\end{bmatrix} = \begin{bmatrix}3 \\ -1 \\ 2\end{bmatrix},\qquad \begin{bmatrix}1 & -2 & 1 \\ -1 & 3 & 2 \\ 1 & 0 & 1\end{bmatrix} = \begin{bmatrix}1 & 0 & 0 \\ -1 & 1 & 0 \\ 1 & 2 & 1\end{bmatrix}\begin{bmatrix}1 & -2 & 1 \\ 0 & 1 & 3 \\ 0 & 0 & -6\end{bmatrix}$$
3 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

5
Which values of $a$ and $b$ make $\begin{bmatrix}3 & -2 & 1 \\ 0 & a-2 & 3 \\ 0 & 0 & b+1\end{bmatrix}$ singular?
2 pts

Question 2: Determinants

4 PTS
1
Find $\det A$ for $A = \begin{bmatrix}2 & 3 & -1 & 4 \\ 1 & -2 & 3 & 0 \\ 2 & -1 & 0 & -2 \\ -3 & 2 & -1 & 3\end{bmatrix}$ given that $\begin{vmatrix}6 & -4 & 2 & -6 \\ 3 & -3 & 3 & -2 \\ 3 & -6 & 9 & 0 \\ 2 & 3 & -1 & 4\end{vmatrix} = -42$.
2 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

2
Find $\det A$ by cofactor expansion based on row 2 and column 3, where $A = \begin{bmatrix}-2 & 0 & 1 & -2 \\ 0 & 0 & 2 & 0 \\ -1 & 6 & 0 & -3 \\ -2 & 1 & 0 & -2\end{bmatrix}$.
2 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

Question 3: Vector spaces

10 PTS
Let $\mathbf v_1 = \begin{bmatrix}1 \\ -3 \\ \tfrac12\end{bmatrix}$, $\mathbf v_2 = \begin{bmatrix}1 \\ 1 \\ -1\end{bmatrix}$, $\mathbf v_3 = \begin{bmatrix}-1 \\ 2 \\ -2\end{bmatrix}$ and $A = \begin{bmatrix}\mathbf v_1 & \mathbf v_2 & \mathbf v_3\end{bmatrix}$.
1
Are these vectors linearly independent?
2 pts
2
Find the null space and the nullity of $A$.
2 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

3
Find the column space and rank of $A$.
2 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

4
Find the row space of $A$.
2 pts
5
Find the left null space of $A$ (the solutions of $A^T\mathbf x = \mathbf 0$).
2 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

Question 4: Eigenvalues and eigenvectors

6 PTS
$$A = \begin{bmatrix}4 & 1 & -1 \\ 2 & 5 & -2 \\ 1 & 1 & 2\end{bmatrix}$$
1
Find the eigenvalues of $A$.
2 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

2
Find the eigenvector for the largest eigenvalue.
2 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

3
Can you find $A^2$ using the eigen-decomposition $A = SDS^{-1}$?
2 pts

Question 5: Orthogonality and least squares

4 PTS
$$A = \begin{bmatrix}1 & -1 & 2 \\ -1 & 1 & 0 \\ 1 & 2 & -1\end{bmatrix}$$
1
Orthogonalize the columns of $A$ with the Gram-Schmidt process.
2 pts

Fractions, decimals, sqrt(…) and lists separated by commas all work.

2
Using that result, find the QR decomposition of $A$.
2 pts

Type sqrt(3) or √3; decimals also work.