Maths WorkshopMaths problems with full solutions
Exercise 899Linear algebra › DeterminantsHigh schoolAdded 3 Nov 2026

Cramer's rule for a 2×2 system

#Cramer's rule#linear system#determinant

Statement

Solve using Cramer's rule:
{3x+2y=7x−y=1\begin{cases} 3x + 2y = 7 \\ x - y = 1 \end{cases}

Hint

For AX=BAX=B with det⁡A≠0\det A\neq0, xi=det⁡Ai/det⁡Ax_i=\det A_i/\det A, where AiA_i is AA with column ii replaced by BB.

Show solutionHide solution

Solution

Determinant.
det⁡A=∣321−1∣=−3−2=−5≠0.\det A = \begin{vmatrix} 3 & 2 \\ 1 & -1 \end{vmatrix} = -3-2=-5\neq0.

Determinant A1A_1.
det⁡A1=∣721−1∣=−7−2=−9.\det A_1 = \begin{vmatrix} 7 & 2 \\ 1 & -1 \end{vmatrix} = -7-2=-9.

Determinant A2A_2.
det⁡A2=∣3711∣=3−7=−4.\det A_2 = \begin{vmatrix} 3 & 7 \\ 1 & 1 \end{vmatrix} = 3-7=-4.

Solution.
x=−9−5=95,y=−4−5=45.x = \frac{-9}{-5} = \frac95, \qquad y = \frac{-4}{-5}=\frac45.

Verification. 3⋅9/5+2⋅4/5=(27+8)/5=35/5=73\cdot9/5+2\cdot4/5=(27+8)/5=35/5=7 and 9/5−4/5=5/5=19/5-4/5=5/5=1. Correct.