Lesson 8 of 8 · 18 min
Systems of equations and modelling
Write a pair of linear equations as , 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 .
- Solve it with , with and without technology.
- Interpret : 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
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 .
Line up the coefficients, the unknowns and the constants, and the system becomes one matrix equation:
Multiply out the left side to check: it is , which equals exactly when both equations hold.
Key idea
The matrix method
Write the system as , where is the coefficient matrix, is the column of unknowns and is the column of constants.
If , the system has exactly one solution:
Worked example
Solve a system of equations with an inverse matrix
Use a matrix method to solve and .
Step 1: Write the system as
Step 2: Find
, so there is a unique solution.
Step 3: Find
Taking the inside changes every sign. Keeping outside the matrix avoids fractions until the last step.
Step 4: Calculate
Step 5: Check
and . This matches the intersection point on the graph.
Try it yourself first, then check the working one step at a time.
Answer
and .
Method
Write the coefficient matrix, the unknowns and the constants as .
Check and find .
Calculate and check the answer in both equations.
Watch out for
Calculating , which is not even defined: is and is .
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 and ?
Use matrices to solve and .
What if ? Then doesn't exist and the matrix method stops. The rows of 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.
and have a singular coefficient matrix, since . The lines are parallel, so there is no solution.
Key idea
When the determinant is zero
If , 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 and , doubling the first equation gives , not .
- Infinitely many solutions: one whole equation is a multiple of the other, as with and . Every point on the line is a solution.
For what value of does the system , have no unique solution?
Modelling with a matrix equation
Define the variables
Say exactly what and stand for, with units.
Write the equations
Turn each piece of information into a linear equation.
Write the matrix equation
Set up , keeping the variables in the same order in every row.
Solve
Find , by hand or with technology.
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
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.
Step 1: Define the variables
Let be the number of adult tickets and the number of student tickets sold.
Step 2: Write the equations
Number of tickets: . Money taken, in dollars: .
Step 3: Write the matrix equation
Step 4: Find the inverse
, so the inverse is .
Step 5: Solve
Step 6: Check and answer in context
, and . Both values are whole numbers, as ticket counts must be.
Try it yourself first, then check the working one step at a time.
Answer
130 adult tickets and 120 student tickets were sold.
Method
Define the variables, with units.
Write one equation for each piece of information, then the matrix equation .
Solve with , 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 and in the matrix editor and calculate , 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)
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.
Step 1: Define the variables
Let be the mass of powder P and the mass of powder Q, both in grams.
Step 2: Write the equations
Protein: . Carbohydrate: .
Step 3: Write the matrix equation
Step 4: Check that a unique solution exists
.
Step 5: Solve with technology
Enter the coefficient matrix as and the constants as , then calculate .
By hand you would get and . That is correct, but slow and easy to get wrong, which is what technology is for.
Step 6: Check and evaluate
Protein: . Carbohydrate: . Both masses are positive, and about 68 g of powder in total is a realistic serve, so the solution is reasonable.
Try it yourself first, then check the working one step at a time.
Answer
About 43.4 g of powder P and 24.5 g of powder Q.
Method
Define the variables and write one equation for each nutrient.
Check the determinant is not zero, then calculate with technology.
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 , is the matrix equation .
If , the unique solution is .
If , 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.