CS223 // Sample Final Exam // Summer 223

Sample Final (Term 223)

A full sample final from the summer term: systems, rank, unitary and inverse matrices, four determinant techniques, column space membership, eigen-decomposition and projections.

Question 6(c), a least-squares problem worth 3 points, is left out: the source file is missing the matrix A and vector b it refers to.

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

Question 1: Linear equations

6 PTS
i
Solve the system.$$\begin{cases}x + y + z = 6 \\ x + 2y + 3z = 14 \\ x + 4y + 7z = 30\end{cases}$$
3 pts

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

ii
Solve the system.$$\begin{cases}x_1 - 2x_2 + x_3 - 4x_4 = 1 \\ x_1 + 3x_2 + 7x_3 + 2x_4 = 2 \\ x_1 - 12x_2 - 11x_3 - 16x_4 = 5\end{cases}$$
3 pts

Question 2: Matrix algebra

6 PTS
a
Find the rank and the nullity of $A = \begin{bmatrix}1 & -2 & -1 & 4 \\ 2 & -4 & 3 & 5 \\ -1 & 2 & 6 & -7\end{bmatrix}$.
1 pt

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

b
Show that $A = \tfrac15\begin{bmatrix}-1+2i & -4-2i \\ 2-4i & -2-i\end{bmatrix}$ is unitary ($i^2 = -1$).
1 pt
c
Are $A = \begin{bmatrix}1 & 0 & 1 \\ 1 & 1 & 2 \\ 0 & 1 & 1\end{bmatrix}$ and $B = \begin{bmatrix}0 & 1 & -1 \\ 1 & 0 & 1 \\ 1 & 2 & 1\end{bmatrix}$ inverses of each other?
2 pts
d
Find the inverse of $A = \begin{bmatrix}-8 & 17 & 2 & \tfrac13 & -1 \\ 4 & 0 & \tfrac25 & -9 & 4 \\ 0 & 0 & 0 & 0 & 0 \\ -1 & 13 & 4 & 2 & 2 \\ 2 & -1 & -3 & -5 & 7\end{bmatrix}$ if it exists.
2 pts

Question 3: Determinants

7 PTS
a
Find $\det A$ using elementary row operations, $A = \begin{bmatrix}2 & 3 & 4 \\ 5 & 6 & 7 \\ 8 & 9 & 1\end{bmatrix}$.
1 pt

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

b
Find $\det B$ by making the boxed entry $b_{23} = 1$ a pivot for its column, $B = \begin{bmatrix}5 & 4 & 2 & 1 \\ 2 & 3 & \boxed{1} & -2 \\ -5 & -7 & -3 & 9 \\ 1 & -2 & -1 & 4\end{bmatrix}$.
2 pts

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

c
Find $\det C$, $C = \begin{bmatrix}3 & 2 & 4 & 5 & 7 \\ 8 & 9 & 7 & 5 & 6 \\ 2 & 3 & 1 & 0 & 1 \\ 5 & 4 & 3 & 2 & 1 \\ 1 & 2 & 3 & 4 & 5\end{bmatrix}$, using $\det D = -54$ for $D = \begin{bmatrix}1 & 2 & 3 & 4 & 5 \\ 5 & 4 & 3 & 2 & 1 \\ 3 & 2 & 4 & 5 & 7 \\ 8 & 9 & 7 & 5 & 6 \\ 2 & 3 & 1 & 0 & 1\end{bmatrix}$.
2 pts

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

d
Find $\det U$, $U = \begin{bmatrix}2 & 3 & 4 & 7 & 8 \\ -1 & 5 & 3 & 2 & 1 \\ 0 & 0 & 2 & 1 & 5 \\ 0 & 0 & 3 & -1 & 4 \\ 0 & 0 & 5 & 2 & 6\end{bmatrix}$.
2 pts

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

Question 4: Vector spaces

7 PTS
a-i
Is $\mathbf v = \begin{bmatrix}-2 \\ 10\end{bmatrix}$ in $\operatorname{Col}A$ for $A = \begin{bmatrix}1 & 3 \\ 4 & -6\end{bmatrix}$? If so, give the combination of columns.
0.5 pts

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

a-ii
Is $\mathbf v = \begin{bmatrix}-1 \\ 0 \\ 2\end{bmatrix}$ in $\operatorname{Col}A$ for $A = \begin{bmatrix}1 & 1 & 2 \\ 1 & 0 & 1 \\ 2 & 1 & 3\end{bmatrix}$?
0.5 pts
a-iii
Is $\mathbf v = \begin{bmatrix}5 \\ 1 \\ -1\end{bmatrix}$ in $\operatorname{Col}A$ for $A = \begin{bmatrix}1 & -1 & 1 \\ 9 & 3 & 1 \\ 1 & 1 & 1\end{bmatrix}$? If so, give the combination.
1 pt

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

b
For $A = \begin{bmatrix}1 & -1 & 3 \\ 5 & -4 & -4 \\ 7 & -6 & 2\end{bmatrix}$ find a basis of $\operatorname{Nul}A$, the nullity, a basis of $\operatorname{Col}A$ and the rank.
3 pts

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

c
$\operatorname{Col}A$ has basis $\left\{(2, -3, 1, 8, 7),\ (-3, 2, 1, -9, 6)\right\}$ and $\operatorname{Nul}A$ has a basis of exactly 2 vectors. How many columns does $A$ have?
1 pt

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

d
$A$ is $4\times5$ with nullity 3. What is the rank of $A$?
1 pt

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

Question 5: Eigenvalues and eigenvectors

8 PTS
a
Find the eigenvalues of $A = \begin{bmatrix}0 & -1 & -1 \\ -1 & 0 & -1 \\ -1 & -1 & 0\end{bmatrix}$.
2 pts

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

b
Find the eigenvalues of $A = \begin{bmatrix}1 & 0 & 0 \\ -1 & 2 & 0 \\ 0 & 1 & 3\end{bmatrix}$.
2 pts

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

c-i
Which of $\mathbf v_1 = \begin{bmatrix}1 \\ 3 \\ -2\end{bmatrix}$, $\mathbf v_2 = \begin{bmatrix}-2 \\ 2 \\ 1\end{bmatrix}$, $\mathbf v_3 = \begin{bmatrix}0 \\ 1 \\ -5\end{bmatrix}$ are eigenvectors of $A = \begin{bmatrix}1 & 3 & 6 \\ 2 & 1 & 4 \\ 1 & 0 & 3\end{bmatrix}$?
1 pt
c-ii
Is $A = \begin{bmatrix}1 & 4 \\ 2 & 3\end{bmatrix}$ diagonalizable? If yes, find $P$ and $D$ with $A = PDP^{-1}$.
1 pt
d
$A = \begin{bmatrix}-4 & 5 \\ 5 & -4\end{bmatrix}$ has eigenvectors $\mathbf u_1 = (1, 1)$ with $\lambda_1 = 1$ and $\mathbf u_2 = (1, -1)$ with $\lambda_2 = -9$. Find $A^{10}$.
2 pts

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

Question 6: Orthogonality

3 PTS
Let $\mathbf u = \begin{bmatrix}1 \\ 1 \\ 1\end{bmatrix}$, $\mathbf v = \begin{bmatrix}2 \\ 1 \\ 1\end{bmatrix}$, $\mathbf w = \begin{bmatrix}-1 \\ 2 \\ -2\end{bmatrix}$.
a
Find $\operatorname{proj}_{\mathbf u}\mathbf v$.
1.5 pts

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

b
Let $\mathbf z = \mathbf v - \operatorname{proj}_{\mathbf u}\mathbf v$ (perpendicular to $\mathbf u$). Find the projection of $\mathbf w$ onto $\operatorname{Span}\{\mathbf u, \mathbf z\}$.
1.5 pts

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