Solving Systems of Equations with Matrices Examples in Math

Worked examples of Solving Systems of Equations with Matrices to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

medium
Solve using the inverse matrix: {2x+y=5x−y=1
Show solution

Answer

x=2,y=1

First step

1.
Step 1: Write as Ax=b: [211−1][xy]=[51].

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

hard
Use Cramer's rule to solve: {3x+2y=7x−y=1

Example 3

easy
Solve by inspection: (100010001)(xyz)=(4−27).

Example 4

medium
Use x=A−1b to solve Ax=b where A=(2153) and b=(411).

Example 5

hard
Solve using row reduction: {x+y+z=4x−y+z=2x+2y−z=1.

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

easy
Write the system {x+3y=72x−y=4 as a matrix equation Ax=b.

Example 2

medium
Solve using the inverse: {x+2y=83x+5y=19

Example 3

easy
Write the coefficient matrix for {2x+3y=5x−y=1.

Example 4

easy
Write the augmented matrix for {x+2y=43x+y=5.

Example 5

easy
In Ax=b, what does the vector x represent?

Example 6

easy
If the coefficient matrix has determinant 0, what does it tell you about the solution?

Example 7

easy
Write {x=3y=5 as a solution vector.

Example 8

easy
How many equations and variables does a 3×3 coefficient matrix represent?

Example 9

easy
What row operation scales row 1 of (246112) to make its leading entry 1?

Example 10

easy
In Cramer's rule for Ax=b, what is each variable a ratio of?

Example 11

medium
Solve {x+y=5x−y=1 by elimination.

Example 12

medium
Use Cramer's rule to solve {2x+y=5x+3y=10.

Example 13

medium
Row reduce (124259) and solve.

Example 14

medium
Solve using x=A−1b for A=(1112), b=(35).

Example 15

medium
Does {x+y=22x+2y=5 have a solution? Use the determinant.

Example 16

medium
Solve {x+y+z=6y+z=5z=3 by back-substitution.

Example 17

medium
What does an augmented matrix row (004) indicate?

Example 18

medium
Solve {2x+y=7x−y=2 by elimination.

Example 19

medium
Find det⁡(A) for A=(3214) to confirm a unique solution exists.

Example 20

challenge
Solve the system {2x+y=4x−y=−1 three ways agree: give the solution.

Example 21

challenge
For what k does {x+2y=32x+ky=6 have infinitely many solutions?

Example 22

challenge
Use Cramer's rule to find only y in {3x+2y=7x+4y=9.

Example 23

easy
Compute det⁡(2134).

Example 24

easy
What is the augmented matrix of {2x−y=3x+4y=7?

Example 25

easy
Identify the coefficient matrix of {x+y+z=12y−z=0x+z=5.

Example 26

easy
Find A−1 for A=(2003).

Example 27

easy
Compute det⁡(4623).

Example 28

medium
Solve {3x−y=52x+y=5 by elimination.

Example 29

medium
Find A−1 for A=(2153).

Example 30

medium
Use Cramer's rule to solve {4x+y=6x+2y=5.

Example 31

medium
Row-reduce (1−232−35) to find (x,y).

Example 32

medium
Compute det⁡(120034005).

Example 33

medium
For what k is (123k) singular?

Example 34

hard
Solve {x+y+z=62x−y+z=3x+2y−z=2.

Example 35

hard
Compute det⁡(123014560).

Example 36

hard
Use Cramer's rule to find only x in {2x+y−z=3x−y+z=0x+2y+z=6.

Example 37

hard
Find the inverse of A=(1237).

Example 38

hard
Find all k for which {x+2y=k2x+4y=6 has infinitely many solutions.

Example 39

hard
Compute A−1b for A=(2111) and b=(74).

Example 40

hard
Show that {x+y+z=12x+2y+2z=3 has no solution using the augmented matrix.

Example 41

challenge
Find det⁡ ⁣(1aa21bb21cc2) in factored form.

Example 42

challenge
If A is invertible and det⁡A=4, what is det⁡(2A−1) for a 3×3 matrix?

What to focus on

Core idea: Write the system as a matrix equation and solve by row reduction, x=A−1b, or Cramer's rule.

Common stuck point: The procedure for solving systems of equations with matrices is the easy part; the trap is using x=A−1b when det⁡A=0. Asking "Can I write the system as Ax=b and solve mechanically by row ops, inverse, or determinants?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Ask yourself: Can I write the system as Ax=b and solve mechanically by row ops, inverse, or determinants?

Concept recap

Systems of linear equations can be represented as the matrix equation Ax=b and solved using augmented matrices with row reduction (Gaussian elimination), matrix inverses (x=A−1b), or Cramer's rule (using determinants).

An augmented matrix is a spreadsheet of the system with the letters deleted, and row operations are elimination moves applied to whole rows at once. Like tidying a spreadsheet, you work toward a clean layout, ones on the diagonal and zeros elsewhere, where the answers can be read straight off the last column.

Read the full lesson on Solving Systems of Equations with Matrices

Solving Systems of Equations with Matrices is covered with related ideas in the guide Solving Systems of Equations: Substitution, Elimination, and Matrices.

Background knowledge

These ideas may be useful before you work through the harder examples.

systems of equationsinverse matrixdeterminant