A7 · Lesson 15 · Vector spaces
The column space and the null space
Every sinusoid at 60 Hz can be written as : two numbers pin it down, and adding two such sinusoids just adds their 's and 's. So 60 Hz sinusoids behave exactly like arrows in a plane, which is why phasors work. Collections like this, where you can add and scale and stay inside, are vector spaces. Two of them come with every matrix: the outputs it can produce, and the inputs it sends to zero. Those two spaces answer every question about whether has a solution and how many.
- This matrix has columns and : the second column is a multiple of the first.
- Every output lands on the solid line, the column space. The dashed line is the null space: every input on it is sent to zero.
- Move and . The two lines turn, but each stays a line through the origin.
Predict
The solutions of form a plane through the origin. What about the solutions of ?
It's a plane, but not a subspace. and are both solutions, yet their sum has . A subspace must be closed under adding and scaling, and so must contain zero. Solutions of always form a subspace; solutions of with never do.
Name it
Vector spaces
A vector space is a set where you can add any two members and scale any member, and stay in the set (with the usual arithmetic rules). Examples:
- , lists of real numbers;
- sinusoids at one frequency, which act like ;
- polynomials of degree at most 3, which act like ;
- all signals on an interval, an infinite-dimensional space that A10 and C9 work in.
Subspaces
A subspace is a vector space inside a bigger one: a subset closed under addition and scaling. It always contains . In the subspaces are , lines through the origin, planes through the origin, and itself.
The column space
The column space is all combinations of 's columns, that is, every . So:
The null space
The null space is every with . It's a subspace: if and then . Find it by elimination: reduce , then solve with the free variables set to 1 one at a time.
If solves , so does for every in the null space. A nonzero null space means non-unique solutions. In a circuit, that's a sign something is underdetermined, such as a node not connected to ground, whose voltage could float to anything.
Worked example
Find the null space of .
Show the solution
- Eliminate. Subtract 2 × row 1 from row 2:
- Read the rows. Row 2 says ; row 1 says .
- Choose the free variable. The free variable is ; set to get .
- Check.
Answer is the line of multiples of .
Worked example
Write as a vector in the space of .
Show the solution
- Expand the shifted cosine.
- Read off the coordinates.
- Compare with the phasor. The sinusoid is the vector , the same as its phasor's real and imaginary parts (with the sine axis as the imaginary one).
Answer is the vector .
Worked example
Is the set of vectors with a subspace of ? What about ?
Show the solution
- The first set misses the origin. It's a plane, but gives a sum of 0. Every subspace contains the zero vector, so it isn't one.
- It isn't closed either. and are in it, but their sum isn't.
- The second set. It's a plane through the origin, and sums and multiples stay on it.
- As a null space. It's the null space of the 1 × 3 matrix , with dimension 2. KCL at a node with three branches has exactly this form.
Answer is not a subspace; is one, a plane of dimension 2.
Check
. A null-space vector has second component 1. What is its first component?
Check
The column space of is the line through . For which is in it, so that is solvable?
Check
Which of these is a subspace of ?
Check
Find so that is in the null space of .
Check
In the space of , what is for ?
Check
A circuit's nodal equations have a nonzero null space. What does that usually mean?
Check
Find the null space of .
(a)
The special solution with , has = ?
(b)
The special solution with , has = ?
Check
has rank 1. Its column space is the line through .
Step 1
For to have a solution, what must be?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
The null space is spanned by . With , what is in the complete solution?
Explain why
Why does the set of solutions of always form a subspace, while the solutions of with never do?
If and , then , so every combination is also a solution, and itself is one. With , adding two solutions gives , which isn't , and isn't a solution at all. The solutions of are the null space shifted by one particular solution: a parallel copy that misses the origin.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.