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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewVectors in Two DimensionsVector Operations: Addition, Subtraction, and Scalar MultiplicationDot Product (Inner Product in R^n)Matrix MultiplicationDeterminants of 2×2 and 3×3 MatricesInvertible Matrices and Matrix InversesSystems of Linear Equations and Matrix FormCramer'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.