Algebra 2 (Common Core) • Systems of Equations

Solving Systems Using Matrix Inverses

Transform systems of linear equations into elegant matrix equations and solve them in one powerful step using the multiplicative inverse.

Algebra illustration with a variable, function graph, and equality symbol
Inside this lesson 10 sections 5 questions 11 figures

Section 1

Historical Context & Motivation

Systems of linear equations are among the oldest problems in mathematics, arising naturally whenever multiple constraints must be satisfied simultaneously. Ancient Chinese mathematicians documented methods for solving systems as early as 200 BCE in the text The Nine Chapters on the Mathematical Art, where rectangular arrays of coefficients — essentially early matrices — were manipulated to find solutions. The modern concept of a matrix and its inverse, however, took centuries of additional development before reaching the elegant form we use today.

c. 200 BCE

Chinese mathematicians use rectangular coefficient arrays and a method resembling Gaussian elimination to solve systems of up to five equations, as recorded in The Nine Chapters on the Mathematical Art.

1683

Gottfried Wilhelm Leibniz introduces the concept of the determinant, a scalar value that characterizes whether a square array of coefficients can be "inverted" — a critical precondition for the matrix inverse method.

1750

Gabriel Cramer publishes Cramer's Rule, providing explicit formulas for solving systems using determinants. This work laid conceptual groundwork for linking matrix properties to solvability.

1858

Arthur Cayley formalizes the modern concept of a matrix and defines matrix multiplication, the identity matrix, and the inverse matrix. His algebra of matrices provides the rigorous foundation for the method we study in this lesson.

20th–21st Centuries

With the rise of computers, matrix inverse methods become essential in engineering, physics, computer graphics, machine learning, and economics. Efficient algorithms for computing inverses enable real-time solutions of systems with thousands of variables.

The central question this lesson addresses is straightforward: given a system of linear equations, can we rewrite it as a single matrix equation AX = B and then solve for X by multiplying both sides by the inverse of A? The answer is yes — provided that inverse exists — and the technique is both powerful and remarkably clean.

Section 2

Core Principles & Definitions

Before we can solve systems using matrix inverses, we need to establish four foundational ideas. Each one builds on the previous, forming a logical chain from "what is a matrix?" all the way to "how do we solve a system?"

1

Matrix Representation of a System

Any system of n linear equations in n unknowns can be written as AX = B, where A is the coefficient matrix, X is the variable column matrix, and B is the constant column matrix.
2

The Identity Matrix (I)

The identity matrix is the matrix equivalent of the number 1. For any square matrix A, the product A · I = I · A = A. It has 1s on the main diagonal and 0s everywhere else.
3

The Inverse Matrix (A⁻¹)

If a square matrix A has an inverse A⁻¹, then A · A⁻¹ = A⁻¹ · A = I. Not all matrices have inverses — only those with a nonzero determinant (called invertible or nonsingular matrices).
4

The Determinant Test

For a 2×2 matrix, det(A) = ad − bc. If det(A) ≠ 0, the inverse exists and the system has a unique solution. If det(A) = 0, the matrix is singular and the method cannot be used.
✦

Key Takeaway

Think of the matrix inverse as an "undo button." If multiplying by matrix A scrambles your variables into a set of constants, then multiplying by A⁻¹ unscrambles those constants back into the original variable values. It's the same logic as dividing both sides of 5x = 20 by 5 — except now the "division" is matrix multiplication by the inverse.

Section 3

Visual Explanation

The diagram below illustrates the complete process of translating a system of two equations into the matrix equation AX = B, then solving it by applying the inverse matrix A⁻¹ to both sides. Follow the arrows from left to right to see each stage of the transformation.

SYSTEM2x + 3y = 8 x − 4y = −3Two equations, two unknownsMATRIX FORMA2 31 −4Xxy=BAX = BCoefficient × Variable = ConstantMultiply by A⁻¹SOLVEA⁻¹ · A · X = A⁻¹ · BI · X = A⁻¹ · BIdentity cancels, leaving X = A⁻¹BSOLUTIONX = A⁻¹ · BUnique solution when det(A) ≠ 0
Diagram showing the process of converting a system of equations to matrix form AX = B and solving with the inverse matrix.

The diagram shows the four key stages. First, we identify the coefficient matrix A, the variable matrix X, and the constant matrix B from the original system. Next, we write the compact matrix equation AX = B. Then we multiply both sides on the left by A⁻¹, which causes A⁻¹ · A to collapse into the identity matrix I, leaving us with the elegant result X = A⁻¹B. The entire solution is contained in a single matrix multiplication.

Section 4

Mathematical Framework

Let us now formalize the procedure with precise equations. We will focus on 2×2 systems since they are the most common in Algebra 2, but the method generalizes to any n × n system.

Matrix Equation Form

AX=BAX = B

A = coefficient matrix, X = variable matrix, B = constant matrix

For a system of two equations in two unknowns — say a₁x + b₁y = c₁ and a₂x + b₂y = c₂ — the matrices are:

2×2 System Decomposition

A=[a1b1;a2b2],X=[x;y],B=[c1;c2]A = [a₁ b₁; a₂ b₂], X = [x; y], B = [c₁; c₂]

The determinant of the 2×2 coefficient matrix A determines whether a unique solution exists. It is computed as follows:

Determinant of a 2×2 Matrix

det(A)=a1b2−a2b1det(A) = a₁b₂ − a₂b₁

If det(A) = 0, the matrix is singular and has no inverse.

When the determinant is nonzero, the inverse of a 2×2 matrix is given by the following formula. Notice how the formula swaps the main diagonal entries, negates the off-diagonal entries, and divides everything by the determinant:

Inverse of a 2×2 Matrix

A−1=1/(a1b2−a2b1)×[b2−b1;−a2a1]A⁻¹ = 1/(a₁b₂ − a₂b₁) × [b₂ −b₁; −a₂ a₁]

Swap diagonal entries, negate off-diagonal entries, multiply by 1/det(A).

Once A⁻¹ is computed, the solution is found by a single matrix multiplication:

Solution Formula

X=A−1⋅BX = A⁻¹ · B

Multiply the inverse matrix by the constant matrix to obtain the variable values.

It is crucial to remember that matrix multiplication is not commutative. We must multiply A⁻¹ on the left of both sides of AX = B. Writing B · A⁻¹ would be incorrect and would generally produce a different (wrong) result.

Section 5

Step-by-Step Process & Classification

The following diagram presents the complete decision-making process as a flowchart. Starting from any system of equations, you follow the branches to determine whether the matrix inverse method is applicable and, if so, arrive at the solution.

STEP 1Write system as AX = BSTEP 2Compute det(A) = ad − bcdet(A) ≠ 0 ?NOSTOPNo uniquesolutionYESSTEP 3Compute A⁻¹ using the 2×2 formulaSTEP 4Multiply: X = A⁻¹ · BSOLUTIONx = ?, y = ?

Let us also classify the possible outcomes when we attempt this method:

DeterminantMatrix StatusSystem ClassificationNumber of Solutions
det(A) ≠ 0Invertible (nonsingular)Independent & consistentExactly one (unique)
det(A) = 0Singular (no inverse)Dependent or inconsistentInfinitely many or none

When the determinant equals zero, the two equations are either parallel lines (no solutions — inconsistent) or the same line (infinitely many solutions — dependent). In either case, the matrix inverse method is not applicable, and you must use a different technique such as substitution or elimination to diagnose the situation.

Determinant Scale & Invertibility

det(A) = 0 — Singular |det(A)| large — Well-conditioned

Section 6

Worked Example

Let us solve the following system of equations using the matrix inverse method, walking through every calculation in detail.

System to Solve

2x+5y=11;3x−2y=−122x + 5y = 11 ; 3x − 2y = −12

Solving 2x + 5y = 11 and 3x − 2y = −12

  1. 1

    Step 1 — Write as AX = B

    Identify the coefficient matrix A, the variable matrix X, and the constant matrix B: A = [2, 5; 3, −2], X = [x; y], B = [11; −12].
  2. 2

    Step 2 — Compute the Determinant

    For our matrix A with entries a₁ = 2, b₁ = 5, a₂ = 3, b₂ = −2:
    det(A) = (2)(−2) − (3)(5) = −4 − 15 = −19. Since −19 ≠ 0, the inverse exists and a unique solution is guaranteed.
  3. 3

    Step 3 — Find A⁻¹

    Apply the 2×2 inverse formula: swap the main diagonal entries (2 and −2 become −2 and 2), negate the off-diagonal entries (5 becomes −5, 3 becomes −3), and multiply by 1/det(A) = 1/(−19):
    A⁻¹ = (1/−19) × [−2, −5; −3, 2] = [2/19, 5/19; 3/19, −2/19]
  4. 4

    Step 4 — Multiply X = A⁻¹ · B

    Now perform the matrix multiplication A⁻¹ · B:
    x = (2/19)(11) + (5/19)(−12) = 22/19 + (−60/19) = −38/19 = −2. y = (3/19)(11) + (−2/19)(−12) = 33/19 + 24/19 = 57/19 = 3.
  5. 5

    Step 5 — State and Verify the Solution

    The solution is x = −2, y = 3. Let's verify by substituting back:
    2(−2) + 5(3) = −4 + 15 = 11 ✓ and 3(−2) − 2(3) = −6 − 6 = −12 ✓. Both equations are satisfied, confirming our solution.

Section 7

Strengths, Limitations & Method Comparison

The matrix inverse method is one of several techniques for solving systems of equations. Each approach has its strengths and weaknesses depending on the size of the system, the nature of the coefficients, and whether technology is available. The following table compares the four most common methods taught in Algebra 2.

MethodStrengthsLimitationsBest For
Matrix InversesElegant, one-step solution; easily programmed; extends to large systemsOnly works when det(A) ≠ 0; computing inverse by hand can be tedious for 3×3+Systems with a unique solution; computer-assisted work
SubstitutionSimple for small systems; works when one variable is already isolatedMessy with fractions; doesn't scale well2-variable systems where one equation is already solved for a variable
EliminationReliable and systematic; handles all cases (unique, infinite, no solution)Can be error-prone with many steps; less elegant than matrix methodsGeneral-purpose solving by hand
Cramer's RuleDirect formula using determinants; good for solving for one variable at a timeComputationally expensive for large systems; requires det(A) ≠ 0Finding a single variable's value without solving the whole system
✦

Key Takeaway

Think of solving methods as tools in a toolkit. Substitution and elimination are your reliable hand tools — great for quick jobs and for understanding the mechanics. The matrix inverse method is your power tool — faster and more powerful for larger tasks, but it requires the right conditions (a nonzero determinant) and some setup. In real-world applications — from balancing chemical equations to optimizing business logistics — matrix methods dominate because computers can execute them with extraordinary speed and precision.

Section 8

Connections to Advanced Mathematics

The matrix inverse method you have learned is your first encounter with a vast field called linear algebra, which is arguably the most widely applied branch of mathematics in the modern world. As you progress beyond Algebra 2, the ideas introduced here will expand dramatically in scope and power.

In precalculus and college algebra, you will encounter 3×3 systems (and beyond), where the inverse formula becomes more complex and techniques like row reduction (Gauss-Jordan elimination) are used to find inverses efficiently. In linear algebra courses, you will study concepts such as eigenvalues, vector spaces, linear transformations, and the rank of a matrix — all of which deepen your understanding of when and why systems have solutions.

Concept (Algebra 2)Advanced ExtensionWhere It Leads
2×2 inverse formulaGeneral n×n inverse via row reduction or cofactor expansionLinear algebra, numerical methods
Determinant as invertibility testEigenvalues, rank, nullityQuantum mechanics, stability analysis
AX = B (unique solution)Least-squares solutions for overdetermined systemsData science, machine learning, regression
Matrix multiplicationLinear transformations and change of basisComputer graphics, robotics, physics

Perhaps most remarkably, the matrix inverse appears at the heart of computer graphics: every 3D rotation, scaling, and perspective projection in video games and CGI movies is a matrix operation. The inverse is used to "undo" transformations — for example, to determine which point in 3D space a pixel on your screen corresponds to. The humble 2×2 inverse you learned today is the entry point to all of this.

Section 9

Practice Problems

Test your understanding with these five problems, arranged from conceptual to challenging. Try each one before revealing the answer.

Question 1: Problem 1 — Conceptual

Explain why you cannot use the matrix inverse method to solve the system 4x + 6y = 10 and 2x + 3y = 5. What does this tell you about the system geometrically?
Show answer
The coefficient matrix A has entries a₁ = 4, b₁ = 6, a₂ = 2, b₂ = 3. The determinant is det(A) = (4)(3) − (2)(6) = 12 − 12 = 0. Since the determinant is zero, the matrix is singular — it has no inverse, and the matrix inverse method cannot be applied. Geometrically, this means the two equations represent either the same line (dependent system with infinitely many solutions) or parallel lines (inconsistent system with no solutions). In this case, if you divide the first equation by 2, you get 2x + 3y = 5, which is identical to the second equation — so the system is dependent, and every point on the line 2x + 3y = 5 is a solution.

Question 2: Problem 2 — Basic Calculation

Find the inverse of the matrix A = [ [3, 1], [5, 2] ] (that is, the matrix with first row 3, 1 and second row 5, 2).
Show answer
First, compute the determinant: det(A) = (3)(2) − (5)(1) = 6 − 5 = 1. Since det(A) = 1 ≠ 0, the inverse exists. Applying the 2×2 inverse formula — swap the main diagonal entries (3 and 2 become 2 and 3), negate the off-diagonal entries (1 becomes −1, 5 becomes −5), and multiply by 1/det(A) = 1/1 = 1 — we get A⁻¹ = [ [2, −1], [−5, 3] ]. You can verify: A · A⁻¹ = [ [3×2 + 1×(−5), 3×(−1) + 1×3], [5×2 + 2×(−5), 5×(−1) + 2×3] ] = [ [1, 0], [0, 1] ] = I. ✓

Question 3: Problem 3 — Intermediate

Use the matrix inverse method to solve: 4x − y = 9 and −3x + 2y = −2.
Show answer
The coefficient matrix is A = [ [4, −1], [−3, 2] ] and B = [ [9], [−2] ]. The determinant is det(A) = (4)(2) − (−3)(−1) = 8 − 3 = 5. Since 5 ≠ 0, the inverse exists. A⁻¹ = (1/5) × [ [2, 1], [3, 4] ]. Now compute X = A⁻¹ · B: x = (1/5)[(2)(9) + (1)(−2)] = (1/5)(18 − 2) = 16/5. y = (1/5)[(3)(9) + (4)(−2)] = (1/5)(27 − 8) = 19/5. The solution is x = 16/5, y = 19/5. Verify: 4(16/5) − (19/5) = 64/5 − 19/5 = 45/5 = 9 ✓ and −3(16/5) + 2(19/5) = −48/5 + 38/5 = −10/5 = −2 ✓.

Question 4: Problem 4 — Applied / Multi-Step

A store sells two types of notebooks. On Monday, a customer buys 3 spiral notebooks and 2 composition books for $14.50. On Tuesday, another customer buys 1 spiral notebook and 4 composition books for $13.50. Set up and solve a system using matrix inverses to find the price of each type of notebook.
Show answer
Let s = price of a spiral notebook and c = price of a composition book. The system is 3s + 2c = 14.50 and s + 4c = 13.50. The coefficient matrix is A = [ [3, 2], [1, 4] ] and B = [ [14.50], [13.50] ]. The determinant is det(A) = (3)(4) − (1)(2) = 12 − 2 = 10. The inverse is A⁻¹ = (1/10) × [ [4, −2], [−1, 3] ]. Computing X = A⁻¹ · B: s = (1/10)[(4)(14.50) + (−2)(13.50)] = (1/10)(58 − 27) = $3.10. c = (1/10)[(−1)(14.50) + (3)(13.50)] = (1/10)(−14.50 + 40.50) = $2.60. A spiral notebook costs $3.10 and a composition book costs $2.60. Verification: 3(3.10) + 2(2.60) = 9.30 + 5.20 = 14.50 ✓ and 1(3.10) + 4(2.60) = 3.10 + 10.40 = 13.50 ✓.

Question 5: Problem 5 — Critical Thinking

A student claims: "If I multiply both sides of AX = B by A⁻¹ on the right instead of the left, I'll still get the correct answer." Is this claim true or false? Explain your reasoning carefully, and describe what would happen mathematically if you attempted to multiply on the right.
Show answer
The claim is false. Matrix multiplication is not commutative — the order of multiplication matters. The correct operation is to multiply on the left: A⁻¹(AX) = A⁻¹B. This works because A⁻¹A = I, so IX = X, giving us X = A⁻¹B. If you tried to multiply on the right, you would write (AX)A⁻¹ = BA⁻¹. The left side does not simplify to X because AXA⁻¹ ≠ AA⁻¹X in general (we cannot rearrange the order). In fact, for a 2×2 coefficient matrix A and a 2×1 column vector X, the product XA⁻¹ is not even defined — X is 2×1 and A⁻¹ is 2×2, so the dimensions don't match for right-multiplication. This is a fundamental feature of matrix algebra: you must always multiply from the same side on both sides of the equation, and for AX = B, that side must be the left.

Summary

Lesson Summary

Summary

Solving systems of linear equations using matrix inverses transforms a multi-step algebraic process into a single, elegant operation. The method begins by expressing the system in the form AX = B, where A is the coefficient matrix, X is the variable matrix, and B is the constant matrix. The critical prerequisite is verifying that the determinant of A is nonzero, which guarantees that A is invertible and the system has a unique solution. For a 2×2 matrix, the determinant is computed as ad − bc, and the inverse is found by swapping the main diagonal entries, negating the off-diagonal entries, and dividing by the determinant.

Once the inverse matrix A⁻¹ is obtained, the solution is computed in a single step: X = A⁻¹ · B. The key caution is that matrix multiplication is not commutative — you must multiply A⁻¹ on the left side. When the determinant equals zero, the matrix is singular, the inverse does not exist, and the system either has no solutions or infinitely many. This method connects directly to the field of linear algebra, where matrices and their inverses are foundational tools used across science, engineering, computer graphics, and data science.

Varsity Tutors • Algebra 2 • Solving Systems Using Matrix Inverses