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

A7 · Lesson 16 · Rank

None, one, or infinitely many

Five sensors measure three unknowns: more equations than unknowns, and with real measurement noise, probably no exact solution at all. Two equations describe four currents: fewer equations than unknowns, and infinitely many solutions. Whether a linear system has no solution, exactly one, or infinitely many is decided by a single number, the matrix's rank, together with where 𝐛 sits. This lesson gives you the whole picture.

  • The two lines are x+2y=4 and ax+4y=c, the row picture of a 2 × 2 system.
  • With a≠2 they cross once: one solution. Set a=2 to make them parallel. Now move c.
  • At what value of c do the parallel lines become the same line?

Predict

x+2y=4 and 2x+4y=c. For which c are there infinitely many solutions?

Name it

Echelon form and rank

Elimination turns A into an echelon form: each row's first nonzero entry (its pivot) is to the right of the row above's, with zero rows at the bottom. Going further, making each pivot 1 and clearing above it, gives the reduced row echelon form, R.

The rank r is the number of pivots. Columns with pivots are pivot columns; the rest are free columns, and their variables are free variables: you can set them to anything.

For an m×n matrix of rank r:

  • the column space has dimension r;
  • the null space has dimension n−r, one direction per free variable.

The complete solution

Every solution of A𝐱=𝐛 has the form

𝐱=𝐱p+𝐱n

where 𝐱p is any one particular solution (set the free variables to 0 and solve) and 𝐱n is anything in the null space.

The four cases

RankShapeSolutions of A𝐱=𝐛
r=m=nsquare, invertibleexactly one, for every 𝐛
r=n<mtall, full column rankzero or one
r=m<nwide, full row rankinfinitely many, for every 𝐛
r<m, r<nneitherzero or infinitely many

"Zero" happens when elimination produces a row 0= (something nonzero). Tall systems, like many noisy measurements of a few unknowns, usually have no exact solution; lesson 27's least squares finds the best one.

Worked example

Find the rank and null space of A=[121243].

Show the solution
  1. Eliminate. Row 2 minus twice row 1 gives (0,0,1).
  2. Clear above the pivot. Row 1 minus row 2 gives (1,2,0), so R=[120001]
  3. Rank. The pivots are in columns 1 and 3, so r=2, and column 2 is free.
  4. Null space. With y=1: z=0, x=−2. The null space is the multiples of (−2,1,0), dimension 3−2=1.

Answer the rank is 2, and the null space is the line of multiples of (−2,1,0).

Worked example

Find the complete solution of x+2y+z=4, 2x+4y+3z=10.

Show the solution
  1. Eliminate the augmented rows. The same steps give z=2 and x+2y=2.
  2. Particular solution. Setting the free y=0 gives 𝐱p=(2,0,2).
  3. Add the null space. 𝐱=(2,0,2)+y(−2,1,0) a line of solutions in 3D.

Answer 𝐱=(2,0,2)+y(−2,1,0) for any y, a line of solutions.

Worked example

For which c does x+y=2, 2x+cy=4 have infinitely many solutions?

Show the solution
  1. Eliminate. Subtracting 2 × row 1 from row 2 leaves (c−2)y=0
  2. If c≠2. That forces y=0 and then x=2: one solution, rank 2.
  3. If c=2. The second row becomes 0=0: the rank drops to 1, y is free, and every point on x+y=2 is a solution.
  4. Why it's consistent. The right side 4 happens to be twice 2. With a right side of 5 instead, c=2 would give 0=1 and no solution.

Answer only c=2 gives infinitely many solutions: every point on x+y=2.

Check

A 3 × 5 matrix has rank 3. What is the dimension of its null space?

Check

After elimination, a system reads x+2y+z=4 and z=2, with y free. Setting y=0, what is x in the particular solution?

Check

For which c is the system x+2y=4, 2x+22y=c consistent?

Check

A 3 × 5 matrix has rank 3. What can you say about A𝐱=𝐛?

Check

Five noisy sensor readings give five equations in three unknowns, and the 5 × 3 matrix has rank 3. How many exact solutions are there, usually?

Check

What is the rank of [13332]?

Check

Consider x+2y=4, 2x+4y=d.

(a)

For which d does it have solutions?

(b)

With that d, the solution with y=1 has x = ?

Check

Solve x+y+z=c, x−y=0, with z=t free.

Step 1

What is x?

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 is every solution of A𝐱=𝐛 a particular solution plus something from the null space?

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.