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 and , the row picture of a 2 × 2 system.
- With they cross once: one solution. Set to make them parallel. Now move .
- At what value of do the parallel lines become the same line?
Predict
and . For which are there infinitely many solutions?
Only . The second equation's left side is twice the first's, so the system is consistent only if is twice 4. Then the two equations say the same thing, and every point on the line is a solution. For any other there's no solution at all: the lines are parallel and apart.
Name it
Echelon form and rank
Elimination turns 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, .
The rank 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 matrix of rank :
- the column space has dimension ;
- the null space has dimension , one direction per free variable.
The complete solution
Every solution of has the form
where is any one particular solution (set the free variables to 0 and solve) and is anything in the null space.
The four cases
| Rank | Shape | Solutions of |
|---|---|---|
| square, invertible | exactly one, for every | |
| tall, full column rank | zero or one | |
| wide, full row rank | infinitely many, for every | |
| , | neither | zero or infinitely many |
"Zero" happens when elimination produces a row (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 .
Show the solution
- Eliminate. Row 2 minus twice row 1 gives .
- Clear above the pivot. Row 1 minus row 2 gives , so
- Rank. The pivots are in columns 1 and 3, so , and column 2 is free.
- Null space. With : , . The null space is the multiples of , dimension .
Answer the rank is 2, and the null space is the line of multiples of .
Worked example
Find the complete solution of , .
Show the solution
- Eliminate the augmented rows. The same steps give and .
- Particular solution. Setting the free gives .
- Add the null space. a line of solutions in 3D.
Answer for any , a line of solutions.
Worked example
For which does , have infinitely many solutions?
Show the solution
- Eliminate. Subtracting 2 × row 1 from row 2 leaves
- If . That forces and then : one solution, rank 2.
- If . The second row becomes : the rank drops to 1, is free, and every point on is a solution.
- Why it's consistent. The right side 4 happens to be twice 2. With a right side of 5 instead, would give and no solution.
Answer only gives infinitely many solutions: every point on .
Check
A 3 × 5 matrix has rank 3. What is the dimension of its null space?
Check
After elimination, a system reads and , with free. Setting , what is in the particular solution?
Check
For which is the system , consistent?
Check
A 3 × 5 matrix has rank 3. What can you say about ?
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 ?
Check
Consider , .
(a)
For which does it have solutions?
(b)
With that , the solution with has = ?
Check
Solve , , with free.
Step 1
What is ?
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
What is for that solution?
Explain why
Why is every solution of a particular solution plus something from the null space?
If and both solve , then , so their difference is in the null space. Turned around, adding any null-space vector to leaves unchanged, so it's still a solution. The solutions are exactly one particular solution shifted by every null-space vector: a single point if the null space is just zero, otherwise a line, plane or larger flat set.
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.