Cramer's method
A system of linear equations is a set of linear equations with several unknowns. Cramer's method solves it via determinants: if the determinant of the main matrix is not zero, the system has a unique solution, and each unknown equals a ratio of determinants.
In plain words:
A system of equations can be written with one formula: A is the table of coefficients of the unknowns, X is the column of the unknowns themselves, and B is the column of the numbers on the right-hand sides. All the data of the system are "packed" into three blocks.
Example:
- System: x+2y=5,3x+4y=11
- A=(1324), X=(xy), B=(511)
- AX=B is a compact notation of the same system
Main rule:
In AX=B the letters mean "coefficients · unknowns = right-hand sides": it is like a shopping list, but as a table.
In plain words:
Cramer's formula answers the question "what is each unknown?": we put the determinant of the system Δ in the denominator, and the auxiliary determinant Δi obtained by replacing the needed column in the numerator.
Example:
- For x: x=ΔΔx
- For y: y=ΔΔy
Main rule:
Each unknown is a fraction "auxiliary determinant / main determinant"; it works only when Δ=0.
In plain words:
The main determinant of the system Δ is the "indicator" of the solution. If it is not zero, the system meets in one point and has exactly one solution. If it is zero — there is no unique solution.
Example:
- For the system x+2y=5,3x+4y=11
- Δ=1324=1⋅4−2⋅3=−2=0
- So the solution is unique
Main rule:
While Δ=0 — solve by Cramer's method confidently; at Δ=0 the formula breaks and we handle that case specially.
In plain words:
To find x, take the determinant of the system and replace the column under x with the column of free terms b1,b2. Similarly for y — replace the column under y.
Example:
- System: x+2y=5,3x+4y=11
- Δx=51124=5⋅4−2⋅11=−2
- x=ΔΔx=−2−2=1
Main rule:
The column of the unknown of interest is "thrown out" and replaced by the column of the right-hand sides.
In plain words:
An inconsistent system is a contradiction: the conditions "do not intersect". If the main determinant Δ=0 and at least one auxiliary Δi=0, then there is no set of equations that would all hold at once.
Example:
- x+y=1,x+y=3 (both should give different sums)
- Δ=1111=0, but Δx=0
- Matching left-hand sides, different right-hand ones — no solutions
Main rule:
The contradiction shows up like this: Δ=0 but at least one Δi=0 — no solutions.
In plain words:
A homogeneous system is one where only zeros stand on the right-hand sides (AX=0). It always has at least one solution: all unknowns are zero. This is the "zero" (trivial) solution.
Example:
- System x+y=0,x−y=0
- Substituting x=0,y=0 gives 0=0
- The trivial solution always works
Main rule:
A homogeneous system is never "empty": the zero vector X=0 is a guaranteed solution.
In plain words:
If both determinants (Δ and all Δi) are zero, the equations "in fact" describe the same relationship. The lines coincide, and infinitely many pairs of numbers fit.
Example:
- x+y=2,2x+2y=4 (the second is just the first doubled)
- Δ=0 and Δx=Δy=0
- Any pair of the form x=a,y=2−a fits — infinitely many solutions
Main rule:
Dependent equations are "the same thing twice": if Δ=0 and all Δi=0, there are infinitely many solutions.