Educerie

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

  1. HL Solve a system of three equations in three unknowns by row reduction, without a calculator.
  2. 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.
  3. HL Find the general solution of a system with infinitely many solutions.
  4. HL Show that a system is inconsistent and has no solution.
  5. HL Write down a system from a context or from given points, and solve it with a GDC.
  6. HL Interpret the solution of a system geometrically as an arrangement of planes.

In the exam. Paper 1 (no calculator): solve a 3×33 \times 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=5x + y = 5 and 3x+3y=153x + 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 xx and yy 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 (a) one solution x y x + y = 3 2x − y = 0 (1, 2) (b) no solution x y x + y = 3 x + y = 1 (c) infinitely many x y x + y = 3 2x + 2y = 6 (a) The lines cross once: one solution. (b) Parallel lines never meet: no solution, the system is inconsistent. (c) The equations describe the same line: every point on it is a solution, infinitely many.
Figure 1 · Two equations in two unknowns: three possibilities
  • One solution. x+y=3x + y = 3 and 2x−y=02x - y = 0 cross at (1,2)(1, 2).
  • No solution. x+y=3x + y = 3 and x+y=1x + y = 1 are parallel. Subtracting one from the other gives 0=20 = 2, which cannot be. The system is inconsistent.
  • Infinitely many solutions. 2x+2y=62x + 2y = 6 is x+y=3x + y = 3 doubled. Both equations describe the same line, and every point on it is a solution.

A quick test

  • If the coefficients of xx and yy 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=74x + py = 7 and 6x+9y=56x + 9y = 5. Parallel needs 4:6=p:94 : 6 = p : 9, so p=6p = 6. But 7:57 : 5 is not 4:64 : 6. So p=6p = 6 gives no solution; every other pp 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 xx from the other two. Use the new second equation to remove yy from the third. The system is then triangular: solve from the bottom up.

Worked example 1. Paper 1. Solve the system

x+2y−z=1x + 2y - z = 12x+y+z=82x + y + z = 83x−y+2z=93x - y + 2z = 9
R2−2R1: (2x+y+z)−2(x+2y−z)=8−2  →  −3y+3z=6, so y−z=−2R_{2} - 2R_{1}\text{: } (2x + y + z) - 2(x + 2y - z) = 8 - 2 \;\to\; -3y + 3z = 6\text{, so } y - z = -2R3−3R1: (3x−y+2z)−3(x+2y−z)=9−3  →  −7y+5z=6R_{3} - 3R_{1}\text{: } (3x - y + 2z) - 3(x + 2y - z) = 9 - 3 \;\to\; -7y + 5z = 6substitute y=z−2 into −7y+5z=6: −7z+14+5z=6, so −2z=−8\text{substitute } y = z - 2 \text{ into } -7y + 5z = 6\text{: } -7z + 14 + 5z = 6\text{, so } -2z = -8z=4, then y=z−2=2, then x=1−2y+z=1−4+4=1z = 4\text{, then } y = z - 2 = 2\text{, then } x = 1 - 2y + z = 1 - 4 + 4 = 1(x,y,z)=(1,2,4)(x, y, z) = (1, 2, 4)

Check in all three original equations: 1+4−4=11 + 4 - 4 = 1; 2+2+4=82 + 2 + 4 = 8; 3−2+8=93 - 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 xx, yy, zz 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 1 2 −1 1 2 1 1 8 3 −1 2 9 1 2 −1 1 0 −3 3 6 0 −7 5 6 1 2 −1 1 0 1 −1 −2 0 0 −2 −8 R2 − 2R1 R3 − 3R1 R2 ÷ (−3) R3 + 7 × new R2 last row: −2z = −8, so z = 4 second row: y − z = −2, so y = 2 first row: x + 2y − z = 1, so x = 1 Each row operation keeps the same solutions. The aim is zeros below the diagonal (shaded), so the last row holds one unknown and back-substitution does the rest: z = 4, then y = 2, then x = 1.
Figure 2 · Row reduction to triangular form

Two habits keep Paper 1 row reduction reliable.

  • Write each operation beside its row (R2−2R1R_{2} - 2R_{1}), 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=92x + 5z = 9 is the row 2 0 5∣92\ 0\ 5 \mid 9.

4Reading the last row

After reduction the last row has zeros under xx and yy. What is left decides the case, as Figure 3 summarises. Check impossible rows first.

Figure 3 · Read the last row after reduction ( 0 0 a | b ), a ≠ 0 one unknown found unique solution ( 0 0 0 | 0 ) an equation lost: 0 = 0 infinitely many: use a parameter ( 0 0 0 | b ), b ≠ 0 0 = b is impossible no solution: inconsistent Check every reduced row for 0 = b with b ≠ 0 first: one such row means no solution, whatever the others say.
Figure 3 · Read the last row after reduction

Last row az=baz = b with a≠0a \ne 0: unique solution. Any row 0=b0 = b with b≠0b \ne 0: no solution (the system is inconsistent), whatever the other rows say. Only if there is no such row does a 0=00 = 0 row mean infinitely many solutions.

  • 0=00 = 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=1x + y + z = 1, x+y+z=4x + y + z = 4, 2x+2y+2z=22x + 2y + 2z = 2. R2−R1R_{2} - R_{1} and R3−2R1R_{3} - 2R_{1} give 0 0 0∣30\ 0\ 0 \mid 3 and 0 0 0∣00\ 0\ 0 \mid 0.
    • The last row reads 0=00 = 0, but the row above reads 0=30 = 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=00 = 0, choose one unknown to be a parameter, usually λ\lambda. Write the others in terms of it.

General solution = one formula that gives every solution as λ\lambda 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=3x - y + 4z = 32x+y+5z=92x + y + 5z = 9x+5y−2z=9x + 5y - 2z = 9
R2−2R1: 3y−3z=3, so y−z=1R_{2} - 2R_{1}\text{: } 3y - 3z = 3\text{, so } y - z = 1R3−R1: 6y−6z=6, so y−z=1R_{3} - R_{1}\text{: } 6y - 6z = 6\text{, so } y - z = 1the two reduced rows are the same, so the third equation adds nothing: 0=0, infinitely many solutions\text{the two reduced rows are the same, so the third equation adds nothing: } 0 = 0\text{, infinitely many solutions}let z=λ: y=1+λ\text{let } z = \lambda\text{: } y = 1 + \lambdax=3+y−4z=3+1+λ−4λ=4−3λx = 3 + y - 4z = 3 + 1 + \lambda - 4\lambda = 4 - 3\lambdageneral solution: x=4−3λ, y=1+λ, z=λ, λ∈R\text{general solution: } x = 4 - 3\lambda,\ y = 1 + \lambda,\ z = \lambda,\ \lambda \in \mathbb{R}

Check with λ=1\lambda = 1, giving (1,2,1)(1, 2, 1): 1−2+4=31 - 2 + 4 = 3, 2+2+5=92 + 2 + 5 = 9, 1+10−2=91 + 10 - 2 = 9.

  • As a vector, (x,y,z)=(4,1,0)+λ(−3,1,1)(x, y, z) = (4, 1, 0) + \lambda(-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=μy = \mu gives z=μ−1z = \mu - 1, x=7−3μx = 7 - 3\mu.
    • 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

(103401−110000)\left(\begin{array}{ccc|c} 1 & 0 & 3 & 4 \\ 0 & 1 & -1 & 1 \\ 0 & 0 & 0 & 0 \end{array}\right)

The rows say x+3z=4x + 3z = 4 and y−z=1y - z = 1. The third column has no leading 1, so zz is free. Set z=λz = \lambda: x=4−3λx = 4 - 3\lambda, y=1+λy = 1 + \lambda, the same answer.

  • If two rows collapse to zeros, two unknowns are free and need two parameters.
    • Example: x−2y+3z=4x - 2y + 3z = 4, 3x−6y+9z=123x - 6y + 9z = 12, −2x+4y−6z=−8-2x + 4y - 6z = -8. Set y=λy = \lambda, z=μz = \mu: x=4+2λ−3μx = 4 + 2\lambda - 3\mu. 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=3x - y + 4z = 32x+y+5z=92x + y + 5z = 9x+5y−2z=15x + 5y - 2z = 15
R2−2R1: 3y−3z=3, so y−z=1R_{2} - 2R_{1}\text{: } 3y - 3z = 3\text{, so } y - z = 1R3−R1: 6y−6z=12, so y−z=2R_{3} - R_{1}\text{: } 6y - 6z = 12\text{, so } y - z = 2subtract: 0=1, which is impossible\text{subtract: } 0 = 1\text{, which is impossible}

The reduced equations ask y−zy - z to equal 11 and 22 at once. That is impossible, so the system is inconsistent. Say: "0=10 = 1 is impossible, so there is no solution". A GDC gives a last rref row 0 0 0∣10\ 0\ 0 \mid 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=43x + y - 2z = 4 and 6x+2y−4z=56x + 2y - 4z = 5 have left sides in ratio 1:21 : 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 (a) one point unique solution (b) a common line (a sheaf) line of solutions (c) a triangular prism each pair meets, but the three lines of meeting are parallel (d) two parallel planes the parallel pair never meets, so no point is on all three Each equation in three unknowns is a plane (AHL 3.18). (a) One common point: a unique solution. (b) All three share a line: infinitely many solutions. (c) and (d) No point on all three: no solution.
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=3x + 2y + z = 32x+y−z=02x + y - z = 0x−y+kz=mx - y + kz = m

(a) Find the value of kk for which the system does not have a unique solution. (b) For that value of kk, find the value of mm for which the system has infinitely many solutions, and find the general solution.

R2−2R1: −3y−3z=−6, so y+z=2R_{2} - 2R_{1}\text{: } -3y - 3z = -6\text{, so } y + z = 2R3−R1: −3y+(k−1)z=m−3R_{3} - R_{1}\text{: } -3y + (k-1)z = m - 3R3+3(y+z=2): (k+2)z=m+3R_{3} + 3(y + z = 2)\text{: } (k+2)z = m + 3(a) the solution is unique unless the coefficient k+2=0: k=−2\text{(a) the solution is unique unless the coefficient } k + 2 = 0\text{: } k = -2(b) with k=−2 the last row is 0=m+3\text{(b) with } k = -2 \text{ the last row is } 0 = m + 3infinitely many solutions when m+3=0: m=−3 (and no solution when m≠−3)\text{infinitely many solutions when } m + 3 = 0\text{: } m = -3 \text{ (and no solution when } m \ne -3\text{)}let z=λ: y=2−λ, x=3−2y−z=3−4+2λ−λ=λ−1\text{let } z = \lambda\text{: } y = 2 - \lambda,\ x = 3 - 2y - z = 3 - 4 + 2\lambda - \lambda = \lambda - 1general solution: x=λ−1, y=2−λ, z=λ, λ∈R\text{general solution: } x = \lambda - 1,\ y = 2 - \lambda,\ z = \lambda,\ \lambda \in \mathbb{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≠−2k \ne -2, z=m+3k+2z = \dfrac{m + 3}{k + 2}; back-substitute for xx and yy.

Figure 5 · How the answer depends on k and m (k + 2) z = m + 3 last row k ≠ −2 unique solution k = −2 0 = m + 3 m = −3: infinitely many m ≠ −3: no solution After reduction the last row reads (k + 2)z = m + 3. k ≠ −2 always gives one solution; k = −2 gives none unless m = −3 as well, when there are infinitely many.
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∈Ra \in \mathbb{R},

x−3y+2z=2x - 3y + 2z = 23x−y+az=73x - y + az = 7x+ay+z=3x + ay + z = 3

(a) Show that, after elimination, the last equation can be written (a−5)(a+2)z=a−5(a - 5)(a + 2)z = a - 5. (b) Hence find the values of aa for which there is not a unique solution, and say what happens for each.

R2−3R1: 8y+(a−6)z=1R_{2} - 3R_{1}\text{: } 8y + (a - 6)z = 1R3−R1: (a+3)y−z=1R_{3} - R_{1}\text{: } (a + 3)y - z = 18(R3 new)−(a+3)(R2 new): [−8−(a+3)(a−6)]z=8−(a+3)8(R_{3}\text{ new}) - (a + 3)(R_{2}\text{ new})\text{: } \left[-8 - (a+3)(a-6)\right]z = 8 - (a + 3)(−a2+3a+10)z=5−a, that is −(a−5)(a+2)z=−(a−5)(-a^{2} + 3a + 10)z = 5 - a\text{, that is } -(a-5)(a+2)z = -(a-5)(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=−2\text{(b) not unique when } (a-5)(a+2) = 0\text{: } a = 5 \text{ or } a = -2a=5: 0=0, so infinitely many solutionsa = 5\text{: } 0 = 0\text{, so infinitely many solutions}a=−2: 0=−7, so no solutiona = -2\text{: } 0 = -7\text{, so no solution}

You never divided by (a−5)(a+2)(a - 5)(a + 2). You asked when it is zero and tested the right-hand side only there. For every other aa, z=1a+2z = \dfrac{1}{a + 2}.

  • 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=62x - 3y + z = 6 and 4x−6y+kz=94x - 6y + kz = 9. Proportional left sides need k=2k = 2. The constants are not in the ratio 1:21 : 2, so k=2k = 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 0 0 0∣10\ 0\ 0 \mid 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 λ\lambda, 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 c\text{let the prices in euros be } j\text{, } h \text{ and } c23j+14h+18c=262.523j + 14h + 18c = 262.531j+9h+26c=290.2531j + 9h + 26c = 290.2517j+22h+12c=272.517j + 22h + 12c = 272.5GDC solver: j=3.40, h=7.25, c=4.60\text{GDC solver: } j = 3.40\text{, } h = 7.25\text{, } 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.557.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+cf(x) = ax^{2} + bx + c passes through (−2,−16)(-2, -16), (1,2)(1, 2) and (3,4)(3, 4). Find f(x)f(x).

each point must satisfy f(x)=ax2+bx+c\text{each point must satisfy } f(x) = ax^{2} + bx + cf(−2)=−16: 4a−2b+c=−16f(-2) = -16\text{: } 4a - 2b + c = -16f(1)=2: a+b+c=2f(1) = 2\text{: } a + b + c = 2f(3)=4: 9a+3b+c=4f(3) = 4\text{: } 9a + 3b + c = 4GDC solver: a=−1, b=5, c=−2\text{GDC solver: } a = -1\text{, } b = 5\text{, } c = -2f(x)=−x2+5x−2f(x) = -x^{2} + 5x - 2

Check: f(3)=−9+15−2=4f(3) = -9 + 15 - 2 = 4.

  • Sequences: a term formula un=an2+bn+cu_{n} = an^{2} + bn + c with three known terms is the same problem. Each term is an equation in aa, bb, cc (Try-it Q5).
  • Verifying: "Verify that (1,2,1)(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.