---
title: Final exam
heading: "Final exam: linear algebra"
eyebrow: A7 · Final exam
type: problems
---

::: hook
Twelve problems from across the whole course: systems and factorizations, subspaces, orthogonality and least squares, determinants, eigenvalues and the matrix exponential, the SVD and PCA, and computation. Give yourself three hours, work without the lessons open, and write out your reasoning before checking each answer. "Another set" deals a different exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 2 | 3; b = 1 | 2; c = 4 | 1; d = 5 | 6; b1 = 3 | 8; b2 = 2 | 7

## Solve $\begin{bmatrix}\given{a} & \given{b}\\\given{c} & \given{d}\end{bmatrix}\mathbf{x} = (\given{b1}, \given{b2})$.

::: part
answer: (b1*d - b*b2)/(a*d - b*c)
tolerance: 0.5%

### What is $x_1$?

::: misses
- [any] Cramer's rule or the inverse.
:::
:::

::: part
answer: (a*b2 - c*b1)/(a*d - b*c)
tolerance: 0.5%

### What is $x_2$?

::: misses
- [any] Replace column 2 with $\mathbf{b}$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 4; b = 1 | 3; c = 6 | -4; d = 8 | 5

## Factor $A = \begin{bmatrix}\given{a} & \given{b}\\\given{c} & \given{d}\end{bmatrix} = LU$.

::: part
answer: c/a

### What is $\ell_{21}$?

::: misses
- [any] Below the pivot over the pivot.
:::
:::

::: part
answer: d - c/a*b
tolerance: 0.5%

### What is $u_{22}$?

::: misses
- [any] $d - \ell_{21}b$.
:::
:::
:::

::: check
kind: parts
given: Vs = 10 | 15; R1 = 1 | 2; R2 = 2 | 4; R3 = 1 | 2; R4 = 1 | 3

## $V_s$ = {Vs} V feeds node 1 through {R1} kΩ; node 1 has {R2} kΩ to ground and {R3} kΩ to node 2; node 2 has {R4} kΩ to ground.

::: part
answer: (Vs/R1)/(1/R1 + 1/R2 + 1/(R3 + R4))
unit: V
tolerance: 0.5%

### What is $v_1$?

::: misses
- [any] Two KCL equations, or $R_3 + R_4$ in parallel with $R_2$.
:::
:::

::: part
answer: (Vs/R1)/(1/R1 + 1/R2 + 1/(R3 + R4))*R4/(R3 + R4)
unit: V
tolerance: 0.5%

### What is $v_2$?

::: misses
- [any] $R_3$ and $R_4$ divide $v_1$.
:::
:::
:::

::: check
kind: parts
given: m = 5 | 6; n = 8 | 9; r = 3 | 4

## An {m} × {n} matrix has rank {r}.

::: part
answer: n - r

### What is the dimension of its null space?

::: misses
- [any] $n - r$.
:::
:::

::: part
answer: m - r

### What is the dimension of its left null space?

::: misses
- [any] $m - r$.
:::
:::
:::

::: check
kind: parts
given: va = 200 | -100; vb = -50 | 150

## A balanced three-phase system has $v_a$ = {va} V and $v_b$ = {vb} V.

::: part
answer: -va - vb
unit: V

### What is $v_c$?

::: misses
- [any] They sum to zero.
:::
:::

::: part
answer: (va + 2*vb)/sqrt(3)
unit: V
tolerance: 0.5%

### What is $v_\beta$?

::: misses
- [any] $\frac{v_b - v_c}{\sqrt 3}$.
:::
:::
:::

::: check
kind: parts
given: a1 = 1 | 2; a2 = 2 | 1; b1 = 3 | 5; b2 = 4 | -1

## Project $\mathbf{b} = (\given{b1}, \given{b2})$ onto the line through $\mathbf{a} = (\given{a1}, \given{a2})$.

::: part
answer: (a1*b1 + a2*b2)/(a1^2 + a2^2)
tolerance: 0.5%

### The projection is $t\mathbf{a}$. What is $t$?

::: misses
- [any] $\frac{\mathbf{a}\cdot\mathbf{b}}{\mathbf{a}\cdot\mathbf{a}}$.
:::
:::

::: part
answer: abs(a1*b2 - a2*b1)/sqrt(a1^2 + a2^2)
tolerance: 0.5%

### How long is the error vector?

::: misses
- [any] The part of $\mathbf{b}$ perpendicular to $\mathbf{a}$.
:::
:::
:::

::: check
kind: parts
given: y0 = 1 | 3; y1 = 2 | 4; y2 = 5 | 6

## Fit $y = c + mx$ to $(0, \given{y0})$, $(1, \given{y1})$, $(2, \given{y2})$.

::: part
answer: ((y1 + 2*y2) - (y0 + y1 + y2))/2
tolerance: 0.5%

### What is $m$?

::: misses
- [any] Normal equations $\begin{bmatrix}3 & 3\\3 & 5\end{bmatrix}\begin{bmatrix}c\\m\end{bmatrix} = \begin{bmatrix}\sum y\\\sum xy\end{bmatrix}$.
:::
:::

::: part
answer: (5*(y0 + y1 + y2) - 3*(y1 + 2*y2))/6
tolerance: 0.5%

### What is $c$?

::: misses
- [any] Solve the same system.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3; b = 2 | 4; c = 1 | 3

## Let $M = \begin{bmatrix}\given{a} & 1 & 0\\0 & \given{b} & 1\\1 & 0 & \given{c}\end{bmatrix}$.

::: part
answer: a*b*c + 1

### What is $\det M$?

::: misses
- [a*b*c] Include the cofactor from the 1 in row 1.
- [any] Cofactors along row 1.
:::
:::

::: part
answer: 8*(a*b*c + 1)

### What is $\det(2M)$?

::: misses
- [2*(a*b*c + 1)] All three rows scale: $2^3$.
- [any] $k^n\det M$.
:::
:::
:::

::: check
kind: parts
given: g1 = 1 | 2; g2 = 2 | 0.5; g3 = 1 | 3; I = 2 | 3

## A two-node network: $g_1$ = {g1} mS node 1 to ground, $g_2$ = {g2} mS between, $g_3$ = {g3} mS node 2 to ground; {I} mA into node 1.

::: part
answer: g2*I/(g1*g2 + g1*g3 + g2*g3)
unit: V
tolerance: 0.5%

### What is $v_2$?

::: misses
- [any] Cramer's rule.
:::
:::

::: part
answer: g1*g2 + g1*g3 + g2*g3
unit: mS²
tolerance: 0.5%

### What is $\det G$, in mS²?

::: misses
- [any] $(g_1 + g_2)(g_2 + g_3) - g_2^2$.
:::
:::
:::

::: check
kind: parts
given: a = 0.1 | 0.05; b = 0.4 | 0.2

## A link goes bad with probability {a} per step and recovers with probability {b}.

::: part
answer: b/(a + b)
tolerance: 0.5%

### What fraction of the time is it good, in the long run?

::: misses
- [any] The eigenvector for $\lambda = 1$.
:::
:::

::: part
answer: ceil(ln(0.01)/ln(1 - a - b))

### How many steps until the gap to that share is below 1% of where it started?

::: misses
- [any] The second eigenvalue is $1 - a - b$.
:::
:::
:::

::: check
kind: parts
given: k = 4 | 1; c = 0.1 | 0.3

## Two identical oscillators of stiffness {k} are coupled with $c$ = {c}.

::: part
answer: sqrt(k + 2*c)
unit: rad/s
tolerance: 0.5%

### What is the opposed mode's frequency in rad/s?

::: misses
- [any] Eigenvalue $k + 2c$.
:::
:::

::: part
answer: 2*pi/(sqrt(k + 2*c) - sqrt(k))
unit: s
tolerance: 0.5%

### What is the beat period?

::: misses
- [any] $2\pi$ over the frequency difference.
:::
:::
:::

::: check
kind: parts
given: a = 3 | 5; c = 1 | 2; d = 2 | 4

## Let $S = \begin{bmatrix}\given{a} & \given{c}\\\given{c} & \given{d}\end{bmatrix}$.

::: part
answer: (a + d)/2 + sqrt(((a - d)/2)^2 + c^2)
tolerance: 0.5%

### What is its larger eigenvalue?

::: misses
- [any] $\frac{a + d}{2} + \sqrt{(\frac{a - d}{2})^2 + c^2}$.
:::
:::

::: part
answer: sqrt(d - c^2/a)
tolerance: 0.5%

### What is $L_{22}$ in its Cholesky factor?

::: misses
- [any] The square root of the second pivot.
:::
:::
:::

::: check
kind: parts
given: s1 = 10 | 30; s2 = 3 | 2; s3 = 0.1 | 0.3

## A square matrix has singular values {s1}, {s2}, {s3}.

::: part
answer: s1/s3
tolerance: 0.5%

### What is its condition number?

::: misses
- [any] $\sigma_{\max}/\sigma_{\min}$.
:::
:::

::: part
answer: s3/sqrt(s1^2 + s2^2 + s3^2)
tolerance: 0.5%

### What is the relative Frobenius error of its best rank-2 approximation?

::: misses
- [any] Only $\sigma_3$ is dropped.
:::
:::
:::

::: check
kind: parts
given: V = 170 | 120; p = 25 | 50; n = 30 | 50; m = 2 | 4

## Bases and computation.

::: part
answer: V*sin(p*pi/180)
unit: V
tolerance: 0.5%

### A balanced set of peak {V} V leads the reference by {p}°. What is $v_q$?

::: misses
- [any] $V\sin\varphi$.
:::
:::

::: part
answer: n + m

### A circuit has {n} non-ground nodes and {m} voltage sources. How many MNA unknowns?

::: misses
- [any] Voltages plus source currents.
:::
:::
:::

::: check
kind: parts
given: L = 1 | 4.7; C = 0.47 | 2.2

## A series RLC circuit with $L$ = {L} mH and $C$ = {C} µF is made critically damped.

::: part
answer: 2*sqrt(L*1e-3/(C*1e-6))
unit: Ω
tolerance: 0.5%

### What resistance does that take?

::: misses
- [any] $2\sqrt{L/C}$.
:::
:::

::: part
answer: sqrt(L*1e-3*C*1e-6)*1e6
unit: µs
tolerance: 0.5%

### At what time does $te^{-t/\tau}$, the shape of its response from rest, peak?

::: misses
- [any] At $t = \tau = \sqrt{LC}$.
:::
:::
:::

::: check
kind: parts
given: v = 3 | 6; c = 1 | 2

## Two readings have variances {v} each and covariance {c}.

::: part
answer: v + c
tolerance: 0.5%

### What is the variance along the first principal component?

::: misses
- [any] $v + c$, along $(1, 1)$.
:::
:::

::: part
answer: (v + c)/(2*v)
tolerance: 0.5%

### What fraction of the variance does it explain?

::: misses
- [any] Divide by the trace, $2v$.
:::
:::
:::
:::
