Lesson 8: Systems of equations and modelling
Mixing two powders (with technology)
SkillsModelling with matricesSystems of linear equations
Worked example
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.
Answer
About 43.4 g of powder P and 24.5 g of powder Q.
Try a similar one
A fresh question of the same kind, checked as you answer, with hints and a full solution.
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.