Lesson 8 of 8 · 18 min

Systems of equations and modelling

Write a pair of linear equations as AX=B\bm{AX} = \bm{B}, solve it with the inverse matrix, interpret a zero determinant, and model real problems with matrix equations.

What you will be able to do

  • Write a system of two linear equations as a matrix equation AX=B\bm{AX} = \bm{B}.
  • Solve it with X=A−1B\bm{X} = \bm{A}^{-1}\bm{B}, with and without technology.
  • Interpret det⁡(A)=0\det(\bm{A}) = 0: the lines are parallel, so there is no unique solution.
  • Model a real situation with a matrix equation and interpret the solution in context.

You already know how to solve simultaneous equations by substitution or elimination. Matrices give you a third method, and it is the one that scales up: the same steps solve 2 equations or 200.

Look at the system

3x+2y=12x−y=−13x + 2y = 12 \qquad x - y = -1

Each equation is a straight line, and the solution is the point where the lines cross.

The solution of the system is the intersection point (2,3)(2, 3).

Line up the coefficients, the unknowns and the constants, and the system becomes one matrix equation:

[321−1]⏟A[xy]⏟X=[12−1]⏟B\underbrace{\begin{bmatrix} 3 & 2 \\ 1 & -1 \end{bmatrix}}_{\bm{A}}\underbrace{\begin{bmatrix} x \\ y \end{bmatrix}}_{\bm{X}} = \underbrace{\begin{bmatrix} 12 \\ -1 \end{bmatrix}}_{\bm{B}}

Multiply out the left side to check: it is [3x+2yx−y]\begin{bmatrix} 3x + 2y \\ x - y \end{bmatrix}, which equals [12−1]\begin{bmatrix} 12 \\ -1 \end{bmatrix} exactly when both equations hold.

Key idea

The matrix method

Write the system as AX=B\bm{AX} = \bm{B}, where A\bm{A} is the coefficient matrix, X\bm{X} is the column of unknowns and B\bm{B} is the column of constants.

If det⁡(A)≠0\det(\bm{A}) \neq 0, the system has exactly one solution:

X=A−1B\bm{X} = \bm{A}^{-1}\bm{B}

Worked example

Solve a system of equations with an inverse matrix

  • Simple familiar
  • Technology free

Use a matrix method to solve 3x+2y=123x + 2y = 12 and x−y=−1x - y = -1.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Write the coefficient matrix, the unknowns and the constants as AX=B\bm{AX} = \bm{B}.

  2. Check det⁡(A)≠0\det(\bm{A}) \neq 0 and find A−1\bm{A}^{-1}.

  3. Calculate A−1B\bm{A}^{-1}\bm{B} and check the answer in both equations.

Watch out for

  • Calculating BA−1\bm{BA}^{-1}, which is not even defined: B\bm{B} is 2×12 \times 1 and A−1\bm{A}^{-1} is 2×22 \times 2.

Interactive

Solve a system

Change the coefficients and the constants and watch the solution update. Then make the second row a multiple of the first: what happens to the determinant, and to the solution?

Which matrix equation represents the system 4x−y=94x - y = 9 and 2x+3y=12x + 3y = 1?

Choose one answer

Use matrices to solve 2x+3y=82x + 3y = 8 and x+2y=5x + 2y = 5.

What if det⁡(A)=0\det(\bm{A}) = 0? Then A−1\bm{A}^{-1} doesn't exist and the matrix method stops. The rows of A\bm{A} are proportional, so the two lines have the same gradient: they are parallel. Either they never meet, and there is no solution, or they are the same line, and there are infinitely many solutions.

2x+3y=62x + 3y = 6 and 4x+6y=244x + 6y = 24 have a singular coefficient matrix, since 2×6−3×4=02 \times 6 - 3 \times 4 = 0. The lines are parallel, so there is no solution.

Key idea

When the determinant is zero

If det⁡(A)=0\det(\bm{A}) = 0, the system has no unique solution. Compare the equations to decide which case you have:

  • No solution: the left sides are proportional but the constants are not. For 2x+3y=62x + 3y = 6 and 4x+6y=244x + 6y = 24, doubling the first equation gives 4x+6y=124x + 6y = 12, not 2424.
  • Infinitely many solutions: one whole equation is a multiple of the other, as with x+2y=4x + 2y = 4 and 2x+4y=82x + 4y = 8. Every point on the line is a solution.

For what value of kk does the system kx+2y=5kx + 2y = 5, 3x+6y=13x + 6y = 1 have no unique solution?

Modelling with a matrix equation

  1. Define the variables

    Say exactly what xx and yy stand for, with units.

  2. Write the equations

    Turn each piece of information into a linear equation.

  3. Write the matrix equation

    Set up AX=B\bm{AX} = \bm{B}, keeping the variables in the same order in every row.

  4. Solve

    Find X=A−1B\bm{X} = \bm{A}^{-1}\bm{B}, by hand or with technology.

  5. Check and answer in context

    Substitute back, check the answer is reasonable (whole numbers of tickets, positive masses), and answer the question in words.

Worked example

Ticket sales: model and solve

  • Complex familiar
  • Technology free

A school musical sold 250 tickets and took $3540. Adult tickets cost $18 and student tickets cost $10. Use a matrix method to find how many of each type were sold.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Define the variables, with units.

  2. Write one equation for each piece of information, then the matrix equation AX=B\bm{AX} = \bm{B}.

  3. Solve with X=A−1B\bm{X} = \bm{A}^{-1}\bm{B}, check, and answer in words.

Watch out for

  • Putting the constants in the wrong rows, so that each one sits beside the wrong equation's coefficients.

Without technology

Paper 1 questions use small whole numbers, so the inverse formula and one multiplication are quick. Keep fractions exact until the end.

With technology

Real data has decimals. Enter A\bm{A} and B\bm{B} in the matrix editor and calculate A−1B\bm{A}^{-1}\bm{B}, or use the calculator's simultaneous equation solver. Write down the matrix equation you solved, and round only the final answer.

Worked example

Mixing two powders (with technology)

  • Complex unfamiliar
  • Technology active

A sports dietitian mixes two powders for an athlete's recovery drink. Each gram of powder P contains 0.24 g of protein and 0.52 g of carbohydrate. Each gram of powder Q contains 0.80 g of protein and 0.10 g of carbohydrate. The drink must contain 30 g of protein and 25 g of carbohydrate.

Use technology and a matrix equation to find how much of each powder to use, correct to 0.1 g, and comment on whether your answer is reasonable.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Define the variables and write one equation for each nutrient.

  2. Check the determinant is not zero, then calculate A−1B\bm{A}^{-1}\bm{B} with technology.

  3. Round only at the end, check in the original equations, and judge whether the answer makes sense.

Watch out for

  • Rounding the inverse matrix before multiplying, which makes the final answer inaccurate.

  • Swapping the constants, so the protein target ends up in the carbohydrate row.

Summary

  • The system ax+by=eax + by = e, cx+dy=fcx + dy = f is the matrix equation [abcd][xy]=[ef]\begin{bmatrix} a & b \\ c & d \end{bmatrix}\begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} e \\ f \end{bmatrix}.

  • If det⁡(A)≠0\det(\bm{A}) \neq 0, the unique solution is X=A−1B\bm{X} = \bm{A}^{-1}\bm{B}.

  • If det⁡(A)=0\det(\bm{A}) = 0, the lines are parallel: no solution, or infinitely many if they are the same line.

  • In a model, define the variables, solve, check the answer makes sense, and state it in context.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 8 of 80% read

Save your progress with a free account