Skip to content
IB Diploma ProgrammeSL & HL

Systems of linear equations

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Systems of linear equations notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Systems of linear equations notes as text: skim, search, and jump between subtopics.

~10 min read

1. Solving a system by elimination

A system of linear equations is a set of equations that must all be true at once. This note covers at most three equations in three unknowns.

To solve by hand, eliminate one unknown from a pair of equations, then eliminate the same unknown from a different pair. This leaves two equations in two unknowns. Solve those, then substitute back to find the third unknown.

When the system has a unique solution, there is exactly one value for each unknown. Check it in all three original equations.

begincases a₁x+b₁y+c₁z=d₁ a₂x+b₂y+c₂z=d₂ a₃x+b₃y+c₃z=d₃ endcases

Worked example 15 marks

Find the solution of the system of equations

x+y+z=6

2x-y+z=3

x+2y-z=2

  1. 1

    add the first and third equations to eliminate z: 2x+3y=8 (M1) [1]

  2. 2

    add the second and third equations to eliminate z: 3x+y=5 (A1) [1]

  3. 3

    from y=5-3x: 2x+15-9x=8 (M1) [1]

  4. 4

    x=1 and y=2 (A1) [1]

  5. 5

    z=6-1-2=3 (A1) [1]

2. Row reduction and the GDC

A system can be written as an augmented matrix: one row per equation, one column per unknown, and a last column for the constants. Write a coefficient of 0 where an unknown is missing.

In row reduction you change the rows without changing the solutions. You may swap two rows, multiply a row by a non-zero number, or add a multiple of one row to another. Aim for zeros below the leading entries, then back-substitute from the last row.

With a GDC, enter the augmented matrix and use the reduced row echelon form. For a unique solution the left three columns become the identity matrix, and the last column holds x, y and z. Both an algebraic and a technological method are expected.

(beginarrayccc|ca₁&b₁&c₁&d₁ a₂&b₂&c₂&d₂ a₃&b₃&c₃&d₃endarray)

Worked example 15 marks

Use row reduction to solve the system of equations

2x+y-z=3

x-y+2z=1

x+2y+z=6

  1. 1

    augmented matrix (beginarrayccc|c2&1&-1&3 1&-1&2&1 1&2&1&6endarray) (A1) [1]

  2. 2

    swap rows 1 and 2, then use R₂-2R₁ and R₃-R₁ (M1) [1]

  3. 3

    rows become 0 3 -5mid 1 and 0 3 -1mid 5, then R₃-R₂ gives 0 0 4mid 4 (A1) [1]

  4. 4

    z=1, then 3y-5=1 gives y=2 (A1) [1]

  5. 5

    x-2+2=1 gives x=1 (A1) [1]

3. Inconsistent systems: no solution

A system has one of three outcomes: a unique solution, an infinite number of solutions, or no solution. A system with no solution is inconsistent.

While eliminating, you may reach a statement that is impossible, such as 0=5. In an augmented matrix this is a row of the form 0 0 0mid k with k≠0. The equations contradict each other, so no values of x, y and z satisfy all three.

State the conclusion in words: the system is inconsistent and has no solution.

0x+0y+0z=k, k≠0 ⇒ no solution

Worked example 13 marks

Show that the system of equations

x+y+z=4

2x+y-z=1

3x+2y=7

is inconsistent.

  1. 1

    add the first two equations to eliminate z (M1) [1]

  2. 2

    3x+2y=5 (A1) [1]

  3. 3

    but the third equation says 3x+2y=7, and 5≠7, so the equations contradict each other: the system is inconsistent and has no solution (R1)(AG) [1]

4. Infinite solutions and the general solution

Sometimes elimination produces 0=0, or a row of zeros 0 0 0mid 0. One equation then gives no new information, so there are fewer independent equations than unknowns. If no other row gives a contradiction, the system has an infinite number of solutions.

To describe them, give a general solution. Let one unknown equal a parameter, such as z=λ. Then write the other unknowns in terms of λ. Every value of λ gives one solution.

The link to planes is in AHL 3.18: the solutions of three equations are where three planes meet.

z=λ, x=f(λ), y=g(λ), λ∈R

Worked example 15 marks

Find the general solution of the system of equations

x+y+z=6

x-y+2z=5

2x+3z=11

  1. 1

    add the first two equations to eliminate y (M1) [1]

  2. 2

    2x+3z=11 (A1) [1]

  3. 3

    this is the third equation, so it gives no new information: infinite solutions (R1) [1]

  4. 4

    let z=λ: x=(11-3λ)/2 (A1) [1]

  5. 5

    y=6-x-z=(1+λ)/2 (A1) [1]

Recap

  • A system of up to three equations in three unknowns has a unique solution, an infinite number of solutions or no solution.
  • Eliminate the same unknown from two different pairs of equations, solve the pair, then substitute back.
  • Augmented matrix: one row per equation, with 0 for a missing unknown. Row reduction keeps the solutions the same.
  • A row 0 0 0mid k with k≠0 means no solution: the system is inconsistent.
  • A row of zeros, with no contradiction in another row, means infinitely many solutions. Let one unknown be λ and write the others in terms of it.
  • On a GDC, enter the augmented matrix and read the reduced row echelon form.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the name given to a system of equations that has no solution.1 mark
    Answer
    1. inconsistent (A1).

    Trap: "Impossible" or "unique" is not the term. A system with no solution is inconsistent.

  2. Do not use a calculator. Write down the augmented matrix for the system 2x-y+3z=4 x+2z=1 3y-z=52 marks
    Answer
    1. coefficients with 0 for a missing unknown: (beginarrayccc|c2&-1&3&4 1&0&2&1 0&3&-1&5endarray) (A1)(A1).

    Trap: The second equation has no y and the third has no x. Each still needs a 0 in its place.

  3. After row reduction, the last row of an augmented matrix is 0 0 0mid 3. Which statement is correct? A. x=y=z=3 B. There are infinitely many solutions. C. There is no solution. D. x=y=z=01 mark
    Answer
    1. C: the row says 0=3, which is impossible, so the system is inconsistent.
    2. A and D read the last column as a solution. B needs the last entry to be 0.

    Trap: The 3 is a constant, not a value of an unknown. A row of zeros with a non-zero constant is a contradiction.

  4. Do not use a calculator. Solve the system x+y=3 y+z=5 x+z=43 marks
    Answer
    1. add all three equations: 2x+2y+2z=12 (M1).
    2. x+y+z=6 (A1).
    3. z=6-3=3, x=6-5=1, y=6-4=2 (A1).

    Trap: Adding the three equations gives 2x+2y+2z=12. Forgetting to halve gives x+y+z=12, and every value found from it is wrong.

  5. Use your GDC to solve the system 3x+2y-z=1 x-y+2z=9 2x+y+z=6 State what you enter and what you read off.3 marks
    Answer
    1. enter the 3×4 augmented matrix (beginarrayccc|c3&2&-1&1 1&-1&2&9 2&1&1&6endarray) and use the reduced row echelon form (M1).
    2. identity matrix on the left, so the solution is unique: x=2, y=-1 (A1).
    3. z=3 (A1).

    Trap: A coefficient of -1 entered as +1 changes the system. Copy every sign into the matrix.

  6. Do not use a calculator. Show that the system x+2y+z=5 2x+y-z=1 3x+3y=7 is inconsistent.3 marks
    Answer
    1. add the first two equations: 3x+3y=6 (M1)(A1).
    2. the third equation says 3x+3y=7, and 6≠7, so the equations contradict each other (R1).

    Trap: Stating "no solution" with no working earns nothing in a *show that* question. Show the contradiction.

  7. A shop sells pencils, pens and rulers. Five pencils, 3 pens and 2 rulers cost 770 cents. Two pencils, 4 pens and 1 ruler cost 590 cents. Three pencils, 1 pen and 4 rulers cost 810 cents. Determine the price of one pencil, one pen and one ruler in cents. Use your GDC.4 marks
    Answer
    1. let p, q and r be the prices: 5p+3q+2r=770, 2p+4q+r=590, 3p+q+4r=810 (M1)(A1).
    2. enter the augmented matrix and use the reduced row echelon form (M1).
    3. pencil 40 cents, pen 90 cents, ruler 150 cents (A1).

    Trap: Keep the order p, q, r the same in every row. Swapping the columns in one row gives the wrong prices.

  8. Do not use a calculator. The system x+y+z=3 x-y+z=1 2x+2z=k is given, where k is a constant. (a) Show that the system is inconsistent when k=5. [2] (b) Find the general solution when k=4. [3]5 marks
    Answer
    1. (a) add the first two equations: 2x+2z=4 (M1).
    2. 4≠5, so the system is inconsistent (R1).
    3. (b) subtract the second equation from the first: 2y=2, so y=1 (M1)(A1).
    4. let z=λ: x=2-λ, y=1, z=λ (A1).

    Trap: When k=4 the third equation repeats the first two, so y is fixed and only x and z share a parameter. Taking y=λ is wrong.

  9. Do not use a calculator. The system x+y+z=2 x+2y+3z=5 2x+3y+az=b is given, where a and b are constants. (a) Find the value of a for which the system does not have a unique solution. [4] (b) For this value of a, find the value of b for which the system has an infinite number of solutions, and find the general solution. [4]8 marks
    Answer
    1. (a) second minus first, and third minus twice the first: y+2z=3 and y+(a-2)z=b-4 (M1)(A1).
    2. subtract: (a-4)z=b-7 (A1).
    3. z=(b-7)/(a-4) needs a-4≠0, so there is no unique solution when a=4 (A1).
    4. (b) when a=4 the equation is 0z=b-7, which holds only when b=7 (M1)(A1).
    5. let z=λ: y=3-2λ, then x=2-y-z=λ-1 (A1)(A1).

    Trap: Dividing by a-4 without asking whether it can be zero hides the case a=4, where there is either no solution or an infinite number of solutions, depending on b.

  10. A school buys x small, y medium and z large storage boxes, 20 boxes in total. A small box holds 1 kg, a medium box 2 kg and a large box 4 kg, and together the boxes hold 50 kg. A small box costs USD 3, a medium box USD 4 and a large box USD 6, and the total cost is USD 90. (a) Write down three equations in x, y and z. [2] (b) Show that the system has an infinite number of solutions. [3] (c) Taking z=λ, find the general solution. [2] (d) The school buys at least one box of each size. Determine the possible values of z. [3]10 marks
    Answer
    1. (a) x+y+z=20, x+2y+4z=50 (A1), 3x+4y+6z=90 (A1).
    2. (b) second minus first: y+3z=30 (M1).
    3. third minus three times the first: y+3z=30 (A1).
    4. the same equation twice, so only two independent equations in three unknowns: an infinite number of solutions (R1)(AG).
    5. (c) y=30-3λ (A1), x=20-y-z=2λ-10 (A1).
    6. (d) x≥1: 2λ-10≥1, so λ≥5.5 (M1).
    7. y≥1: 30-3λ≥1, so λ≤9.67 (M1).
    8. z is a whole number, so z=6, 7, 8 or 9 (A1).

    Trap: The general solution allows any real λ, but numbers of boxes are positive whole numbers. Stopping at λ≥5.5, or leaving out y≥1, gives impossible orders.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
0=0 means there is no solution0=0 gives no new information, so with no contradiction elsewhere there are infinitely many solutions
A row 0 0 0mid5 means x=y=z=50=5 is impossible, so the system is inconsistent and has no solution
The solution is x=(11-3z)/2 and y=(1+z)/2Let z=λ and give a general solution in terms of λ

Frequently asked questions

How do I solve three simultaneous equations in three unknowns by hand?
Eliminate one unknown from two different pairs of equations. This leaves two equations in two unknowns, which you solve. Then substitute back to find the third unknown, and check the solution in all three original equations. For x + y + z = 6, 2x - y + z = 3 and x + 2y - z = 2 the solution is x = 1, y = 2 and z = 3.
How do I use row reduction on an augmented matrix with a GDC?
Write one row per equation, with a 0 for a missing unknown and the constants in the last column. Swap rows, multiply a row by a non-zero number, or add a multiple of one row to another, to get zeros below the leading entries. Back-substitute. On a GDC, enter the augmented matrix and read the reduced row echelon form. Both an algebraic and a technological method are expected.
What does a row of zeros with a non-zero number on the right mean?
A row 0 0 0 mid k with k ≠ 0 means 0 = k, which is impossible. The equations contradict each other, so no values of x, y and z satisfy all three. The system is inconsistent and has no solution. State this conclusion in words.
How do I give the general solution when a system has infinitely many solutions?
Let one unknown equal a parameter, such as z = λ, then write the other unknowns in terms of λ. Every value of λ gives one solution. A row of zeros with no contradiction in another row means infinitely many solutions. For one system the result is x = (11 - 3λ)/2 and y = (1 + λ)/2.
How do I show that a system of equations is inconsistent?
Eliminate unknowns until two equations give a contradiction. Adding the first two equations of one system gives 3x + 3y = 6, while the third equation says 3x + 3y = 7. Because 6 ≠ 7, the equations contradict each other, so the system is inconsistent and has no solution. Show the contradiction in full.
Why do I lose the marks when I write only 'no solution' in a show that question?
In a *show that* question, stating 'no solution' with no working earns nothing. Add the two equations to eliminate z, reach 3x + 3y = 6, and then compare it with the third equation 3x + 3y = 7. Since 6 ≠ 7, the equations contradict each other, so the system is inconsistent.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters