Use symbolic linear algebraLesson 32 of 48 · 8 min

Rank explains a family of solutions

Relate matrix rank to redundant and inconsistent linear constraints.

Maths refresher: Redundant versus conflicting equations

Two equations can say the same thing or contradict one another. Counting written equations is not the same as counting independent constraints.

x+y=3,2x+2y=6x+y=3,\quad2x+2y=6
Worked example

The second equation repeats the first. Replacing 6 by 7 makes the pair inconsistent, because doubling the first equation must give 6.

Maths prerequisite map ↗

The rank of a matrix counts independent row or column directions. Redundant equations do not contribute new independent information. Comparing the coefficient matrix with its augmented matrix helps distinguish redundancy from inconsistency.

See the mathematics
-10.523.55-2-0.251.53.255xy
-10.523.55-2-0.251.53.255xy
x+y=3,2x+2y=7x+y=3,\quad2x+2y=7
  • 3−x3 - x
  • 3.5−x3.5 - x
Starter reference. The compatible equations describe the same line. Changing the second right side to 7 produces the parallel amber line, with no joint solution.

In the example, the second coefficient row is twice the first. When its right-hand side also doubles, the system has a family of solutions. Changing that right-hand side breaks compatibility without increasing the coefficient rank.

Inspect both linsolve outputs and the ranks. A free parameter is meaningful information about what the equations fail to determine; it should not be silently replaced by zero. Additional evidence or constraints are needed to select one member of a family.

Will two written equations in two unknowns necessarily determine one unique pair?

Write a prediction (optional)

Exact symbolic investigation

Select Run Python with the code unchanged.

Tools
About Python

Python and the course packages can load while you read. Each run starts with fresh user variables; imported modules stay loaded. Stop replaces the worker. Runtime details ↗

Ctrl+Enter or ⌘+Enter runs Python.

Compare with the worked example

Executed from the published Python during the site build. Your own run appears above. Build environment ↗

Coefficient rank
11
Compatible augmented rank
11
Solution family
{(3−y, y)}\left\{\left( 3 - y, \ y\right)\right\}
Conflicting augmented rank
22
Conflicting solutions
∅\emptyset
Worked text output
Coefficient rank: 1
Compatible augmented rank: 1
Solution family: {(3 - y, y)}
Conflicting augmented rank: 2
Conflicting solutions: EmptySet

Read the starter result

The compatible coefficient and augmented ranks match at 1 and Solution family leaves one variable free. In the conflicting example the augmented rank is larger and Conflicting solutions is empty.

Edit and compare

Append the equation x−y=1 to the compatible system by replacing A = sp.Matrix([[1,1],[2,2]]) with A = sp.Matrix([[1,1],[2,2],[1,-1]]) and b = sp.Matrix([3,6]) with b = sp.Matrix([3,6,1]). Select Run Python. Compare the ranks and Solution family. The conflicting example still uses just the first two equations.

Return to the editor

Scope. Exact rank can change discontinuously with parameter values; approximate numerical rank needs tolerances and conditioning analysis.

Try a fresh case

A solution family contains a free parameter. What does it mean?

Choose an answer
Need a hint?
Hint 1

Ask how many independent conditions the equations supply.

Hint 2

A symbol in a family records freedom rather than a mistake.

Your notesNotes save in this browser when storage is available.