IB Analysis and Approaches HL · Systems of linear equations · Section 2 of 3

Gaussian elimination method

3 worked examples · By Álvaro López

Key idea

The Gaussian elimination method transforms a system into an equivalent one (with the same solutions) but in echelon form, where it is solved from the bottom up. Besides giving the solution, the last row tells you whether the system has one solution, infinitely many or none. In the IB exam it is the tool for justifying by hand what the calculator does not explain.

Equivalent systems

Two systems are equivalent if they have exactly the same set of solutions. The idea of the method is to replace the system with an equivalent one that is simpler each time, until the solution can be read almost by itself.

To avoid losing or inventing solutions, only three transformations are allowed. The rows are labelled F1, F2, F3 (the first, second and third equation).

The intuition: if two equalities are true at the same time, so is their sum, and from the sum you recover the original by subtracting. Multiplying by would destroy information (the equation would become regardless of anything), which is why it is forbidden. When an operation mixes rows, the row that changes is the one on the left of the arrow; the other one stays as it was.

What we are aiming for: echelon form

The goal is for each equation to start with an unknown later than the previous one, so that the zeros form a staircase:

To achieve this, you work column by column: first use an equation with a convenient coefficient of (ideally ) to eliminate from the other two; then use the second one to eliminate from the third.

Write down each operation next to the row that changes (for example, ""). In the IB exam, steps with clear operations earn method marks even if there is an arithmetic slip later.

How each type is recognised in echelon form

A row of the form (all coefficients zero) summarises the two extreme possibilities: it is true for any values of the unknowns only if .

Last row obtained What it means Type of system
with is fixed and, working backwards, so are and Consistent, unique solution
with An impossible equality Inconsistent: no solution
The equation adds no condition Consistent, infinitely many solutions

If with appears in any row, the system is inconsistent, whatever the other equations say.

In the third case there are fewer useful equations than unknowns, so some unknown is free and is given a parameter. The number of parameters depends on how many rows vanish completely:

  • one row (two useful equations): one parameter, . The solutions form a line of points .
  • two rows (only one useful equation): two parameters, and . The solutions form a plane.
  • three rows : all three unknowns are free (this happens only if all the coefficients and constant terms are zero).

In the system of this course, the usual case in the exam is the one with one parameter.

Abbreviated notation with the augmented matrix

As the unknowns only mark positions, the system can be written without them, using a table of coefficients and a bar before the constant terms. The row operations are identical:

It is just a faster way of writing. The column of holds its coefficients, that of its own, that of its own, and what lies to the right of the bar are the constant terms. A row is equivalent to .

To see how the procedure works with the different types of system, use the three examples below. To recognise systems and their geometric interpretation, review linear equations and systems. When an unknown letter appears in the coefficients, move on to systems with a parameter.

Worked examples

Example 1 Basic

A system with a unique solution

Solve the following system by Gaussian elimination:

Solution

The first row already has coefficient for . We eliminate from the other two rows:

The equivalent system is

We eliminate from F3 without fractions, with :

The row becomes . The echelon system is

Back substitution:

  • From : .
  • From : , so .
  • From : , so .

Check in the original F2: . Correct. In the original F3: . Correct.

The last coefficient is non-zero, so the system is consistent with a unique solution, namely .

Example 2 Medium

A system with no solution

Investigate the following system and solve it, if possible:

Classify it as consistent with a unique solution, consistent with infinitely many solutions, or inconsistent.

Solution

We write the augmented matrix and eliminate from F2 and F3:

The rows F2 and F3 have the same coefficients in and but different constant terms. Subtracting: :

The last row says , that is, , which is impossible. No triple satisfies the three equations at once.

The system is inconsistent: it has no solution.

Example 3 Hard

A system with infinitely many solutions

Consider the system

a) Reduce the system to echelon form and classify it as SCD, SCI or SI.

b) Find the general solution, using as the parameter and .

c) Among all the solutions, find the one that satisfies .

Solution

a) We eliminate from F2 and F3 using the first row:

The third row is twice the second. We do :

The row becomes . The echelon system is

There is a row and none of the form with : the system is consistent with infinitely many solutions, with useful equations and one free parameter.

b) We take . From the second row, , so . From the first, , that is , so . The general solution is

Check in the original F3: . Correct for any .

c) We impose :

Then .

In the exam: when you obtain the row , write the conclusion "consistent system with infinitely many solutions" and give the general solution with its parameter; giving only one particular solution does not count as solving the system. If instead of you had with , the answer would be "inconsistent".

Common mistakes

Summary

  • Two systems are equivalent if they have the same solutions. You move from one to another with three operations: swapping rows, multiplying a row by a non-zero number, and adding to a row a multiple of another ().
  • Goal: echelon form (the zeros form a staircase). Eliminate from F2 and F3, then from F3; then solve by back substitution.
  • Last row with : unique solution. Row with : inconsistent. Row : consistent with infinitely many solutions.
  • One row gives one parameter; two rows give two parameters ( and ).
  • The augmented matrix is a shorthand: you operate on its rows exactly as on the equations.
  • Paper 2: the GDC solves systems with a unique solution; with infinitely many solutions or none you must reason by hand. Paper 1: everything by hand, writing down the operations.
Maths classes in Aldaia and online

Want to work on it together?

Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.

Message us on WhatsApp