Common mistake
Cramer's rule works even when the determinant is zero.
Correct understanding
The formula divides by |A|, so it is undefined when |A| = 0. In that case the system has either no solution or infinitely many.
Maths · Lesson 3.5
Matrix form AX = B, Cramer's rule, the inverse method and singular cases.
By the end of this lesson, you should be able to:
A system of linear equations can be written compactly as AX = B, where A is the coefficient matrix, X is the column of unknowns, and B is the column of constants. This form lets us use determinants and inverses to solve the system.
Cramer's rule expresses each unknown as a ratio of two determinants. It is elegant for small systems and gives immediate information about uniqueness, although elimination is usually faster for large systems.
For the system AX = B with |A| ≠ 0, the solution is xi = |Ai|/|A|, where Ai is the matrix obtained by replacing column i of A with the constant column B. The rule works for any number of equations equal to the number of unknowns.
If |A| = 0, Cramer's rule cannot be applied. The system may have no solution or infinitely many solutions. To decide which, compare the ranks of A and the augmented matrix, or inspect the equations directly.
Multiplying AX = B on the left by A-1 gives X = A-1B, provided A is invertible. This is the matrix version of dividing both sides by A. It is especially convenient when the same coefficient matrix is used with several different constant columns.
Geometrically, two linear equations in two unknowns represent two lines. A non-zero determinant means the lines meet at exactly one point. A zero determinant means the lines are parallel or coincident, so there is no unique intersection.
The coefficient matrix is A = [[2, 1], [1, 3]], with |A| = 6 - 1 = 5.
Replace the first column by B = [5, 10]: Ax = [[5, 1], [10, 3]], so |Ax| = 15 - 10 = 5.
Replace the second column by B: Ay = [[2, 5], [1, 10]], so |Ay| = 20 - 5 = 15.
Therefore x = 5/5 = 1 and y = 15/5 = 3. Check: 2(1) + 3 = 5 and 1 + 3(3) = 10.
Common mistake
Cramer's rule works even when the determinant is zero.
Correct understanding
The formula divides by |A|, so it is undefined when |A| = 0. In that case the system has either no solution or infinitely many.
It gives a direct formula for one unknown and makes the role of the determinant clear. It is also useful in proofs and in symbolic work.
The rule applies to square systems. Overdetermined systems need least squares or consistency checks.