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.
The second equation repeats the first. Replacing 6 by 7 makes the pair inconsistent, because doubling the first equation must give 6.
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.
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.
Your saved draft is open. To use the published code, select Restore example in Tools. Use Recover draft to bring back your code.
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.
Execution error
Technical error details
Your result
Python text output
Compare with the worked example
Executed from the published Python during the site build. Your own run appears above. Build environment ↗
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.
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?
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.