Algebra › Section D · Systems of linear equations › Topic D.7

Solving systems with determinants

Elimination is a process; Cramer's rule is a formula. Package the coefficients into a grid, turn the grid into a single number called a determinant, and the solution to a system falls out of division.

From grid to single number

A determinant is a single number computed from a square matrix — a grid with the same number of rows and columns. Write the grid between vertical bars instead of brackets, and the bars mean 'evaluate me'. For a system of equations, the coefficients always form a square grid, so every solvable-looking system ships with a determinant waiting to be computed. The payoff: Cramer's rule, a formula that solves 2×2 and 3×3 systems without any eliminating at all.

The 2×2 determinant

For a grid with entries \(a\) and \(b\) in the first row and \(c\) and \(d\) in the second, the determinant is \(ad - bc\): product of the main diagonal minus product of the off diagonal. The grid \(\begin{vmatrix} 3 & 4 \\ 2 & 5 \end{vmatrix}\) evaluates to \(3 \cdot 5 - 4 \cdot 2 = 15 - 8 = 7\). Notice what the rule rewards: the grid with a large main diagonal scores big, and a symmetric-looking grid can still score zero. Only square grids qualify — a 2×3 grid has no determinant.

Cramer's rule for two variables

For a system \(a_1x + b_1y = c_1\), \(a_2x + b_2y = c_2\), compute three determinants. \(D\) uses the coefficients as they stand. \(D_x\) replaces the \(x\)-coefficient column with the constants; \(D_y\) replaces the \(y\)-coefficient column with the constants. Then \(x = \frac{D_x}{D}\) and \(y = \frac{D_y}{D}\), provided \(D\) is not zero. The memory device is honest to the mathematics: to solve for a variable, yank out its column and drop the constants in its place.

Worked example: a 2×2 system by Cramer's rule

Solve \(2x + y = 7\) and \(x - 2y = 6\). The coefficient determinant is \(D = \begin{vmatrix} 2 & 1 \\ 1 & -2 \end{vmatrix} = 2(-2) - 1(1) = -5\). For \(x\), replace the first column with 7 and 6: \(D_x = \begin{vmatrix} 7 & 1 \\ 6 & -2 \end{vmatrix} = -14 - 6 = -20\), so \(x = \frac{-20}{-5} = 4\). For \(y\), replace the second column: \(D_y = \begin{vmatrix} 2 & 7 \\ 1 & 6 \end{vmatrix} = 12 - 7 = 5\), so \(y = \frac{5}{-5} = -1\). Checking in the originals: \(2(4) + (-1) = 7\) and \(4 - 2(-1) = 6\). The solution is \((4, -1)\).

Minors: shrinking a 3×3 to three 2×2s

A 3×3 determinant evaluates through minors. The minor of an entry is the 2×2 determinant left behind after deleting that entry's row and column. To expand along the first row, multiply each first-row entry by its minor, attach the sign pattern \(+ \; - \; +\), and add: \(a(ei - fh) - b(di - fg) + c(dh - eg)\) for a first row of \(a\), \(b\), \(c\). The middle minus sign is not a typo — the signs alternate along every row and column, and forgetting that minus is the single most common determinant error.

Worked example: a 3×3 determinant

Evaluate \(\begin{vmatrix} 2 & 1 & 3 \\ 0 & 4 & 5 \\ 1 & 0 & 2 \end{vmatrix}\). Expand along the first row. Entry 2: delete its row and column to get \(\begin{vmatrix} 4 & 5 \\ 0 & 2 \end{vmatrix} = 8\). Entry 1: \(\begin{vmatrix} 0 & 5 \\ 1 & 2 \end{vmatrix} = -5\), but with the minus sign it contributes \(-1 \cdot (-5) = 5\). Entry 3: \(\begin{vmatrix} 0 & 4 \\ 1 & 0 \end{vmatrix} = -4\), contributing \(3 \cdot (-4) = -12\). Total: \(16 + 5 - 12 = 9\). Three small 2×2 evaluations stand in for the whole grid.

Cramer's rule for three variables

The scheme scales up exactly. \(D\) is the 3×3 coefficient determinant; \(D_x\), \(D_y\) and \(D_z\) each replace the matching coefficient column with the constants column. Then \(x = \frac{D_x}{D}\), \(y = \frac{D_y}{D}\), \(z = \frac{D_z}{D}\). Four determinant evaluations — each a first-row expansion — replace the double elimination entirely. For \(x + y + z = 6\), \(2x - y + z = 3\), \(x + 2y + 3z = 14\): \(D = -5\), \(D_x = -5\), \(D_y = -10\) and \(D_z = -15\), giving \(x = 1\), \(y = 2\), \(z = 3\) — the same triple that elimination would produce.

When D = 0, the rule goes quiet

Cramer's rule divides by \(D\), so \(D = 0\) stops it cold — and that zero is information, not an obstacle. A zero coefficient determinant means the system has no unique solution: either no solution at all, or infinitely many. Which of the two it is cannot be read from \(D\) alone, so fall back to elimination and watch for the false statement versus the always-true statement. A useful warning sign in applications: \(D\) close to zero makes the formulas technically valid but the numbers twitchy, a first hint of why careful calculators keep a distance from zero denominators.

Collinearity: a determinant as a geometry test

Three points \((x_1, y_1)\), \((x_2, y_2)\) and \((x_3, y_3)\) lie on one straight line exactly when \(\begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} = 0\). For \((1, 1)\), \((2, 3)\) and \((3, 5)\): expanding gives \(1(3 - 5) - 1(2 - 3) + 1(10 - 9) = -2 + 1 + 1 = 0\), so the points are collinear — indeed all three satisfy \(y = 2x - 1\). Geometrically the determinant is twice the signed area of the triangle the three points form, so area zero is exactly collinearity.

Common mistakes to avoid

First, dropping the minus sign on the middle term of a first-row expansion — the pattern is plus, minus, plus, always. Second, swapping the wrong column in Cramer's rule: \(D_x\) replaces the \(x\)-column, and mixing up columns silently swaps answers. Third, inventing a determinant for a non-square grid; only square matrices have them. Fourth, answering 'no solution' when \(D = 0\) — the honest answer is 'no unique solution', and elimination must decide which case holds. Fifth, skipping the final check: any Cramer's-rule answer still gets substituted back into the original equations.

Key takeaways

A determinant is a single number distilled from a square grid: \(ad - bc\) for 2×2, and for 3×3 a first-row expansion through minors with signs \(+ \; - \; +\). Cramer's rule solves systems by division: build \(D\) from the coefficients, build \(D_x\), \(D_y\), \(D_z\) by replacing each coefficient column with the constants, and divide. \(D = 0\) means no unique solution and hands the case back to elimination. The same machinery tests geometry — three points are collinear exactly when their determinant vanishes. Every answer still earns a substitution check.

Flashcards

Flashcard

Determinant

One number computed from a square grid

Written between vertical bars.

Test your understanding

Question 1 of 5

Evaluate the determinant of the grid with rows 3, 4 and 2, 5.

Question 2 of 5

Use Cramer's rule on 2x + 3y = 8 and x − 2y = −3. What is y?

Question 3 of 5

What sign pattern attaches to the three terms when expanding a 3×3 determinant along the first row?

Question 4 of 5

Cramer's rule on a system produces D = 0. What can be concluded?

Question 5 of 5

The collinearity determinant for three points evaluates to 0. What does this mean?

← Previous topicNext topic →