A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Cramer's Rule for Solving Systems

College Depth 81 in the knowledge graph ☐ I know this ☆ Set as goal
338prerequisites beneath it
See this on the map →
Properties of DeterminantsSystems of Linear Equations and Matrix Form+1 more→
systems cramers rule determinants

Core Idea

For a square system Ax = b with det(A) ≠ 0, Cramer's rule gives x_i = det(A_i) / det(A), where A_i is A with column i replaced by b. This provides an explicit formula for solutions but is computationally inefficient compared to Gaussian elimination.

Explainer

You already know two things that Cramer's rule combines: how to solve a system of linear equations Ax = b, and how to compute the determinant of a matrix. From systems of equations, you know that a square system has a unique solution exactly when det(A) ≠ 0. From determinant properties, you know that the determinant measures how a linear transformation scales volume. Cramer's rule connects these ideas by expressing each solution variable as a ratio of determinants — giving you an explicit formula without any elimination steps.

Here is the rule: to solve Ax = b for x₁, x₂, ..., xₙ, compute x_i = det(A_i) / det(A), where A_i is the matrix formed by taking A and replacing column i with the vector b. For a 2×2 system, this is easy to verify by hand. Take the system 2x + y = 5, x + 3y = 7. The coefficient matrix A has det(A) = 2·3 − 1·1 = 5. To find x₁, replace the first column with [5, 7] to get A₁; det(A₁) = 5·3 − 1·7 = 8, so x₁ = 8/5. To find x₂, replace the second column with [5, 7] to get A₂; det(A₂) = 2·7 − 5·1 = 9, so x₂ = 9/5. You can verify these values satisfy both equations.

Why does this work? Here is the geometric intuition. The vector b is a linear combination of the columns of A: b = x₁a₁ + x₂a₂ + ... + xₙaₙ, where aᵢ is column i of A. The matrix A_i replaces column i with b, which can be written as the original matrix A but with column i "contaminated" by the weighted sum. When you take the determinant of A_i, the multilinearity of the determinant isolates the xᵢ coefficient (all other terms vanish because they introduce repeated columns), leaving det(A_i) = xᵢ · det(A). Dividing by det(A) recovers xᵢ.

Cramer's rule is theoretically elegant but computationally expensive. Computing a single n×n determinant takes O(n³) work (or O(n!) via cofactor expansion). Cramer's rule requires n+1 determinants, so solving a full n-variable system costs O(n⁴) — far worse than Gaussian elimination's O(n³). For n = 100, that's 100 times more work. In practice, nobody uses Cramer's rule to actually solve large systems. Its value is theoretical: it gives explicit, closed-form expressions for solutions, which are useful when deriving formulas in proofs, studying how solutions depend on parameters, or computing the inverse of a matrix symbolically. You will encounter Cramer's rule again whenever exact symbolic solutions matter more than computational speed.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Vectors in Two Dimensions → Vector Operations: Addition, Subtraction, and Scalar Multiplication → Dot Product (Inner Product in R^n) → Matrix Multiplication → Determinants of 2×2 and 3×3 Matrices → Invertible Matrices and Matrix Inverses → Systems of Linear Equations and Matrix Form → Cramer's Rule for Solving Systems

Longest path: 82 steps · 338 total prerequisite topics

Prerequisites (3)

Leads To (0)

No topics depend on this one yet.