• Practice
  • About 16 min
  • 5 practice questions

Determinants and Cramer's rule

Find the value of a 2 × 2 determinant, write D, Dx and Dy for a pair of equations, and solve the equations with Cramer's rule x = Dx/D, y = Dy/D.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Find the value of a determinant with two rows and two columns.
  • Write the determinants D, Dx and Dy for equations in the form ax + by = c.
  • Solve simultaneous equations by Cramer's rule and explain what D = 0 means.

Elimination always works, but the steps change from question to question. The determinant method, also called Cramer's method after the Swiss mathematician Gabriel Cramer, does the same work in a fixed pattern that takes little space and is easy to check.

What a determinant is

A determinant is an arrangement of numbers in rows and columns between two vertical bars that stands for a single number. With rows (a, b) and (c, d), the determinant |a b; c d| (written here row by row, a semicolon separating the rows) has two elements in each row and each column, so its degree is 2. Its value is ad − bc: the product along the leading diagonal minus the product along the other diagonal. Determinants are usually named with capital letters such as A, B, D.

Worked example 1: values of determinants

  • |6 2; 4 3| = (6 × 3) − (2 × 4) = 18 − 8 = 10.
  • |−5 2; 3 −4| = (−5)(−4) − (2)(3) = 20 − 6 = 14.
  • |4 6; 2 3| = 12 − 12 = 0. A determinant can be zero; here the second row is half the first.

Cramer's rule

Write the equations as a₁x + b₁y = c₁ and a₂x + b₂y = c₂, with a₁b₂ − a₂b₁ ≠ 0. Solving them by elimination in general gives x = (c₁b₂ − c₂b₁)/(a₁b₂ − a₂b₁) and y = (a₁c₂ − a₂c₁)/(a₁b₂ − a₂b₁). Each of these three expressions is a determinant, which is what makes the rule easy to remember.

The three determinants (rows written with a semicolon between them)
NameDeterminantHow to make it from the columns (a), (b), (c)
D|a₁ b₁; a₂ b₂|Leave out the column of constants
Dx|c₁ b₁; c₂ b₂|Replace the x-column (a) by the constants (c)
Dy|a₁ c₁; a₂ c₂|Replace the y-column (b) by the constants (c)

Cramer's rule: x = Dx / D and y = Dy / D, provided D ≠ 0.

— Determinant method

Cramer's method step by step

  1. Write in the form ax + by = c Move every variable term to the left and the constant to the right.
  2. Find D Coefficients of x and y.
  3. Find Dx and Dy Replace the x-column, then the y-column, by the constants.
  4. Divide x = Dx/D, y = Dy/D.
  5. Check Substitute in both original equations.

Worked example 2: 3x + 2y = 7 and 5x − 3y = 18

Working: D = |3 2; 5 −3| = (3)(−3) − (2)(5) = −9 − 10 = −19. Dx = |7 2; 18 −3| = (7)(−3) − (2)(18) = −21 − 36 = −57. Dy = |3 7; 5 18| = (3)(18) − (7)(5) = 54 − 35 = 19. So x = −57 ÷ −19 = 3 and y = 19 ÷ −19 = −1. Check: 3(3) + 2(−1) = 7 and 5(3) − 3(−1) = 15 + 3 = 18. The solution is (3, −1).

Worked example 3: y = 2x − 1 and x + 2y − 8 = 0

Working: first rewrite in the form ax + by = c: 2x − y = 1 and x + 2y = 8. D = |2 −1; 1 2| = 4 − (−1) = 5. Dx = |1 −1; 8 2| = 2 − (−8) = 10. Dy = |2 1; 1 8| = 16 − 1 = 15. So x = 10/5 = 2 and y = 15/5 = 3. Check: 2(2) − 3 = 1 and 2 + 2(3) = 8. The solution is (2, 3).

What if D = 0?

Division by zero is impossible, so when D = 0 the rule gives no unique answer. D = 0 means a₁/a₂ = b₁/b₂: the two lines have the same slant. They are then either parallel (no solution) or the same line (infinitely many solutions), the two cases you met in the graphical method.

Key takeaways: |a b; c d| = ad − bc. For a₁x + b₁y = c₁ and a₂x + b₂y = c₂, D uses the coefficients, Dx puts the constants in the x-column, Dy puts them in the y-column, and x = Dx/D, y = Dy/D. Always rewrite the equations in the form ax + by = c first, and watch the signs.

Check your understanding

  1. 1. What is the value of the determinant |8 −3; 5 2|?

    1. 1
    2. −31
    3. 31
    4. −1
    Show answer

    Answer: C. Value = (8 × 2) − (−3 × 5) = 16 − (−15) = 16 + 15 = 31. Forgetting the double negative gives 16 − 15 = 1.

  2. 2. For 4x − 5y = 3 and 2x + y = 5, what is Dx?

    1. 28
    2. −22
    3. 14
    4. 13
    Show answer

    Answer: A. Dx replaces the x-column by the constants: |3 −5; 5 1| = (3)(1) − (−5)(5) = 3 + 25 = 28. (D = 4 + 10 = 14, so x = 28/14 = 2.)

  3. 3. For a pair of equations, Dx = 24, Dy = −16 and D = 8. What is the solution?

    1. (−3, 2)
    2. (2, −3)
    3. (3, 2)
    4. (3, −2)
    Show answer

    Answer: D. x = Dx/D = 24/8 = 3 and y = Dy/D = −16/8 = −2, so the solution is (3, −2).

  4. 4. If D = 0 for a pair of linear equations, what follows?

    1. The solution is x = 0, y = 0
    2. The equations do not have a unique solution
    3. The equations always have exactly one solution
    4. Dx and Dy must also be 0
    Show answer

    Answer: B. x = Dx/D cannot be found when D = 0, because we cannot divide by zero. The lines are then parallel (no solution) or the same line (infinitely many), so there is no unique solution.

  5. 5. How is Dy formed from the columns of the coefficients of x, the coefficients of y and the constants?

    1. The column of constants is left out
    2. The column of x-coefficients is replaced by the constants
    3. The column of y-coefficients is replaced by the constants
    4. Both columns are replaced by the constants
    Show answer

    Answer: C. Dy = |a₁ c₁; a₂ c₂|: the x-coefficients stay and the y-coefficient column is replaced by the constants. Leaving out the constants gives D, and replacing the x-column gives Dx.

Privacy · Terms · Refunds · Delivery