A715 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A7 · Lesson 15 · Vector spaces

The column space and the null space

Every sinusoid at 60 Hz can be written as Acos⁡ωt+Bsin⁡ωt: two numbers pin it down, and adding two such sinusoids just adds their A's and B'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 A𝐱=𝐛 has a solution and how many.

  • This matrix has columns (1,m) and k(1,m): the second column is a multiple of the first.
  • Every output A𝐱 lands on the solid line, the column space. The dashed line is the null space: every input on it is sent to zero.
  • Move k and m. The two lines turn, but each stays a line through the origin.

Predict

The solutions of x+y+z=0 form a plane through the origin. What about the solutions of x+y+z=1?

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:

  • ℝn, lists of n real numbers;
  • sinusoids Acos⁡ωt+Bsin⁡ωt at one frequency, which act like ℝ2;
  • polynomials of degree at most 3, which act like ℝ4;
  • all signals x(t) 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 ℝ3 the subspaces are {𝟎}, lines through the origin, planes through the origin, and ℝ3 itself.

The column space

The column space C(A) is all combinations of A's columns, that is, every A𝐱. So:

A𝐱=𝐛 is solvable⟺𝐛∈C(A)

The null space

The null space N(A) is every 𝐱 with A𝐱=𝟎. It's a subspace: if A𝐱=𝟎 and A𝐲=𝟎 then A(c𝐱+d𝐲)=𝟎. Find it by elimination: reduce A, then solve with the free variables set to 1 one at a time.

If 𝐱p solves A𝐱=𝐛, so does 𝐱p+𝐱n for every 𝐱n 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 A=[123247].

Show the solution
  1. Eliminate. Subtract 2 × row 1 from row 2: [123001]
  2. Read the rows. Row 2 says z=0; row 1 says x+2y=0.
  3. Choose the free variable. The free variable is y; set y=1 to get x=−2.
  4. Check. A(−2,1,0)=(−2+2,−4+4)=(0,0)

Answer N(A) is the line of multiples of (−2,1,0).

Worked example

Write 5cos⁡(ωt−30°) as a vector in the space of Acos⁡ωt+Bsin⁡ωt.

Show the solution
  1. Expand the shifted cosine. cos⁡(ωt−30°)=cos⁡30°cos⁡ωt+sin⁡30°sin⁡ωt
  2. Read off the coordinates. A=5cos⁡30°=4.33B=5sin⁡30°=2.5
  3. Compare with the phasor. The sinusoid is the vector (4.33,2.5), the same as its phasor's real and imaginary parts (with the sine axis as the imaginary one).

Answer 5cos⁡(ωt−30°) is the vector (4.33,2.5).

Worked example

Is the set of vectors (x,y,z) with x+y+z=1 a subspace of ℝ3? What about x+y+z=0?

Show the solution
  1. The first set misses the origin. It's a plane, but (0,0,0) gives a sum of 0. Every subspace contains the zero vector, so it isn't one.
  2. It isn't closed either. (1,0,0) and (0,1,0) are in it, but their sum (1,1,0) isn't.
  3. The second set. It's a plane through the origin, and sums and multiples stay on it.
  4. As a null space. It's the null space of the 1 × 3 matrix [111], with dimension 2. KCL at a node with three branches has exactly this form.

Answer x+y+z=1 is not a subspace; x+y+z=0 is one, a plane of dimension 2.

Check

A=[13223]. A null-space vector has second component 1. What is its first component?

Check

The column space of A is the line through (1,−2). For which y is (2,y) in it, so that A𝐱=(2,y) is solvable?

Check

Which of these is a subspace of ℝ3?

Check

Find z so that (3,2,z) is in the null space of [12−1].

Check

In the space of Acos⁡ωt+Bsin⁡ωt, what is B for 5cos⁡(ωt−30°)?

Check

A circuit's nodal equations G𝐯=𝐢 have a nonzero null space. What does that usually mean?

Check

Find the null space of [121].

(a)

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

(b)

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

Check

A=[12p2p] has rank 1. Its column space is the line through (1,p).

Step 1

For A𝐱=(3,q) to have a solution, what must q 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°.

Explain why

Why does the set of solutions of A𝐱=𝟎 always form a subspace, while the solutions of A𝐱=𝐛 with 𝐛≠𝟎 never do?

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.