Skip to content
MathsMaths
Start learning

Maths · Lesson 3.5

Cramer's Rule & Linear Systems

Matrix form AX = B, Cramer's rule, the inverse method and singular cases.

Core syllabus1 linked experiment
01

Learning objectives

By the end of this lesson, you should be able to:

  • Write a linear system as AX = B.
  • Solve a 2×2 or 3×3 system by Cramer's rule.
  • Solve a system using the inverse matrix.
  • Interpret zero-determinant cases.
02

Lesson

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.

Cramer's rule

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.

The inverse method and interpretation

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.

03

Worked example

Solve 2x + y = 5 and x + 3y = 10 by Cramer's rule.

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.

04

Equations

Matrix formAX = B
Cramerxi = |Ai|/|A|
Inverse methodX = A−1B
05

Key points

  • Write a linear system as AX = B.
  • Cramer's rule requires |A| ≠ 0.
  • Each unknown is the determinant with one column replaced, divided by |A|.
  • A zero determinant means no unique solution.
06

Common misconceptions

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.

07

Check your understanding

1. For AX = B with |A| = 4, |Ax| = 12, what is x?

2. If |A| = 0 for a 2×2 system, what can you conclude?

08

Frequently asked questions

Why is Cramer's rule useful if elimination is faster?

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.

Can Cramer's rule solve a system with more equations than unknowns?

The rule applies to square systems. Overdetermined systems need least squares or consistency checks.

NERDLYY · FEEDBACK

Help shape Nerdlyy

Your feedback goes directly to the team. We read every submission.

No reply needed — you can send feedback without sharing contact details.