Cramer's rule on 3x + 2y = 16, x − y = 2: determinants −5, −20 and −10

Three 2×2 determinants and two divisions, the same answer substitution gives.

Matrices and vectors · Level: Classroom · Updated on 2026-11-10

Write the two lines as one matrix equation with coefficient matrix (3 2; 1 −1). The first link prints its determinant −5, and the second computes it by the 2×2 rule, 3·(−1) − 2·1. Cramer then replaces one column at a time with the right-hand side: for x the matrix (16 2; 2 −1) has determinant −20, and the third link divides that by −5 to print 4; for y the replacement (3 16; 1 2) has determinant −10, and the fourth link divides it by −5 for 2. Check: 3·4 + 2·2 = 16 and 4 − 2 = 2.

The rule is attractive and unusable at scale. It asks for n + 1 determinants for an n×n system, and cofactor expansion costs on the order of n! operations where elimination costs n³/3 — which is why every numerical linear algebra text warns against it, and why it survives as a theoretical tool: it proves that the solution depends rationally on the right-hand side, and that the dependence breaks exactly where the determinant does. It also fails loudly and correctly when the determinant is zero, the same condition under which the two lines are parallel. The 2×2 case is the only one where Cramer is cheaper than anything else, and it is exactly the case every school syllabus keeps.

Answer

4

How to read it

x = 4 from −20 ÷ −5. The first and second links are the coefficient determinant −5, the fourth is y = −10 ÷ −5 = 2.

Source

Gabriel Cramer, 'Introduction à l'analyse des lignes courbes algébriques' (1750), where the rule appears for systems obtained by elimination; the determinant formulation in the modern shape is the standard textbook statement

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.