Systems of equations AA HL

A system of linear equations has one solution, infinitely many solutions or none, and the last line of your elimination tells you which. This page shows how to solve two and three equations by elimination, how to decide between the three cases, and how to write a general solution with a parameter when there are infinitely many. Work through the 2×2 section first, because the 3×3 section builds on it. Most of the working is exact, so practise it without a calculator.

Which method to use

Decide first how many equations and unknowns there are, then look at what the question asks: a single solution, the values of a letter that change the number of solutions, or a general solution.

The question hasUseNotes
Two equations, two unknowns and numbers onlyElimination: make one coefficient match, then add or subtractSubstitution also works when one equation already gives a variable. Check in the other equation
A letter in a coefficient and the words "no unique solution"Eliminate one variable, then find the value of the letter that makes its remaining coefficient zeroFor that value, look at the right-hand side: a non-zero number means no solution, and zero means infinitely many
A letter on the right-hand side, asking for no solution or infinitely manyMake the left-hand sides match, then compare the right-hand sidesThe same left-hand side with different right-hand sides is a contradiction. The same on both sides gives infinitely many
Three equations, three unknowns and one solution wantedEliminate the same variable from two different pairs, solve the resulting pair, then back-substituteNumber the equations so the steps can be followed. Check the answer in all three
Elimination that ends in 0=00=0Infinitely many solutions: let one variable equal a parameter tt and write the others in terms of ttThe general solution is a set of expressions in tt, one for each variable
Elimination that ends in 0=0= a non-zero numberNo solution: the system is inconsistentSay so in words. For three planes this means they do not meet at a common point

Section 1 of 2 AHL1.16

2×2 systems of equations

A system of two linear equations in two unknowns describes two lines, which either meet at one point, never meet or are the same line. Solve it by elimination or substitution. A false statement such as 0=50=5 means there is no solution, and a true statement such as 0=00=0 means there are infinitely many, which you describe with a parameter.

Reading the three cases

Elimination / substitution

Scale one equation so a variable's coefficient matches the other equation's, then add or subtract to eliminate it and solve for what remains.

Not a formula-booklet result - it's a method, usable by hand or with your calculator's simultaneous-equation solver.

No solution vs. infinitely many

If scaling makes the xx- and yy-coefficients match but the constants don't, you get a contradiction: no solution (parallel lines). If the entire scaled equation matches, every point on the line works: infinitely many solutions, written parametrically as (x,y)=(f(t),t)(x,y)=(f(t),t).

Key terms

What is a unique solution?

A unique solution is exactly one pair (x,y)(x,y) that satisfies both equations. The two lines have different gradients and cross at a single point.

e.g. Adding x+y=5x+y=5 and x−y=1x-y=1 gives 2x=62x=6, so x=3x=3 and y=2y=2.

What are parallel lines in a system?

Parallel lines have the same gradient but different intercepts, so they never meet and the system has no solution. Elimination ends in a false statement.

e.g. Doubling x+2y=3x+2y=3 gives 2x+4y=62x+4y=6, which contradicts 2x+4y=52x+4y=5, so there is no solution.

What is a general solution?

When the equations describe the same line, every point on it is a solution. Let one variable equal a parameter tt, with t∈Rt\in\mathbb{R}, and write the other variable in terms of tt.

e.g. For x+y=4x+y=4 and 2x+2y=82x+2y=8, let x=tx=t so that y=4−ty=4-t.

How do you solve by substitution?

Rearrange one equation to make a variable the subject, then substitute it into the other equation to leave one equation in one unknown.

e.g. For y=2x−1y=2x-1 and 3x+y=93x+y=9: 3x+2x−1=93x+2x-1=9, so 5x=105x=10, x=2x=2 and y=3y=3.

Worked example, step by step

The question No calculator needed [5 marks]

Consider the system of equations 3x−5y=7,6x−10y=c,3x-5y=7,\qquad 6x-10y=c, where cc is a constant.

(a) Find the value of cc for which the system has infinitely many solutions.

(b) For this value of cc, find the general solution, giving yy in terms of x=tx=t.

(c) Explain why the system has no solution when c=20c=20.

Worked solution: worked example

Answer: (a) c=14c=14 (b) x=t, y=3t−75x=t,\ y=\dfrac{3t-7}{5} (c) elimination gives 0=−60=-6, a contradiction, so there is no solution

Step 1 - Eliminate xx.

Multiply the first equation by 2 so that the xx coefficients match: 6x−10y=14,6x−10y=c.6x-10y=14,\qquad 6x-10y=c. Subtracting gives 0=14−c.0=14-c. M1 - Eliminate xx (and yy) to obtain 0=14−c0=14-c, or an equivalent statement

Why? Matching the coefficients of xx also matches those of yy, so both unknowns disappear at once. What is left is a statement about cc alone.

Step 2 - Find cc.

The system has infinitely many solutions exactly when 0=14−c0=14-c is true, so c=14c=14. A1 - c=14c=14

Why? If 0=14−c0=14-c is true the two equations say the same thing, so every point on the line satisfies both. If it is false the equations contradict each other.

Step 3 - Write the general solution.

With c=14c=14, only one equation is needed: 3x−5y=73x-5y=7. Let x=tx=t, so 3t−5y=73t-5y=7 and y=3t−75.y=\dfrac{3t-7}{5}. M1 - Substitute x=tx=t into 3x−5y=73x-5y=7 (or into the second equation) A1 - y=3t−75y=\dfrac{3t-7}{5}

Why? One variable can be chosen freely and the other follows from it. The solutions are the points (t,3t−75)\left(t,\dfrac{3t-7}{5}\right) for every real tt. Substituting t=4t=4 gives (4,1)(4,1), which satisfies both equations.

Step 4 - Explain the case c=20c=20.

For c=20c=20 the elimination in step 1 gives 0=14−200=14-20, which is 0=−60=-6. This is false for every xx and yy, so no pair of values satisfies both equations: the system is inconsistent. R1 - 0=−60=-6 is a contradiction, so there is no solution

Why? The left-hand sides are multiples of each other, so the lines are parallel, and the different right-hand sides mean they are different lines. Parallel distinct lines never meet.

Marks (5):
M1 Eliminate xx (and yy) to obtain 0=14−c0=14-c, or an equivalent statement
A1 c=14c=14
M1 Substitute x=tx=t into 3x−5y=73x-5y=7 (or into the second equation)
A1 y=3t−75y=\dfrac{3t-7}{5}
R1 0=−60=-6 is a contradiction, so there is no solution

Now you try: enter your answers to be marked

These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.

1
Medium
No calc
[6 marks]
Consider the system {px+y=24x+py=p.\begin{cases}px+y=2\\ 4x+py=p\end{cases}.
(a)(i) For which value of p<0p<0 does the system fail to have a unique solution?
[4]
(a)(ii) Give the value with p>0.p>0.
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Hard
No calc
[6 marks]
Find the value(s) of mm for which {2x+3y=54x+my=7\begin{cases}2x+3y=5\\ 4x+my=7\end{cases} has no solution.
[6]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
No calc
[6 marks]
The system ax+2y=1, 3x+ay=2ax + 2y = 1,\ 3x + ay = 2 has a unique solution for all values of aa except two.
(a)(i) Find the value of a<0.a<0.
[4]
(a)(ii) Find the value of a>0.a>0.
[2]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 18 marks

Common mistakes

  • Assuming every system has a unique solution. Before diving into elimination, glance at the coefficients - if one equation looks like a multiple of the other, you're likely dealing with a no-solution or infinite-solutions case, not a single pair (x,y)(x,y).
  • Writing "no solution" without justifying it. You need to show the contradiction explicitly, e.g. that the scaled equations give 3≠53 \ne 5, not just assert that the lines don't meet.
  • Forgetting the parameter constraint t∈Rt \in \mathbb{R} when giving an infinite solution set. The parametric answer (x,y)=(2+3t, t)(x,y)=(2+3t,\ t) is incomplete without stating that tt ranges over all real numbers.

Try some questions on 2×2 systems of equations

Section 2 of 2 AHL1.16

3×3 systems of equations

A system of three linear equations in three unknowns has one solution, infinitely many solutions or no solution, and geometrically it describes three planes. Solve it by eliminating one unknown from pairs of equations to leave two equations in two unknowns, then back-substitute, or use row reduction, matrices or a calculator.

The method

Row reduction / elimination

Systematically add or subtract multiples of the equations to eliminate variables, one at a time, until only one unknown remains.

Not a formula-booklet result - it's a method. You can do it by hand, or feed the augmented matrix into your calculator's row-reduction or simultaneous-equation tool.

Three outcomes

A 3×3 system has exactly one of: a unique solution (three planes meet at one point), infinitely many solutions (the planes share a common line), or no solution (a contradiction appears once you eliminate down).

Key terms

What is a system of linear equations?

A system is a set of equations that must all be true at the same time. A solution is a set of values of the unknowns that satisfies every equation.

e.g. The system x+y+z=6x+y+z=6, x−y+z=2x-y+z=2, 2x+y−z=12x+y-z=1 has solution x=1x=1, y=2y=2, z=3z=3, since 1+2+3=61+2+3=6, 1−2+3=21-2+3=2 and 2+2−3=12+2-3=1.

What does a unique solution mean?

There is exactly one set of values for the unknowns. Geometrically, the three planes meet at a single point.

e.g. The system x+y+z=6x+y+z=6, x−y+z=2x-y+z=2, 2x+y−z=12x+y-z=1 meets only at the point (1,2,3)(1,2,3).

What is a general solution?

When a system has infinitely many solutions, one unknown is written as a parameter tt and the others are expressed in terms of it. Geometrically, the planes then share a common line.

e.g. The equations x+y+z=3x+y+z=3, x−y=1x-y=1, 2x+z=42x+z=4 have general solution (x,y,z)=(t,t−1,4−2t)(x,y,z)=(t,\,t-1,\,4-2t).

What is row reduction?

Row reduction applies row operations to the coefficients and constants written as a matrix, so that unknowns are eliminated in a systematic way. Each row operation gives a system with the same solutions.

e.g. Subtracting row 1 from row 2 gives (1131−11)→(1130−2−2)\begin{pmatrix}1&1&3\\1&-1&1\end{pmatrix}\to\begin{pmatrix}1&1&3\\0&-2&-2\end{pmatrix}.

Worked example, step by step

The question No calculator needed [6 marks]

Consider the system of equations x+2y−z=4,2x+y+z=5,3x+3y=9.x+2y-z=4,\qquad 2x+y+z=5,\qquad 3x+3y=9.

(a) Show that the system has infinitely many solutions.

(b) Let x=tx=t. Find the general solution, giving yy and zz in terms of tt.

Worked solution: worked example

Answer: (a) the first two equations add to give the third, so there are infinitely many solutions (b) x=t, y=3−t, z=2−tx=t,\ y=3-t,\ z=2-t

Step 1 - Eliminate zz from the first two equations.

Adding the first two equations: (x+2y−z)+(2x+y+z)=4+5 ⇒ 3x+3y=9.(x+2y-z)+(2x+y+z)=4+5\ \Rightarrow\ 3x+3y=9. M1 - Eliminate one variable from a pair of equations A1 - 3x+3y=93x+3y=9

Why? The zz terms have opposite signs, so adding removes zz in one step. The result is an equation in xx and yy only.

Step 2 - Compare with the third equation.

The result is exactly the third equation. So the third equation adds no new information, and there are only two independent equations for three unknowns. The system is consistent and has infinitely many solutions. R1 - This is the third equation, so the system is consistent with infinitely many solutions

Why? If the result had been 3x+3y=k3x+3y=k for a different number kk, the system would have no solution. Getting the same equation back is what signals infinitely many.

Step 3 - Find yy in terms of tt.

Put x=tx=t in 3x+3y=93x+3y=9: 3t+3y=93t+3y=9, so y=3−t.y=3-t. M1 - Substitute x=tx=t into 3x+3y=93x+3y=9 A1 - y=3−ty=3-t

Why? One variable is free. Choosing xx as the parameter, as the question says, makes yy follow directly.

Step 4 - Find zz in terms of tt.

From the first equation, z=x+2y−4z=x+2y-4. Substituting x=tx=t and y=3−ty=3-t: z=t+2(3−t)−4=2−t.z=t+2(3-t)-4=2-t. A1 - z=2−tz=2-t

Why? Any of the three equations could be used. Check in the second equation: 2t+(3−t)+(2−t)=52t+(3-t)+(2-t)=5, as required, for every tt.

Marks (6):
M1 Eliminate one variable from a pair of equations
A1 3x+3y=93x+3y=9
R1 This is the third equation, so the system is consistent with infinitely many solutions
M1 Substitute x=tx=t into 3x+3y=93x+3y=9
A1 y=3−ty=3-t
A1 z=2−tz=2-t

Now you try: enter your answers to be marked

1
Medium
No calc
[6 marks]
Solve
x+2y+z=8,2x+y−z=1,x−y+2z=9.x + 2y + z = 8, \quad 2x + y - z = 1, \quad x - y + 2z = 9.
[6]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
No calc
[8 marks]
Use elimination to solve {x−2y+z=02x+y−3z=54x−7y+z=−1.\begin{cases}x-2y+z=0\\ 2x+y-3z=5\\ 4x-7y+z=-1\end{cases}.
(a) Find the value of x.x.
[6]
(b) State the value of y.y.
[1]
(c) State the value of z.z.
[1]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
No calc
[5 marks]
Three planes are given by x+y+z=1, 2x+y−z=2, 3x+2y=4.x+y+z=1,\ 2x+y-z=2,\ 3x+2y=4. Determine the nature of their intersection.
[5]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 19 marks

Common mistakes

  • Sign errors when subtracting equations. Subtracting one equation from another to eliminate a variable is a common source of arithmetic slips - double-check every term, including the constants, not just the variable you're cancelling.
  • Introducing a parameter but only checking two of the three equations. A parametric general solution must satisfy all three original equations, not just the two you used to derive it - always verify with the third.
  • Stopping as soon as a contradiction appears without stating the conclusion. Reaching 0=20=2 is not itself the final answer - you still need to state clearly that this means the system (or the three planes) has no solution.

Try some questions on 3×3 systems of equations

Using your GDC

The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.

Solve a system of equations

Used in: 3×3 systems of equations

How to solve a system of equations on a TI-84 Plus CE

Simultaneous Equation Solver app (PlySmlt2)

Press apps and choose PlySmlt2. An information screen appears: press any key to reach the MAIN MENU, then choose Simultaneous Eqn Solver.

On the mode screen choose 3 equations and 3 unknowns. Choose Dec instead of Auto if you want decimal answers rather than fractions. Choose NEXT, using the key directly below it on the screen.

Equations: 3
Unknowns: 3

Enter the coefficients row by row, one row for each equation, with the constant (the number on the right of the equals sign) last. Press enter after each number to move to the next position. For a negative number use (−), not the subtraction key. Write each equation as ax+by+cz=dax + by + cz = d first: a missing term has coefficient 0.

1  2  3  10
2  -1  1  3
3  1  -2  1

Choose SOLVE, using the key directly below it on the screen. The solution for each unknown is shown.

x=6/5x = 6/5, y=7/5y = 7/5 and z=2z = 2, which is x=1.2x = 1.2, y=1.4y = 1.4 and z=2z = 2 in decimal form.

x1=6/5
x2=7/5
x3=2

If the system has no solution or infinitely many solutions, the app does not show a single answer. The rref choice then shows the reduced row-echelon form, where a row of zeros followed by a non-zero number means no solution. To leave the app, go to the main menu and choose Quit App.

Check each solution by substituting it back into one of the original equations, in case a coefficient was typed in the wrong place.

The full guide: Solve a system of equations

See the full list of GDC guides for every calculator task.

Syllabus content covered

CodeSyllabus content
AHL1.16Solutions of systems of linear equations, with a maximum of three equations in three unknowns, solved using both algebraic and technological methods (for example row reduction or matrices) - including cases with a unique solution, an infinite number of solutions, or no solution. Finding a general solution for a system with an infinite number of solutions.

Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).

Quick questions

How do you know if a 2x2 system has no solution?

If, after scaling to match one variable's coefficients, the other coefficients also match but the constants differ, you get a contradiction - the lines are parallel and distinct, so there is no solution.

How do you solve a 3x3 system of equations by hand?

Eliminate one variable at a time by combining pairs of equations, reducing three equations in three unknowns to two in two, then one in one, before back-substituting to recover the rest.

How do you know if a 2x2 system has infinitely many solutions?

If one equation is exactly a scalar multiple of the other, they describe the same line, so every point on it is a solution - write the solution set in parametric form using a free parameter tt.

What does it mean if a 3x3 system has no solution?

The three planes don't share a common point. Algebraically this shows up as a contradiction, such as 0=20=2, once you've eliminated down to a single equation.

How do you find the value of kk that makes the number of solutions change?

Make the coefficients of the two equations proportional. For x+4y=2x+4y=2 and 3x+ky=63x+ky=6, the second equation is three times the first only when k=12k=12, which gives infinitely many solutions; any other kk gives a unique solution.

Which variable should I eliminate first?

Choose the variable that is easiest to cancel, for example one with equal or opposite coefficients, and eliminate the same variable from two different pairs of equations. Subtracting x−y+z=2x-y+z=2 from x+y+z=6x+y+z=6 removes both xx and zz and leaves 2y=42y=4.

Can a pair of linear equations have exactly two solutions?

No. Two different lines meet at most once, so two lines that share two points are the same line, and then every point on it is a solution. The only possibilities are none, one or infinitely many.

What does it mean if elimination gives 0=00=0?

A true statement such as 0=00=0 means that one equation adds no new information. If no contradiction appears elsewhere, the system has infinitely many solutions and you should write a general solution using a parameter.

How do I check my answer to a pair of simultaneous equations?

Substitute your values into both original equations. For example, (3,2)(3,2) satisfies x+y=5x+y=5 and x−y=1x-y=1, so it is correct for that system.

How can I check my solution to a system of three equations?

Substitute the values into all three original equations, not only the ones you used last. For example, (1,2,3)(1,2,3) gives 2x+y−z=2+2−3=12x+y-z=2+2-3=1, which agrees with the third equation.

Ready to practise properly?

Practice questions on every section, marked instantly like the real exam.