SECTION 1
Historical Context & Motivation
People have been solving systems of equations for thousands of years. Ancient civilizations needed to figure out things like how to divide land or how many items to trade. Over time, mathematicians discovered that you could organize the numbers from a system of equations into a neat grid called a matrix. Once matrices were invented, people started asking: "Can we use matrices to solve entire systems of equations all at once?" The answer was yes — and the key tool turned out to be the matrix inverse.
~200 BCE • Ancient Systems of Equations
1683 • Determinants Introduced
1850s • Matrix Algebra Formalized
1940s–Today • Computers and Linear Algebra
The central question this lesson tackles is: if you have a system of equations written as Ax = b, how can you find x by "undoing" the matrix A? That undoing process is exactly what the inverse of A does.
SECTION 2
Core Principles & Definitions
Before we solve Ax = b using inverses, let's nail down the key ideas you need. Think of a matrix as a rectangular grid of numbers, and think of a system of linear equations as a set of equations where each variable appears only to the first power. When you write these equations in matrix form, you get the equation Ax = b, where A holds the coefficients, x holds the unknowns, and b holds the constants on the right side.
The Equation Ax = b
Matrix Inverse (A⁻¹)
Identity Matrix (I)
Determinant
The Solution: x = A⁻¹b
KEY TAKEAWAY
SECTION 3
Visual Explanation — How Ax = b Works
Let's see what the equation Ax = b looks like when we expand it. The diagram below shows how a 2×2 system of equations translates into the matrix equation, and how applying A⁻¹ to both sides isolates x.
Notice how the whole process boils down to one idea: if multiplying by A "scrambles" x into b, then multiplying by A⁻¹ "unscrambles" b back into x. This only works when A has an inverse — that is, when the determinant of A is not zero.
SECTION 4
Mathematical Framework
Let's formalize what we've been discussing. The key equations are straightforward once you see the pattern.
MATRIX EQUATION
A is an n×n coefficient matrix, x is the n×1 column vector of unknowns, and b is the n×1 column vector of constants.
SOLUTION VIA INVERSE
If A is invertible (det(A) ≠ 0), multiply both sides on the left by A⁻¹. Since A⁻¹A = I and Ix = x, the left side simplifies to just x.
2×2 INVERSE FORMULA
For a 2×2 matrix A = [a b; c d], the determinant is det(A) = ad − bc. You swap the diagonal entries (a and d), flip the signs of the off-diagonal entries (b and c), and divide everything by the determinant.
DETERMINANT CHECK
If det(A) = 0, the matrix is singular and has no inverse. This means the system either has no solution or infinitely many solutions — the inverse method won't work in either case.
Why do we multiply on the left by A⁻¹? Because matrix multiplication is not commutative — A × B does not always equal B × A. So the order matters. Multiplying A⁻¹ on the left of both sides keeps the equation balanced: A⁻¹(Ax) = A⁻¹b simplifies to Ix = A⁻¹b, which gives x = A⁻¹b.
SECTION 5
Step-by-Step Process for Solving Ax = b
Here is the complete process, broken into clear steps. The diagram below walks you through the decision-making and computation involved.
- Step 1 — Set up Ax = b: Write the coefficient matrix A, the variable vector x, and the constant vector b from your system of equations.
- Step 2 — Compute the determinant: For a 2×2 matrix [a b; c d], calculate det(A) = ad − bc. If it equals zero, stop — no unique solution exists.
- Step 3 — Find A⁻¹: Swap the diagonal entries, negate the off-diagonal entries, and divide everything by det(A).
- Step 4 — Compute x = A⁻¹b: Multiply the inverse matrix by the vector b using row-by-column multiplication to find each unknown.
SECTION 6
Worked Example
Let's solve a complete system step by step. Suppose you need to solve:
Problem
Solving 2x + 3y = 8, x + 4y = 13
- 1
Step 1 — Write as Ax = b
Identify the coefficients: A = [2 3; 1 4], x = [x; y], and b = [8; 13]. The first row of A comes from the first equation (coefficients 2 and 3), and the second row comes from the second equation (coefficients 1 and 4).A = [2 3; 1 4], b = [8; 13] - 2
Step 2 — Compute the determinant
For A = [a b; c d] = [2 3; 1 4], we compute det(A) = a×d − b×c = 2×4 − 3×1 = 8 − 3 = 5. Since 5 ≠ 0, the inverse exists and there is a unique solution.det(A) = 5 ≠ 0 ✓ - 3
Step 3 — Find A⁻¹
Using the formula A⁻¹ = (1/det(A)) × [d −b; −c a], we get: A⁻¹ = (1/5) × [4 −3; −1 2] = [4/5 −3/5; −1/5 2/5]. We swapped the 2 and 4 on the diagonal, negated the 3 and 1, and divided each entry by 5.A⁻¹ = [4/5 −3/5; −1/5 2/5] - 4
Step 4 — Multiply x = A⁻¹b
Now multiply A⁻¹ by b. For the first entry of x: (4/5)(8) + (−3/5)(13) = 32/5 − 39/5 = −7/5. For the second entry (y): (−1/5)(8) + (2/5)(13) = −8/5 + 26/5 = 18/5.x = −7/5 = −1.4, y = 18/5 = 3.6 - 5
Step 5 — Verify the solution
Plug x = −7/5 and y = 18/5 back into the original equations. First equation: 2(−7/5) + 3(18/5) = −14/5 + 54/5 = 40/5 = 8 ✓. Second equation: 1(−7/5) + 4(18/5) = −7/5 + 72/5 = 65/5 = 13 ✓. Both check out!Solution: x = −7/5, y = 18/5
SECTION 7
Strengths and Limitations
Using the inverse method to solve Ax = b is elegant, but it's not always the best tool. Let's compare it with other approaches.
| Feature | Inverse Method (x = A⁻¹b) | Elimination / Row Reduction |
|---|---|---|
| When it works | Only when A is square and det(A) ≠ 0 | Works for any system, including non-square |
| Multiple right-hand sides | Excellent — compute A⁻¹ once, multiply for each b | Must redo elimination for each new b |
| Speed for large systems | Slower — computing the inverse is expensive | Faster — elimination is more efficient |
| Conceptual clarity | Very clear — x = A⁻¹b is one formula | Requires multiple row operations |
| Singular matrices | Cannot handle — method fails | Can still reveal no solution or infinite solutions |
Comparison of the inverse method vs. elimination
WHEN TO USE INVERSES
SECTION 8
Connections to Advanced Topics
The idea of solving Ax = b using inverses is your gateway to many advanced topics in linear algebra. As you continue your studies, you'll encounter more powerful tools that build directly on what you've learned here.
| This Lesson | Advanced Topic |
|---|---|
| 2×2 inverse formula | General n×n inverses via row reduction (augmented matrix [A | I] → [I | A⁻¹]) |
| Determinant ≠ 0 check | Eigenvalues and the rank of a matrix determine when solutions exist |
| x = A⁻¹b for one b | LU decomposition and QR factorization for solving many systems efficiently |
| Singular matrix (no inverse) | Pseudo-inverse (A⁺) for systems with no exact solution — used in machine learning and statistics |
How this lesson connects to future topics
In computer graphics, matrices are used to rotate, scale, and translate objects on screen. When you need to undo a transformation (like rotating an image back to its original position), you're computing and applying an inverse matrix — exactly the idea from this lesson. In machine learning, solving systems of equations with matrix inverses is at the heart of methods like linear regression, which finds the best-fit line through data points.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
A system of linear equations can be written compactly as Ax = b, where A is the coefficient matrix, x is the vector of unknowns, and b is the vector of constants. If the determinant of A is not zero, then A has an inverse A⁻¹, and the unique solution is found by computing x = A⁻¹b.
For a 2×2 matrix, the inverse is calculated by swapping diagonal entries, negating off-diagonal entries, and dividing by the determinant. This method is especially powerful when you need to solve multiple systems with the same coefficient matrix A but different right-hand sides b. When the determinant equals zero, the matrix is singular and has no inverse — in that case, the system either has no solution or infinitely many, and you'll need a different method like row reduction to investigate further.