---
title: Midterm exam
heading: "Midterm exam: linear systems and subspaces"
eyebrow: A7 · Midterm exam
type: problems
---

::: hook
Twelve problems from the first half of the course: vectors and matrices, solving systems, factorization and inverses, the four subspaces, and mesh analysis. Give yourself two 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 | 6; d = 2 | 5

## Let $\mathbf{v} = (\given{a}, \given{b})$ and $\mathbf{w} = (\given{c}, \given{d})$.

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

### What is $\mathbf{v} \cdot \mathbf{w}$?

::: misses
- [any] $v_1w_1 + v_2w_2$.
:::
:::

::: part
answer: (a*c + b*d)/(c^2 + d^2)
tolerance: 0.5%

### $\mathbf{v}$ is split into a part along $\mathbf{w}$ plus a part perpendicular to it. The part along $\mathbf{w}$ is $t\mathbf{w}$. What is $t$?

::: misses
- [(a*c + b*d)/(a^2 + b^2)] Divide by $\mathbf{w}\cdot\mathbf{w}$, the direction you project onto.
- [any] $t = \frac{\mathbf{v}\cdot\mathbf{w}}{\mathbf{w}\cdot\mathbf{w}}$.
:::
:::
:::

::: check
kind: parts
given: k1 = 0.5 | 0.2; k2 = 0.3 | 0.6; V1 = 8 | 10; V2 = 5 | 15

## A linear circuit gives {k1} V out per volt of source 1 and {k2} V per volt of source 2.

::: part
answer: k1*V1 + k2*V2
unit: V

### What is the output for $V_1$ = {V1} V and $V_2$ = {V2} V?

::: misses
- [any] Superposition.
:::
:::

::: part
answer: k1*V1 + k2*V2*2
unit: V

### Source 2 is doubled. What is the output now?

::: misses
- [2*(k1*V1 + k2*V2)] Only source 2 doubled.
- [any] Double only source 2's contribution.
:::
:::
:::

::: check
kind: parts
given: t = 30 | 120; s = 2 | 3

## $A$ rotates by {t}° and $B = \begin{bmatrix}\given{s} & 0\\0 & 1\end{bmatrix}$.

::: part
answer: s*cos(t*pi/180)
tolerance: 0.5%

### What is the top-left entry of $AB$?

::: misses
- [any] Row 1 of the rotation, $(\cos\theta, -\sin\theta)$, times column 1 of $B$.
:::
:::

::: part
answer: -s*sin(t*pi/180)
tolerance: 0.5%

### What is the top-right entry of $BA$?

::: misses
- [-sin(t*pi/180)] $BA$ scales the rows of $A$: row 1 is multiplied by {s}.
- [any] Row 1 of $B$ times column 2 of $A$.
:::
:::
:::

::: check
kind: parts
given: Z = 100 | 200; Y = 0.005 | 0.01

## A series impedance {Z} Ω is followed by a shunt admittance {Y} S.

::: part
answer: 1 + Z*Y
tolerance: 0.5%

### What is $\mathcal{A}$ of the chain?

::: misses
- [any] Multiply the two transmission matrices.
:::
:::

::: part
answer: 1/(1 + Z*Y)
tolerance: 0.5%

### What is the open-circuit voltage gain?

::: misses
- [any] $1/\mathcal{A}$.
:::
:::
:::

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

## Factor $\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: a*(d - c/a*b)

### What is the determinant, the product of the pivots?

::: misses
- [any] $u_{11}u_{22}$.
:::
:::
:::

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

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

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

### What is the top-left entry of $A^{-1}$?

::: misses
- [a/(a*d - b*c)] Swap the diagonal.
- [any] $\frac{d}{ad - bc}$.
:::
:::

::: part
answer: (d*1 - b*2)/(a*d - b*c)
tolerance: 0.5%

### Solve $A\mathbf{x} = (1, 2)$. What is $x_1$?

::: misses
- [any] $x_1 = \frac{d \cdot 1 - b \cdot 2}{ad - bc}$.
:::
:::
:::

::: check
kind: parts
given: Vs = 10 | 12; R1 = 1 | 2; R2 = 2 | 4; R3 = 1 | 3; R4 = 2 | 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] Solve the two KCL equations (or note $R_3 + R_4$ is 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 = 4 | 5; n = 6 | 8; r = 3 | 4

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

::: part
answer: n - r

### How many free variables does $A\mathbf{x} = \mathbf{b}$ have?

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

::: part
answer: m - r

### How many independent conditions must $\mathbf{b}$ satisfy for a solution to exist?

::: misses
- [any] One per dimension of the left null space: $m - r$.
:::
:::
:::

::: check
kind: parts
given: c1 = 7 | 10; c2 = 3 | -2

## After elimination: $x + 2y + z = \given{c1}$, $z = \given{c2}$, $y$ free.

::: part
answer: c1 - c2

### With $y = 0$, what is $x$?

::: misses
- [any] Substitute $z$.
:::
:::

::: part
answer: c1 - c2 - 2*5

### Which $x$ goes with $y = 5$?

::: misses
- [any] Add 5 times the null vector $(-2, 1, 0)$.
:::
:::
:::

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

## The vectors $(1, 0, \given{a})$, $(0, 1, \given{b})$, $(1, 1, k)$.

::: part
answer: a + b

### For which $k$ are they dependent?

::: misses
- [any] Determinant $k - a - b$.
:::
:::

::: part
answer: 1

### For $k = \given{a} + \given{b} + 1$, what is their determinant?

::: misses
- [any] $k - a - b$.
:::
:::
:::

::: check
kind: parts
given: va = 150 | -60; vb = -40 | 160

## 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] The three add 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: n = 6 | 10; m = 9 | 15

## A connected circuit has {n} nodes and {m} branches.

::: part
answer: m - n + 1

### How many independent loops?

::: misses
- [any] $m - n + 1$.
:::
:::

::: part
answer: n - 1

### After grounding one node, how many unknown node voltages are left?

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

::: check
kind: parts
given: n = 500 | 2000; F = 2 | 20

## A computer does {F} billion multiply-adds per second.

::: part
answer: n^3/3/(F*1e9)*1000
unit: ms
tolerance: 1%

### How long does factoring an {n} × {n} matrix take?

::: misses
- [any] $n^3/3$ operations.
:::
:::

::: part
answer: n/3
tolerance: 1%

### How many times longer is that than one solve with the factors?

::: misses
- [any] $\frac{n^3/3}{n^2}$.
:::
:::
:::

::: check
kind: parts
given: l = -3 | -2 | 2 | 3 | 4 | 5 | 7

## $E = \begin{bmatrix}1 & 0 & 0\\-\given{l} & 1 & 0\\0 & 0 & 1\end{bmatrix}$ subtracts {l} times row 1 from row 2.

::: part
answer: l

### What is entry $(2, 1)$ of $E^{-1}$?

::: misses
- [-l] Undo by adding back.
- [any] $E^{-1}$ adds the multiple back.
:::
:::

::: part
answer: 1

### What is $\det E$?

::: misses
- [any] Triangular: product of the diagonal.
:::
:::
:::

::: check
kind: parts
given: V = 5 | 10; R1 = 1 | 2; R2 = 2 | 3; R3 = 1 | 5

## A {V} V source drives mesh 1 through $R_1$ = {R1} kΩ; $R_2$ = {R2} kΩ is shared with mesh 2, which also has $R_3$ = {R3} kΩ.

::: part
answer: V*R2/((R1 + R2)*(R2 + R3) - R2^2)
unit: mA
tolerance: 0.5%

### What is mesh 2's current?

::: misses
- [V/(R1 + R2 + R3)] $R_2$ offers a parallel path.
- [any] Solve the mesh equations.
:::
:::
:::

::: check
kind: parts
given: b1 = 2 | 4; b2 = 7 | 9

## Solve $\begin{bmatrix}1 & 3 & 1\\2 & 6 & 3\end{bmatrix}\mathbf{x} = (\given{b1}, \given{b2})$ with the free variable $x_2 = 0$.

::: part
answer: b2 - 2*b1
tolerance: 0.5%

### What is $x_3$?

::: misses
- [any] Row 2 − 2 × row 1 leaves $x_3 = b_2 - 2b_1$.
:::
:::

::: part
answer: 3*b1 - b2
tolerance: 0.5%

### What is $x_1$?

::: misses
- [any] $x_1 = b_1 - x_3$.
:::
:::
:::
:::
