This is a beta course, so its structure, chapters, and examples may continue to change.
Cramer's Rule
Cramer’s Rule
The Definition of Cramer’s Rule
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
If the determinant det(A) of the coefficient matrix A=(aij) satisfies det(A)=0, then the system has a unique solution:
xj=det(A)det(Aj)(j=1,2,…,n)
where Aj is the matrix obtained from the coefficient matrix A by replacing its j-th column with the constant terms b.
The Conditions of Cramer’s Rule
Conditions:
The system must have n equations in n unknowns (a square matrix)
The determinant ∣A∣ of the coefficient matrix must satisfy ∣A∣=0
Note: when ∣A∣=0, Cramer’s rule does not apply and another method has to be used to solve the system.
The Proof of Cramer’s Rule
Proof idea:
Suppose Ax=b has the unique solution x=A−1b
Use the property of the adjugate matrix: A−1=∣A∣1A∗
This gives xi=∣A∣1∑j=1nAjibj
Here Aji is the algebraic cofactor of A
One can prove that ∑j=1nAjibj=∣Ai∣
Applications of Cramer’s Rule
The Solving Steps
Check the conditions: confirm that the system is n×n and that ∣A∣=0
Compute ∣A∣: compute the determinant of the coefficient matrix
Compute ∣Ai∣: replace the i-th column with the vector of constant terms and compute the determinant
Solve: xi=∣A∣∣Ai∣
Example
Example 1: solve the system by Cramer’s rule:
{x+2y=53x−y=4
Solution:
The coefficient matrix: A=(132−1)
∣A∣=1×(−1)−2×3=−1−6=−7=0
∣A1∣=542−1=5×(−1)−2×4=−5−8=−13
∣A2∣=1354=1×4−5×3=4−15=−11
x=−7−13=713, y=−7−11=711
The Advantages and Disadvantages of Cramer’s Rule
Advantages
Theoretical significance: it gives an explicit expression for the solution
Simple computation: for small systems the computation is relatively simple
Exact solutions: it yields exact fractional solutions
Disadvantages
Heavy computation: for large systems, several determinants have to be computed
Restricted applicability: it works only for square matrices with a nonzero determinant
Numerical stability: when the determinant is close to zero, the computational error is large
Extensions of Cramer’s Rule
Homogeneous Systems
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
The Necessary and Sufficient Condition for a Homogeneous System to Have a Nonzero Solution
The homogeneous linear system Ax=0 has a nonzero solution if and only if ∣A∣=0.
Proof
Proof:
If ∣A∣=0, then the only solution is the zero solution
If ∣A∣=0, then there are infinitely many solutions, including nonzero ones
The Non-Square Case
For a system of size m×n (m ≠ n), Cramer’s rule does not apply and another method has to be used to solve it.
Exercises
Exercise 1
Solve the system {2x+y=7x−3y=−4 by Cramer’s rule.
Cramer's rulesystem of linear equationsdeterminantcoefficient matrix
Approach:
Follow the steps of Cramer’s rule.
Steps:
The coefficient matrix: A=(211−3)
∣A∣=2×(−3)−1×1=−6−1=−7=0
∣A1∣=7−41−3=7×(−3)−1×(−4)=−21+4=−17
∣A2∣=217−4=2×(−4)−7×1=−8−7=−15
x=−7−17=717, y=−7−15=715
Answer: x=717, y=715
Exercise 2
Decide whether the system {x+y=12x+2y=2 can be solved by Cramer’s rule.
Cramer's rulesystem of linear equationsdeterminantcoefficient matrix
Approach:
Check the determinant of the coefficient matrix.
Steps:
The coefficient matrix: A=(1212)
∣A∣=1×2−1×2=2−2=0
The determinant is zero, so Cramer’s rule does not apply
Answer: it cannot be solved by Cramer’s rule
Exercise 3
Solve the system ⎩⎨⎧x+y+z=62x+3y+z=13x−y+2z=4 by Cramer’s rule.
Cramer's rulesystem of linear equationsdeterminantcoefficient matrix
Approach:
Follow the steps of Cramer’s rule for the three-variable system.