This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 1.16 · HL only
Systems of linear equations
When three equations share three unknowns, how do you find the solution, and how do you tell when there is exactly one, none, or infinitely many?
What you will learn
HL Understand how elimination and row reduction solve up to three linear equations in three unknowns.
HL Know how the reduced rows show a unique solution, no solution (an inconsistent system) or infinitely many.
HL Understand the general solution of a system with infinitely many solutions, written with a parameter.
HL Know the three cases as planes meeting at a point, along a line, or with no common point.
You must be able to
HL Solve a system of three equations in three unknowns by row reduction, without a calculator.
HL Find the values of a constant for which a system has no unique solution, and decide whether it then has none or infinitely many.
HL Find the general solution of a system with infinitely many solutions.
HL Show that a system is inconsistent and has no solution.
HL Write down a system from a context or from given points, and solve it with a GDC.
HL Interpret the solution of a system geometrically as an arrangement of planes.
In the exam. Paper 1 (no calculator): solve a 3×3 system by elimination, show that planes have no common point, or find the value of a parameter for which a system has no unique solution and decide whether it then has none or infinitely many (about 4 to 6 marks a part). Paper 2: a system from a context, solved with the GDC. Paper 3: write down a system for the unknown coefficients of a formula from given values, then solve it. With AHL 3.18 it becomes the intersection of three planes.
1Words and counting
Solution = a set of values that makes every equation true at once. The solution set is all of them.
A system is consistent if it has at least one solution and inconsistent if it has none.
Count first
Two equations in three unknowns (an underspecified system) never give a unique solution: none or infinitely many.
Three equations may not be enough either, because one can repeat the others.
x+y=5 and 3x+3y=15 are two equations but one fact. This unit finds how many independent facts a system holds.
2Two unknowns: the three possibilities
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.
Figure 1 · Two equations in two unknowns: three possibilities
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 cannot be. The system is inconsistent.
Infinitely many solutions.2x+2y=6 is x+y=3 doubled. Both equations describe the same line, and every point on it is a solution.
A quick test
If the coefficients of x and y are in the same ratio in both equations, the lines are parallel or identical. The constants then decide: same ratio, one shared line; different ratio, none. Otherwise the lines cross once.
Example: 4x+py=7 and 6x+9y=5. Parallel needs 4:6=p:9, so p=6. But 7:5 is not 4:6. So p=6 gives no solution; every other p gives one.
Three unknowns work the same way, except that lines become planes and there are more ways to miss.
3Three unknowns: elimination and row reduction
The plan: use the first equation to remove x from the other two. Use the new second equation to remove y from the third. The system is then triangular: solve from the bottom up.
Worked example 1. Paper 1. Solve the system
x+2y−z=12x+y+z=83x−y+2z=9
R2−2R1: (2x+y+z)−2(x+2y−z)=8−2→−3y+3z=6, so y−z=−2R3−3R1: (3x−y+2z)−3(x+2y−z)=9−3→−7y+5z=6substitute y=z−2 into −7y+5z=6: −7z+14+5z=6, so −2z=−8z=4, then y=z−2=2, then x=1−2y+z=1−4+4=1(x,y,z)=(1,2,4)
Check in all three original equations: 1+4−4=1; 2+2+4=8; 3−2+8=9. Check in an equation you did not use for the last step.
Augmented matrix = the coefficients and constants only, in a grid with a vertical bar where the = signs were. Writing x, y, z and = on every line is slow.
The row operations you may use are exactly the moves you make on equations:
swap two rows;
multiply a row by a non-zero number;
add a multiple of one row to another.
swap two rows;
multiply a row by a non-zero number;
add a multiple of one row to another.
None changes the set of solutions, as each can be undone.
Figure 2 carries out Worked example 1 this way. The zeros under the diagonal are the target. A grid like that is in row-echelon (triangular) form.
Figure 2 · Row reduction to triangular form
Two habits keep Paper 1 row reduction reliable.
Write each operation beside its row (R2−2R1), so a marker can follow your method.
Work from a row whose leading coefficient is 1, swapping rows if needed. Then fractions do not start at step one.
A missing unknown is a 0 entry: 2x+5z=9 is the row 205∣9.
4Reading the last row
After reduction the last row has zeros under x and y. What is left decides the case, as Figure 3 summarises. Check impossible rows first.
Figure 3 · Read the last row after reduction
Last row az=b with a=0: unique solution. Any row 0=b with b=0: no solution (the system is inconsistent), whatever the other rows say. Only if there is no such row does a 0=0 row mean infinitely many solutions.
0=0 is true but says nothing: one equation was built from the other two, so there are only two independent facts for three unknowns. One unknown is then free, and the other two follow from it.
The order matters when two rows lose all their unknowns.
Example: x+y+z=1, x+y+z=4, 2x+2y+2z=2. R2−R1 and R3−2R1 give 000∣3 and 000∣0.
The last row reads 0=0, but the row above reads 0=3. So there is no solution: the first and third planes are the same, and the second is parallel to them.
5Infinitely many solutions: the general solution
When the reduction ends in 0=0, choose one unknown to be a parameter, usually λ. Write the others in terms of it.
General solution = one formula that gives every solution as λ runs over the real numbers.
Worked example 2. Paper 1. Show that the system below has infinitely many solutions, and find the general solution.
x−y+4z=32x+y+5z=9x+5y−2z=9
R2−2R1: 3y−3z=3, so y−z=1R3−R1: 6y−6z=6, so y−z=1the two reduced rows are the same, so the third equation adds nothing: 0=0, infinitely many solutionslet z=λ: y=1+λx=3+y−4z=3+1+λ−4λ=4−3λgeneral solution: x=4−3λ,y=1+λ,z=λ,λ∈R
Check with λ=1, giving (1,2,1): 1−2+4=3, 2+2+5=9, 1+10−2=9.
As a vector, (x,y,z)=(4,1,0)+λ(−3,1,1). This is the vector equation of a line (AHL 3.14). The three planes share one line, like pages meeting at a book's spine (a sheaf, Figure 4(b)).
Other parameter choices look different but describe the same line: y=μ gives z=μ−1, x=7−3μ.
Any valid parametrisation is correct. Pick the free unknown that avoids fractions.
What the GDC shows: enter the augmented matrix of Worked example 2 and apply rref. It gives
1000103−10410
The rows say x+3z=4 and y−z=1. The third column has no leading 1, so z is free. Set z=λ: x=4−3λ, y=1+λ, the same answer.
If two rows collapse to zeros, two unknowns are free and need two parameters.
Example: x−2y+3z=4, 3x−6y+9z=12, −2x+4y−6z=−8. Set y=λ, z=μ: x=4+2λ−3μ. The solutions fill a whole plane, because the three planes are one.
6No solution: an inconsistent system
Change one number in Worked example 2 and the picture changes.
Worked example 3. Paper 1. Show that the following system has no solution.
x−y+4z=32x+y+5z=9x+5y−2z=15
R2−2R1: 3y−3z=3, so y−z=1R3−R1: 6y−6z=12, so y−z=2subtract: 0=1, which is impossible
The reduced equations ask y−z to equal 1 and 2 at once. That is impossible, so the system is inconsistent. Say: "0=1 is impossible, so there is no solution". A GDC gives a last rref row 000∣1.
There are two kinds of arrangement with no common point. Figure 4 shows both.
Triangular prism (c). Every pair of planes meets in a line, but the three lines are parallel. This is Worked example 3: no two left-hand sides are multiples of each other.
Parallel planes (d). Two planes are parallel and distinct (or all three are), so they never meet whatever the third does. Example: 3x+y−2z=4 and 6x+2y−4z=5 have left sides in ratio 1:2 but constants that are not. No third equation can rescue the system.
To tell the kinds apart, compare left-hand sides. If none is a multiple of another, it is a prism.
Figure 4 · Three planes: a point, a line, or nothing
7Systems with a constant to find
The favourite Paper 1 question builds an unknown constant into the system and asks when the solution stops being unique. Reduce as usual, carrying the constant along.
Worked example 4. Paper 1. Consider the system
x+2y+z=32x+y−z=0x−y+kz=m
(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.
R2−2R1: −3y−3z=−6, so y+z=2R3−R1: −3y+(k−1)z=m−3R3+3(y+z=2): (k+2)z=m+3(a) the solution is unique unless the coefficient k+2=0: k=−2(b) with k=−2 the last row is 0=m+3infinitely many solutions when m+3=0: m=−3 (and no solution when m=−3)let z=λ: y=2−λ,x=3−2y−z=3−4+2λ−λ=λ−1general solution: x=λ−1,y=2−λ,z=λ,λ∈R
Figure 5 lays out the decision. A coefficient that can be zero splits the question into "unique" (not zero) and "not unique" (zero). The second case splits on whether the right-hand side is also zero. For k=−2, z=k+2m+3; back-substitute for x and y.
Figure 5 · How the answer depends on k and m
When the constant sits in several places, the last coefficient is often a quadratic. Each factor gives one critical value.
Worked example 5. Paper 1. Consider, for a∈R,
x−3y+2z=23x−y+az=7x+ay+z=3
(a) Show that, after elimination, the last equation can be written (a−5)(a+2)z=a−5. (b) Hence find the values of a for which there is not a unique solution, and say what happens for each.
R2−3R1: 8y+(a−6)z=1R3−R1: (a+3)y−z=18(R3 new)−(a+3)(R2 new): [−8−(a+3)(a−6)]z=8−(a+3)(−a2+3a+10)z=5−a, that is −(a−5)(a+2)z=−(a−5)(a−5)(a+2)z=a−5(b) not unique when (a−5)(a+2)=0: a=5 or a=−2a=5: 0=0, so infinitely many solutionsa=−2: 0=−7, so no solution
You never divided by (a−5)(a+2). You asked when it is zero and tested the right-hand side only there. For every other a, z=a+21.
Inspection can be quicker. If two equations have proportional left sides, there is no unique solution. The right sides then decide.
Example: 2x−3y+z=6 and 4x−6y+kz=9. Proportional left sides need k=2. The constants are not in the ratio 1:2, so k=2 means no solution.
8Solving with technology
On Paper 2 the GDC does the arithmetic, and the guide expects you to use it.
A simultaneous-equation solver finds a unique solution directly. Enter coefficients and constants row by row. Otherwise it usually just reports "no solution" or "infinite solutions".
rref (reduced row-echelon form) of the augmented matrix gives the fully reduced grid.
Any row 000∣1 means inconsistent, whatever else the grid shows.
With no such row, a row of all zeros means infinitely many. The other rows give the general solution once you set the free unknown to λ, as in section 6.
Worked example 6. Paper 2. At a weekend market a stall sells jars of jam, honey and chutney. On Friday it sold 23 jars of jam, 14 of honey and 18 of chutney, taking €262.50. On Saturday it sold 31, 9 and 26, taking €290.25. On Sunday it sold 17, 22 and 12, taking €272.50. Find the price of each kind of jar. (Invented data.)
let the prices in euros be j, h and c23j+14h+18c=262.531j+9h+26c=290.2517j+22h+12c=272.5GDC solver: j=3.40, h=7.25, c=4.60
A jar of jam costs €3.40, honey €7.25 and chutney €4.60. Check Sunday by hand: 57.8+159.5+55.2=272.5.
If a solver reports "no solution" to a question that must have an answer, suspect a mistyped entry and re-enter the matrix. Write down the equations you entered. They show your method, so a typing slip need not cost the whole question.
9Setting the system up
On Paper 3 the set-up is often a part of its own.
Name the unknowns.
Turn each given fact into one equation.
Check you have as many independent equations as unknowns.
Solve.
A formula with three unknown constants needs three given values.
Worked example 7. Paper 3 style. The graph of f(x)=ax2+bx+c passes through (−2,−16), (1,2) and (3,4). Find f(x).
each point must satisfy f(x)=ax2+bx+cf(−2)=−16: 4a−2b+c=−16f(1)=2: a+b+c=2f(3)=4: 9a+3b+c=4GDC solver: a=−1, b=5, c=−2f(x)=−x2+5x−2
Check: f(3)=−9+15−2=4.
Sequences: a term formula un=an2+bn+c with three known terms is the same problem. Each term is an equation in a, b, c (Try-it Q5).
Verifying: "Verify that (1,2,1) is a solution" means substituting into every equation, with the arithmetic shown.
Practice questions
13 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.