This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
Topic 1 Number and algebra · 1.16 Systems of linear equations
What you must be able to do
| You must be able to | Level | What it looks like in the exam |
|---|---|---|
| Solve a system of up to three linear equations in three unknowns by elimination (row reduction) | HL only | "Solve the system of equations" (5 marks, Paper 1) |
| Recognise from the reduced system whether there is a unique solution, no solution (inconsistent), or infinitely many | HL only | "Show that the system has no unique solution" |
| Find the general solution of a system with infinitely many solutions, using a parameter | HL only | "Find the general solution" (4 marks) |
| Find values of a parameter for which a system has no unique solution, and decide which case follows | HL only | "Find the value of k for which the system does not have a unique solution" (6 to 8 marks) |
| Solve a system with technology, including reading a GDC's reduced form | HL only | Paper 2 context question (4 to 5 marks) |
| Interpret the three cases geometrically, as lines in two dimensions and planes in three | HL only | "Interpret your answer geometrically" (1 to 2 marks), linked to AHL 3.18 |
Before you start
You need to solve a pair of simultaneous equations in x and y by elimination, from earlier study, and to substitute a value back cleanly. That is all the algebra here; the new part is organising it for three unknowns. For the geometry you need the idea that a linear equation in x and y is a straight line, and it helps to know from AHL 3 that ax + by + cz = d is a plane.
1The idea in one paragraph
A system of linear equations is a set of equations, each of the form ax + by + cz = d, that must all hold at once. The method is elimination: combine equations to remove one unknown at a time until the last equation has only one unknown, then substitute back. Writing only the numbers in an array and applying row operations is the same method, tidier. The last reduced row tells you everything. If it reads, say, −2z = −8, there is a unique solution. If it reads 0 = 0, one equation added nothing new and there are infinitely many solutions, described with a parameter. If it reads 0 = 5, the equations contradict each other and there is no solution: the system is inconsistent. Geometrically the equations are planes, and the three cases are planes meeting at a point, in a line, or not all together at all.
2Two unknowns: the three possibilities
Start where the pictures are flat. Each equation in x and y is a straight line, and a solution is a point on both. Figure 1 shows the only three things that can happen.
- One solution. x + y = 3 and 2x − y = 0 cross at (1, 2).
- No solution. x + y = 3 and x + y = 1 are parallel. Subtracting one from the other gives 0 = 2, which is impossible. The system is inconsistent.
- Infinitely many solutions. 2x + 2y = 6 is just x + y = 3 doubled. Both equations describe the same line, and every point on it is a solution.
Three unknowns work the same way, except that the lines become planes and there are more ways for them to fail to meet.
3Three unknowns: elimination and row reduction
The plan: use the first equation to remove x from the other two, then use the new second equation to remove y from the third. The system becomes triangular, and you solve from the bottom up.
Worked example 1. Paper 1. Solve the system
Check in all three original equations: 1 + 4 − 4 = 1; 2 + 2 + 4 = 8; 3 − 2 + 8 = 9. Checking in the equation you did not use last is the one that catches slips.
The same thing with the numbers only. Writing x, y, z and = on every line is slow. Keep just the coefficients and the right-hand sides in an array, the augmented matrix, with a line where the = signs were. The allowed row operations are exactly the moves you made with equations:
- swap two rows;
- multiply a row by a non-zero number;
- add a multiple of one row to another.
None of these changes the set of solutions, because each can be undone. Figure 2 does Worked example 1 this way. The shaded entries below the diagonal are the zeros you are aiming for; this is row-echelon or triangular form.
Two habits keep row reduction accurate on Paper 1. Label every operation (R2 − 2R1), because the marks are for method and a marker cannot follow unlabelled numbers. And choose the row you work from so that its leading coefficient is 1, swapping rows first if needed; dividing by 3 in the first step creates fractions you then carry to the end.
4Reading the last row
After reduction, the last row has zeros in the x and y columns. What remains decides the case, as Figure 3 summarises.
Last row a z = b with a ≠ 0: unique solution. Last row 0 = 0: infinitely many solutions. Last row 0 = b with b ≠ 0: no solution (the system is inconsistent).
The middle case needs a closer look. 0 = 0 is true, but it says nothing: one of the three equations was a combination of the other two, so there are really only two independent equations for three unknowns. One unknown can then take any value, and the others follow from it.
5Infinitely many solutions: the general solution
When the reduction gives 0 = 0, let one unknown be a parameter, usually λ, and express the other two in terms of it. The result is the general solution: one formula that gives every solution as λ runs through the real numbers.
Worked example 2. Paper 1. Show that the system below has infinitely many solutions and find the general solution.
Check with any value of λ. λ = 1 gives (1, 2, 1): 1 + 2 + 1 = 4, 1 − 2 + 2 = 1, 2 + 3 = 5. All three hold.
The general solution can be written as a vector, (x, y, z) = (5/2, 3/2, 0) + λ(−3/2, 1/2, 1), which is the vector equation of a line (AHL 3.14). So geometrically the three planes all pass through one common line, like pages of a book meeting at the spine: a sheaf. Figure 4(b) draws it.
Different choices of parameter give general solutions that look different but describe the same line. Letting z = 2μ − 3 instead would give x = 7 − 3μ, y = μ, z = 2μ − 3. Either is correct; a mark scheme accepts any valid parametrisation, and your check will confirm yours.
6No solution: an inconsistent system
Change one number in Worked example 2 and the picture changes completely.
Worked example 3. Paper 1. Show that the following system has no solution.
The two reduced equations ask −2y + z to be −3 and −1 at the same time. No values of x, y and z can do that, so the system is inconsistent and has no solution. The conclusion must be stated in words: "0 = 2 is impossible, so there is no solution".
Geometrically there are two ways three planes can have no common point, and Figure 4 shows both. In (c) each pair of planes meets in a line, but the three lines are parallel, forming a triangular prism: this is what happens in Worked example 3, where no two of the planes are parallel. In (d) two of the planes are parallel and never meet at all. AHL 3.18 treats these arrangements in detail.
7Systems with a parameter
The favourite Paper 1 question puts an unknown constant into the system and asks when the solution stops being unique. Reduce as usual, carrying the constant along; the last row will have a coefficient that depends on it.
Worked example 4. Paper 1. Consider the system
(a) Find the value of k for which the system does not have a unique solution. (b) For that value of k, find the value of m for which the system has infinitely many solutions, and find the general solution.
Figure 5 lays out the decision. The logic generalises: a coefficient that can be zero splits the question into "unique" (coefficient not zero) and "not unique" (coefficient zero), and the not-unique case splits again on whether the right-hand side is also zero.
When k ≠ −2 the last row gives z = (m + 3)/(k + 2) directly, and back-substitution finds x and y. A question may ask for that unique solution in terms of k and m; the method is the same, only the algebra is heavier.
8Solving with technology
On Paper 2 the GDC does the arithmetic, and the guide expects you to use it.
- A simultaneous equation solver (or matrix mode) finds a unique solution directly: enter the coefficients and right-hand sides row by row. When there is no unique solution, most solvers report "no solution" or "infinite solutions" rather than the general solution.
- The rref function (reduced row-echelon form) applied to the augmented matrix gives the fully reduced array. A last row of 0 0 0 | 1 means inconsistent; a last row of zeros means infinitely many, and the other rows give the general solution once you set the free unknown equal to λ.
Worked example 5. Paper 2. A café sells small, medium and large coffees. On Monday it sold 50 small, 80 medium and 40 large for €533. On Tuesday it sold 60 small, 70 medium and 50 large for €564. On Wednesday it sold 40 small, 50 medium and 60 large for €488. Find the price of each size. (Invented data.)
A small coffee costs €2.50, a medium €3.20 and a large €3.80. Check one day by hand: 50 × 2.5 + 80 × 3.2 + 40 × 3.8 = 125 + 256 + 152 = 533.
If a solver reports "no solution" or "infinite solutions" for a question that must have one answer, the likeliest cause is a coefficient typed wrongly. Re-enter the matrix before concluding anything.
Write down the equations you entered on Paper 2, not just the answer: the equations carry the method marks, and a typo in one coefficient is then a lost A mark, not the whole question.
9Where marks are lost
Unlabelled row operations. Write R2 − 2R1 beside each step. Without it, a single arithmetic slip leaves a marker nothing to award.
Arithmetic slips in the right-hand column. The operation applies to every entry in the row, the constant included. R2 − 2R1 changes 8 into 8 − 2 = 6, not 8.
Concluding "infinitely many" from 0 = 0 without showing the reduction. Show the two rows that become equal, then write the 0 = 0 line.
Stopping at 0 = 2 without a conclusion. Say "this is impossible, so the system is inconsistent and has no solution".
Using k + 2 = 0 as the answer to "no solution". k = −2 gives no unique solution. Whether there are none or infinitely many depends on the right-hand side, so it must be checked.
A general solution that does not satisfy the equations. Put λ = 0 or λ = 1 into all three equations. It takes a minute and catches most errors.
Dividing by an expression that could be zero. Dividing a row by (k + 2) is only allowed when k ≠ −2. Treat that case separately.
Trusting the GDC's "no solution" without checking the entries. Re-enter the matrix; one wrong sign changes the case.
10Work it right
- Write the equations in the same order of unknowns, lined up, with constants on the right.
- Pick a first row with x-coefficient 1 if possible; swap rows if needed.
- Eliminate x from rows 2 and 3, then eliminate y from row 3. Label every operation.
- Read the last row: a z = b (a ≠ 0) unique; 0 = 0 infinitely many; 0 = b (b ≠ 0) none.
- For a unique solution, back-substitute and check in all three equations.
- For infinitely many, set z = λ (or whichever unknown is free), express the others in λ, and check with a value of λ.
- For a parameter, carry it through the reduction, set the last coefficient to zero to find when the solution is not unique, then test the right-hand side.
- On Paper 2, write the equations you entered and the GDC's output, and interpret a "no solution" or rref result in words.
11Try it
Marks in brackets. Q1 to Q3 are Paper 1 style (no calculator). Q4 is Paper 2 style.
Q1. Solve the system of equations
x + y + z = 4, 2x − y + 3z = 14, x + 3y − 2z = −7. 5 marks
Q2. Consider the system x − y + 2z = 3, 2x + y − z = 3, 4x − y + 3z = 9.
(a) Show that the system does not have a unique solution. 3 marks
(b) Find the general solution. 3 marks
(c) Interpret your answer geometrically. 1 mark
Q3. Consider the system x + y − z = 1, 2x + 3y + az = 3, x + ay + 3z = 2, where a ∈ ℝ.
(a) Show that, after row reduction, the last equation can be written as (a + 3)(a − 2)z = a − 2. 4 marks
(b) Find the values of a for which the system does not have a unique solution. 1 mark
(c) For each of these values, state whether the system has no solution or infinitely many, giving a reason. 3 marks
Q4. Paper 2. A theatre sold 250 tickets for one performance: adult tickets at €12, student tickets at €8 and child tickets at €5. The takings were €2220, and 50 more student and child tickets together were sold than adult tickets. (Invented data.)
(a) Write down a system of three equations for the numbers of adult, student and child tickets, a, s and c. 3 marks
(b) Solve the system. 2 marks
12In one breath
A system of linear equations is solved by elimination: remove x from two equations, then y from the last, and back-substitute; in an augmented matrix the same moves are row operations (swap rows, multiply a row by a non-zero number, add a multiple of one row to another), labelled every time. The last reduced row decides the case: a z = b with a ≠ 0 means a unique solution; 0 = 0 means one equation was redundant and there are infinitely many, given by a general solution in a parameter λ; 0 = b with b ≠ 0 is impossible, so the system is inconsistent with no solution. With a parameter k, the solution is unique unless the last coefficient is zero, and then the right-hand side decides between none and infinitely many. Geometrically two unknowns are lines (cross, parallel, identical) and three unknowns are planes (a point, a sheaf through a line, or a prism or parallel planes with nothing common). On Paper 2 use the GDC's solver or rref, write down what you entered, and check every answer in the original equations.
Answers
Q1. R2 − 2R1: −3y + z = 6. R3 − R1: 2y − 3z = −11. From the first, z = 6 + 3y; substitute: 2y − 18 − 9y = −11, so −7y = 7, y = −1, then z = 3, and x = 4 − y − z = 4 + 1 − 3 = 2. Check: 2(2) + 1 + 9 = 14; 2 − 3 − 6 = −7. M1 for eliminating x from two equations, A1 for both reduced equations, M1 for eliminating a second unknown, A1 for one value, A1 for all three values.
Q2. (a) R2 − 2R1: 3y − 5z = −3. R3 − 4R1: 3y − 5z = −3. Subtracting gives 0 = 0, so the equations are not independent and there is no unique solution. (b) Let z = λ: 3y = 5λ − 3, y = (5λ − 3)/3, and x = 3 + y − 2z = (6 − λ)/3, z = λ. (Equivalently, with z = 3μ: x = 2 − μ, y = 5μ − 1, z = 3μ.) (c) The three planes meet in a line (a sheaf). (a) M1 for the row operations, A1 for identical reduced rows, R1 for 0 = 0 so not unique. (b) M1 for introducing a parameter, A1 for y, A1 for x. (c) A1. Check with λ = 3: (1, 4, 3) gives 1 − 4 + 6 = 3, 2 + 4 − 3 = 3, 4 − 4 + 9 = 9.
Q3. (a) R2 − 2R1: y + (a + 2)z = 1. R3 − R1: (a − 1)y + 4z = 1. Then R3 − (a − 1)R2: [4 − (a − 1)(a + 2)]z = 1 − (a − 1), that is (6 − a − a²)z = 2 − a, and multiplying by −1: (a² + a − 6)z = a − 2, so (a + 3)(a − 2)z = a − 2, as required. (b) a = −3 or a = 2. (c) a = 2: the last row is 0 = 0, so infinitely many solutions. a = −3: the last row is 0 = −5, impossible, so no solution. (a) M1 for eliminating x, A1 for both reduced rows, M1 for eliminating y, A1 for reaching the given form (AG). (b) A1 for both values. (c) R1 for substituting each value into the last row, A1 for a = 2 infinitely many, A1 for a = −3 no solution.
Q4. (a) a + s + c = 250; 12a + 8s + 5c = 2220; s + c − a = 50 (or a − s − c = −50). (b) GDC: a = 100, s = 90, c = 60. Check: 100 + 90 + 60 = 250; 1200 + 720 + 300 = 2220; 150 − 100 = 50. (a) A1 for each equation. (b) M1 for solving with technology (the equations or matrix entered shown), A1 for all three values. An answer from a system with one wrong equation earns M1 A0 if the method is clear.
Educerie · written from the published IB Diploma Programme Mathematics: analysis and approaches guide, first assessment 2021, section AHL 1.16 Solutions of systems of linear equations. Original text, examples and questions. Diagrams drawn by Educerie. Last reviewed 25 September 2026.