In this guide
← Maths AI guides

Number & algebra · AI SL & HL

Systems of linear equations

Solve several equations together and recognise whether they have a unique solution, no solution or infinitely many solutions.

Course focus: AI SL & HL: use technology to support calculation, show the mathematical setup and interpret the result in its context. Additional HL methods are labelled below.

Before you start: Linear equations, elimination and substitution.

Start with a small example

Build it from the beginning

A simultaneous solution satisfies every constraint at once. AI SL uses technology to solve systems up to three unknowns; elimination is a useful way to see what the calculator is doing. Always substitute the result into the original relationships.

A first walkthrough

Solve \(x+y=8\) and \(x-y=2\).

  1. The calculator simultaneous-equation tool uses coefficient rows (1,1,8) and (1,-1,2), in the order the tool requests.
  2. Alternatively, add the equations: \(2x=10\), so \(x=5\).
  3. Then \(y=3\); both original equations check.
Try the practice ladder after learning the methods ↓

The foundations behind the method

Understand what the symbols mean

A pair of linear equations represents two lines. One intersection means one solution; parallel distinct lines mean none; coincident lines mean infinitely many. In three variables, think of planes. Elimination changes the equations while preserving their common solutions when the row operations are reversible.

How the ideas connect

An eliminated row such as \(0=5\) is a contradiction, whereas \(0=0\) contains no new information. If a parameter appears in a prospective divisor, handle the case when it is zero before dividing. A zero determinant rules out a unique solution, but does not alone distinguish no solutions from infinitely many.

01

Start with the idea

Build your understanding

A simultaneous solution must satisfy every equation at once. Elimination turns that shared requirement into simpler equations, but special parameter values can change whether the system has one solution, many solutions or none.

Row equivalence

Adding a multiple of one equation to another preserves the common solutions. Dividing by an expression involving a parameter may not be valid for every parameter value.

Geometric interpretation

Two lines may cross, coincide or be parallel. In three dimensions, plane configurations create analogous distinctions; no individual equation supplies the full intersection.

Compare the approaches

Choose by the information in the question, rather than the formula you recognise first.

A nonzero pivot

When it helpsContinue elimination and solve the remaining unknown.

Check before using itKeep the parameter restrictions attached to any division.

A zero pivot

When it helpsReturn to the unsimplified equations for that case.

Check before using itA true identity suggests dependence; a contradiction means inconsistency.

Your method plan

  1. Eliminate without losing exceptional parameter values.
  2. Separate cases before dividing by an expression that can vanish.
  3. Substitute solutions into all original equations.
02

Learn the methods

Learn step by step

1. Eliminate systematically

Align the variables in the same order. Multiply equations to give matching coefficients, then subtract to remove one variable. For three variables, produce two equations in two variables, solve those, and substitute back. Record each operation so arithmetic errors can be traced.

Two-variable elimination

Why this formula works

Multiply the first equation by e and the second by b, then subtract. The y-terms cancel. The remaining x coefficient \(ae-bd\) determines whether that elimination fixes x uniquely.

The formula

From \(ax+by=c\) and \(dx+ey=f\), eliminating y gives \((ae-bd)x=ce-bf\). A unique solution requires \(ae-bd\ne0\).

Quick example

For \(x+y=3\) and \(2x-y=0\), elimination gives \(3x=3\), so \(x=1\) and \(y=2\). Here \(ae-bd=-3\ne 0\).

Worked example: Three unknowns

Solve \(x+y+z=6\), \(x-y+z=2\) and \(2x+y-z=3\).

  1. Subtract the second equation from the first: \(2y=4\), so \(y=2\).
  2. Substitute into the first: \(x+z=4\). Substitute into the third: \(2x-z=1\).
  3. Add the last two equations: \(3x=5\), so \(x=\frac{5}{3}\) and \(z=\frac{7}{3}\).
  4. Check all three original equations, especially the minus sign on z.

2. Geometric meaning

In two variables equations represent lines; in three variables they represent planes. A unique common point gives a unique solution. Parallel distinct lines cannot meet, while identical lines share all their points. Three planes may meet in a point, a line or no common point even when each pair meets.

Intersecting, parallel and coincident lines

One solutionNo solutionInfinitely many
Two equations may have one intersection, none, or an entire shared line of solutions. A dependent equation adds no new restriction.

3. Use technology responsibly

A numerical solver may be useful on a calculator paper, but input each equation correctly and verify the output by substitution. An error message alone is not an explanation of the number of solutions.

4. Unique, inconsistent and dependent equations

Two nonvertical lines with different slopes meet at one point. Equal slopes with different intercepts give no solution; identical equations give infinitely many. During elimination, a contradiction signals inconsistency, while an identity only shows that one equation repeats existing information. In parameter problems, do not divide by a coefficient that might vanish; separate that value and return to the original equations.

Parametric family

Why this formula works

If equations are dependent, one equation may leave a variable free. A parameter names every allowed value of that variable, giving the entire solution set instead of an arbitrary one-point example.

The formula

If one independent equation remains, choose a free variable t and express the other variables in terms of t. State t is real when appropriate.

Quick example

For \(x+y=4\), take \(y=t\) and \(x=4-t\). Each real t gives one solution; the duplicate equation \(2x+2y=8\) adds no restriction.

Unique, inconsistent and dependent equations

Why this formula works

Elimination preserves the same solution set through reversible row operations. If all variable terms cancel, the remaining constant equality decides whether the equations agree or contradict each other.

The formula

\(0=c\) with \(c\ne 0\) signals no solution; \(0=0\) signals a redundant equation, with remaining constraints still to be analysed.

Quick example

\(x+y=3\) and \(2x+2y=8\) reduce to \(0=2\) and have no solution. Replacing 8 by 6 makes the second equation redundant.

Worked example: A parameter changes the solution type

Classify \(x+y=2\) and \(2x+ky=4\) for real k.

  1. Subtract twice the first equation: \((k-2)y=0\).
  2. If \(k\ne 2\), \(y=0\) and \(x=2\), a unique solution.
  3. If \(k=2\), both equations describe the same line. All \((x,y)=(2-t,t)\), t real, solve them.
Quick formula reference

For revision once you understand the methods above. Check the conditions before using a formula.

Two-variable elimination

From \(ax+by=c\) and \(dx+ey=f\), eliminating y gives \((ae-bd)x=ce-bf\). A unique solution requires \(ae-bd\ne0\).

Return to the explanation →

Parametric family

If one independent equation remains, choose a free variable t and express the other variables in terms of t. State t is real when appropriate.

Return to the explanation →

Unique, inconsistent and dependent equations

\(0=c\) with \(c\ne 0\) signals no solution; \(0=0\) signals a redundant equation, with remaining constraints still to be analysed.

Return to the explanation →

Learn to diagnose an error

Spot the mistake

The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.

Incorrect reasoning

After elimination gives \(0=0\), set every variable equal to zero.

Explain and repair the mistake

The row imposes no restriction. For \(x+y=3\) and \(2x+2y=6\), write \(y=t,x=3-t\), with real t. The family describes the whole shared line.

03

Connect and apply

Put the ideas together

A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.

Worked application

A parameter controls the intersection

HL extension

Solve \(x+y=3\) and \(2x+ky=6\), distinguishing parameter values.

  1. Subtract twice the first equation from the second: \((k-2)y=0\). This is valid for every real \(k\).
  2. If \(k\ne2\), division gives \(y=0\), then \(x=3\). This is the unique intersection.
  3. If \(k=2\), the second equation is twice the first. Every point with \(x+y=3\) is a solution, for example \((x,y)=(3-t,t)\).
  4. If the second right-hand side were instead 7 while \(k=2\), elimination would give \(0=1\): no solution. The zero pivot alone does not identify which exceptional outcome occurs.
Pause and explain

Why can you not divide immediately by k−2?

Check your reasoning

It would exclude the exact case where the structure changes. Analyse the zero-factor case separately before giving a divided expression.

Common mistakes and how to avoid them

  • A zero coefficient requires a separate case before division.
  • \(0=0\) does not on its own prove the entire system has infinitely many solutions.
  • Always substitute your result into every original equation.
04

Practise independently

Build confidence, then apply it

Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.

  1. 1

    Build confidence

    Solve \(2x+y=11\) and \(x-y=1\).

    Need a starting point?

    Add the equations to eliminate y.

    Show the worked solution
    1. \(3x=12\), so \(x=4\).
    2. Then \(y=3\); check \(8+3=11\).
  2. 2

    Apply and explain

    A solver returns (4,3). How do you check that the entries were assigned to the right variables?

    Need a starting point?

    Use the original constraints rather than the calculator screen alone.

    Show the worked solution
    1. Substitute x=4 and y=3 into both original equations.
    2. If one fails, review variable order and entered signs; a plausible pair is not enough.
  3. 3

    Check your understanding

    Classify \(x+y=3\) and \(2x+2y=7\).

    Show the worked solution

    Subtract twice the first equation to obtain \(0=1\). There is no common solution.

  4. 4

    Use the method

    Solve \(x+y=4\) and \(2x+2y=8\). Is the solution unique?

    Show the worked solution

    No. The second equation is twice the first. All pairs \((x,y)=(4-t,t)\), t real, solve the system.

  5. 5

    Combine the skills

    Unique, inconsistent and dependent equations

    Why does the step \(y=0\) from \((k-2)y=0\) need a case split?

    Show the worked solution

    It divides by \(k-2\). That expression is zero when \(k=2\), in which case the equation imposes no restriction on y.

Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.

Using these methods in exam questions

AI Paper 1

GDC required

Short-response questions still need mathematical setup and interpretation. Choose the correct tool, enter the model or data carefully, and check units and rounding.

AI Paper 2

GDC required

Extended-response questions connect several steps. Keep intermediate values at full precision and explain how each result answers the context.

For this topic: Keep algebraic transformations visible. State restrictions before cancelling or taking logarithms, and check whether the question needs an exact expression or a rounded value.

HL only · GDC required

Paper 3: build a connected argument

Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.

  1. Identify what the first part establishes and record the conditions under which it holds.
  2. When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
  3. Check the conclusion against an earlier numerical case and explain its meaning or limitation.

For the first-assessment-2021 courses. IB assessment reference ↗

Find a specific method or formula

Now practise the method

If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.

Practise this subtopic →

Want a broader practice session? Explore IB Maths AI SL practice questions →Explore IB Maths AI HL practice questions →Try free IB Maths exam-style questions and worked solutions →

Original Arc Practice teaching notes for Maths AI. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.