---
title: Problem set 4
heading: "Problem set 4: column space, null space and rank"
eyebrow: A7 · Problem set 4
type: problems
---

::: hook
These problems use lessons 15 and 16: vector spaces and subspaces, the column space and null space, rank, and the complete solution of $A\mathbf{x} = \mathbf{b}$. For each system, decide first whether it has no solution, one, or infinitely many, then find them.
:::

::: pool
pick: 12

::: check
kind: parts
given: p = 2 | 3; c1 = 10 | 13; s = 1 | 2; t = 1 | 3

## Solve $x + \given{p}y + z = \given{c1}$, a single equation in three unknowns.

::: part
answer: c1 - p*s - t
tolerance: 0.5%

### With the free variables $y$ = {s} and $z$ = {t}, what is $x$?

::: misses
- [any] $x = c_1 - py - z$.
:::
:::

::: part
answer: -p
tolerance: 0.5%

### The special solution with $y = 1$, $z = 0$ has $x$ = ?

::: misses
- [p] Special solutions solve $A\mathbf{x} = \mathbf{0}$: $x + p = 0$.
- [any] Set the right side to zero.
:::
:::
:::

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

## Consider $\begin{bmatrix}1 & \given{a}\\\given{b} & c\end{bmatrix}$.

::: part
answer: a*b
tolerance: 0.5%

### For which $c$ does it have rank 1?

::: misses
- [a + b] Row 2 must be $b$ times row 1.
- [any] The determinant $c - ab$ must vanish.
:::
:::

::: part
answer: -a
tolerance: 0.5%

### With that $c$, the null space vector with $x_2 = 1$ has $x_1$ = ?

::: misses
- [any] $x_1 + ax_2 = 0$.
:::
:::
:::

::: check
kind: parts
given: c = 4 | 7 | 9; k = 7 | 9 | 10

## Write $(1, 2, \given{c})$ as $\alpha(1, 2, 3) + \beta(2, 4, \given{k})$.

::: part
answer: (c - 3)/(k - 6)
tolerance: 0.5%

### What is $\beta$?

::: misses
- [any] The first two rows only say $\alpha + 2\beta = 1$; the third gives $3\alpha + k\beta = c$.
:::
:::

::: part
answer: 1 - 2*(c - 3)/(k - 6)
tolerance: 0.5%

### What is $\alpha$?

::: misses
- [any] $\alpha = 1 - 2\beta$.
:::
:::
:::

::: check
kind: parts
given: b1 = 2 | 3; b2 = 5 | 7 | 11

## Find the particular solution of $\begin{bmatrix}1 & 2 & 1\\2 & 4 & 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] Subtract 2 × row 1 from row 2: $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$.
:::
:::
:::

::: check
kind: parts
given: b1 = 3 | 5 | 7

## $\begin{bmatrix}1 & 2\\2 & 4\\3 & 6\end{bmatrix}\mathbf{x} = (\given{b1}, b_2, b_3)$.

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

### What must $b_3$ be for a solution to exist?

::: misses
- [b1/3] The column space is the line through $(1, 2, 3)$.
- [any] $\mathbf{b}$ must be a multiple of $(1, 2, 3)$.
:::
:::

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

### When it exists, the solution with $x_2 = 1$ has $x_1$ = ?

::: misses
- [any] $x_1 + 2x_2 = b_1$.
:::
:::
:::

::: check
kind: parts
given: k = 6 | 7 | 9

## Take $A = \begin{bmatrix}1 & 1 & 1\\1 & 2 & 3\\1 & 3 & \given{k}\end{bmatrix}$.

::: part
answer: k - 5
tolerance: 0.5%

### What is $\det A$?

::: misses
- [k - 1] After the first step, row 3 is $(0, 2, k - 1)$; subtract 2 × row 2 too.
- [any] Multiply the pivots 1, 1 and $k - 5$.
:::
:::

::: part
answer: 1/(k - 5)
tolerance: 0.5%

### What is $x_3$ in $A\mathbf{x} = (0, 0, 1)$?

::: misses
- [any] The third pivot is $k - 5$, and the right side after elimination is 1.
:::
:::
:::

::: check
kind: parts
given: al = 2 | 4; be = 1 | 3

## $A\mathbf{x} = \mathbf{b}_1$ has the solution $(1, 2)$, and $A\mathbf{x} = \mathbf{b}_2$ has $(3, -1)$. Solve $A\mathbf{x} = \given{al}\mathbf{b}_1 + \given{be}\mathbf{b}_2$.

::: part
answer: al + 3*be
tolerance: 0.5%

### What is $x_1$?

::: misses
- [any] By linearity, $\mathbf{x} = \alpha(1, 2) + \beta(3, -1)$.
:::
:::

::: part
answer: 2*al - be
tolerance: 0.5%

### What is $x_2$?

::: misses
- [any] $2\alpha - \beta$.
:::
:::
:::

::: check
kind: parts
given: k = 10 | 12 | 15

## Take $A = \begin{bmatrix}1 & 2 & 3\\4 & 5 & 6\\7 & 8 & \given{k}\end{bmatrix}$.

::: part
answer: 27 - 3*k
tolerance: 0.5%

### What is $\det A$?

::: misses
- [3*k - 27] Check the sign of the cofactor expansion.
- [any] Expand along the first row.
:::
:::

::: part
answer: 1/(k - 9)
tolerance: 0.5%

### What is $x_3$ in $A\mathbf{x} = (0, 0, 1)$?

::: misses
- [any] Cramer: $\frac{\det\begin{bmatrix}1 & 2\\4 & 5\end{bmatrix}}{\det A} = \frac{-3}{27 - 3k}$.
:::
:::
:::

::: check
kind: parts
given: p = 1 | 3; q = -4 | 1

## Signals of the form $x(t) = ae^{-t} + be^{-2t}$ form a two-dimensional space. Find the coordinates of the one with $x(0)$ = {p} and $x'(0)$ = {q}.

::: part
answer: 2*p + q
tolerance: 0.5%

### What is $a$?

::: misses
- [any] $a + b = p$ and $-a - 2b = q$.
:::
:::

::: part
answer: -(p + q)
tolerance: 0.5%

### What is $b$?

::: misses
- [p + q] Check the sign: adding the equations gives $-b = p + q$.
- [any] Add the two equations.
:::
:::
:::

::: check
kind: parts
given: e1 = 2 | 5; e2 = 3 | -1

## Branch 1 runs from node 1 to node 2 and branch 2 from node 2 to node 3; branch 3 closes the triangle from node 3 back to node 1. Branch voltages are $e_1$ = {e1} V and $e_2$ = {e2} V.

::: part
answer: -(e1 + e2)
unit: V
tolerance: 0.5%

### For the voltages to come from node potentials, what must $e_3$ be?

::: misses
- [e1 + e2] Around a closed loop the voltages sum to zero.
- [any] KVL: $e_1 + e_2 + e_3 = 0$.
:::
:::

::: part
answer: e1 + e2
unit: V
tolerance: 0.5%

### With node 1 grounded and each $e$ the potential at the branch's end minus at its start, what is node 3's potential?

::: misses
- [any] Walk from node 1: $v_3 = e_1 + e_2$.
:::
:::
:::

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

## $(1, 2, 3)$ and $(4, 5, 6)$ span a plane.

::: part
answer: 2*b - a
tolerance: 0.5%

### For $(\given{a}, \given{b}, c)$ to lie in it, what must $c$ be?

::: misses
- [any] The plane's normal is $(1, 2, 3) \times (4, 5, 6) = (-3, 6, -3)$, so the plane is $x - 2y + z = 0$.
:::
:::
:::

::: check
kind: parts
given: d = 2..6 int

## A 5 × 7 matrix has a null space of dimension {d}.

::: part
answer: 7 - d
tolerance: 0

### What is its rank?

::: misses
- [5 - d] The null space lives in $\mathbb{R}^7$: rank + nullity = 7.
- [any] Rank + nullity = number of columns.
:::
:::

::: part
answer: d - 2
tolerance: 0

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

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

::: check
kind: parts
given: a = 2 | 3 | 0.25

## Consider the vectors $(1, \given{a})$ and $(b, 1)$.

::: part
answer: 1/a
tolerance: 0.5%

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

::: misses
- [a] The determinant is $1 - ab$.
- [any] Set the determinant to zero.
:::
:::

::: part
answer: 1 - 2*a
tolerance: 0.5%

### With $b = 2$, what is the determinant of the matrix with these columns?

::: misses
- [any] $1 \cdot 1 - 2a$.
:::
:::
:::

::: check
kind: parts
given: c = 2 | 5 | 8

## Every solution of $\begin{bmatrix}1 & 1\\2 & 2\end{bmatrix}\mathbf{x} = (\given{c}, 2\cdot\given{c})$ has the form $(c - t, t)$.

::: part
answer: c/2
tolerance: 0.5%

### Which $t$ gives the shortest solution?

::: misses
- [any] Minimize $(c - t)^2 + t^2$.
:::
:::

::: part
answer: c/sqrt(2)
tolerance: 0.5%

### How long is it?

::: misses
- [c/2] That's each entry; the length is $\sqrt{2(c/2)^2}$.
- [any] $\left|\left(\frac c2, \frac c2\right)\right|$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3; w = 3 | 5

## $A = \mathbf{u}\mathbf{v}^T$ with $\mathbf{u} = (1, \given{a}, 2)$ and $\mathbf{v} = (1, 2, \given{w})$.

::: part
answer: a*(3 + w)
tolerance: 0.5%

### What is the second entry of $A(1, 1, 1)$?

::: misses
- [any] $A\mathbf{x} = (\mathbf{v}\cdot\mathbf{x})\mathbf{u}$.
:::
:::

::: part
answer: 2*(1 + w)
tolerance: 0.5%

### What is the third entry of $A(1, 0, 1)$?

::: misses
- [any] $\mathbf{v}\cdot(1, 0, 1) = 1 + w$, times $u_3 = 2$.
:::
:::
:::
:::
