IB Mathematics AA and AI · AP Precalculus review

Systems of Equations

Find where two lines meet, solve three equations without losing a variable, and tell when a system has no solution. Work through graphing, substitution, elimination and matrices, then check your method with exam-style questions.

Graphing calculator and an open squared notebook

What to study for IB Mathematics

A system is a set of equations in the same variables. A solution satisfies every equation. That means you can check an answer by putting its coordinates back into the original equations.

Analysis and Approaches

Two-variable linear systems are prior learning. In AA HL topic 1.16, solve up to three linear equations in three unknowns by hand and with technology. Row reduction is one way to connect the two methods.

Applications and Interpretation

AI topic SL 1.8 covers technology-based solutions in up to three variables. The current guide specifies a unique solution for its exam systems. AI HL topic 1.14 also uses inverse matrices to solve systems.

AP Precalculus connection. College Board lists solving systems in two and three variables as prior preparation. The same skills help you find function intersections and fit a model to data. The matrix topics in Unit 4 are course extensions.

Read the solution from a graph

Put both lines on the same coordinate plane. For a nonvertical line, rewriting the equation as y=mx+b lets you compare its slope m and vertical intercept b. Graphing helps you see the number of solutions, and algebra or labelled coordinates can give exact values.

Compare systems

The first equation stays the same. Change the case to see what happens when you change the second equation.

One solution

Two lines cross at the marked point with x-coordinate 2 and y-coordinate 3.
Equation 1 is y=5−x. Equation 2 is y=2x−1. Both equations hold at (2,3).
Classification for two nonvertical lines
Compare the equationsOn the graphSolution set
Different slopesLines cross at one pointOne solution. The system is consistent and independent.
Same slope, different interceptsDistinct parallel linesNo solution. The system is inconsistent.
Same slope and interceptCoincident linesInfinitely many solutions. The system is consistent and dependent.

Vertical lines. An equation such as x=2 has no finite slope. Two vertical lines coincide if their x-values match. Otherwise they are parallel. A vertical line and a nonvertical line meet once.

Check the graphing window. If two lines have close slopes, their intersection may be far outside the current window. Compare equations or solve algebraically before deciding what the graph shows.

Substitution when a variable is easy to isolate

Look for an equation with a variable already isolated or a coefficient of 1 or −1. Isolate that variable, replace it in the other equation, solve, then back-substitute.

Worked example · Check the graph’s intersection

{x+y=52x−y=1

1. Isolate. The first equation gives y=5−x.

2. Substitute. Put brackets around the whole expression when you replace y in the second equation.

2x−(5−x)=1 2x−5+x=1⟹3x=6

3. Find the other coordinate. Since x=2, use y=5−2=3. The solution is (2,3).

4. Check both equations. 2+3=5 and 2(2)−3=1.

Elimination when coefficients line up

Arrange both equations as Ax+By=C. Add the equations if the coefficients of a variable are opposites. Subtract if those coefficients match. When scaling an equation, multiply both sides by the same nonzero number.

Worked example · Opposite coefficients

{2x+3y=74x−3y=5

Add the equations to get 6x=12, so x=2. Substitute in the first equation.

2(2)+3y=7⟹3y=3

So y=1. The solution (2,1) gives 2(2)+3(1)=7 and 4(2)−3(1)=5.

Worked example · Scale first and keep fractions exact

{3x+2y=112x+5y=16

Multiply the first equation by 5 and the second by −2.

{15x+10y=55−4x−10y=−32

Add to get 11x=23, so x=2311. Then use the original first equation to calculate y.

2y=11−6911=5211 (x,y)=(2311,2611)

The second equation checks the exact fractions.

2(2311)+5(2611)=17611

This equals 16, as required.

Reduce a three-variable system to two variables

Choose one variable to remove from two equations. Then solve the remaining system and use one original equation to recover the third variable. Keeping the variables in the same order and labelling the rows helps you catch sign errors.

{a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3

Worked example · Eliminate the same variable twice

{x+y+z=62x−y+z=3x+2y−z=2

1. Eliminate z. Add equations 1 and 3 to get 2x+3y=8. Add equations 2 and 3 to get 3x+y=5.

2. Solve the smaller system. From 3x+y=5, write y=5−3x, then substitute.

2x+3(5−3x)=8⟹−7x=−7

3. Back-substitute and check. Since x=1, y=5−3(1)=2 and 1+2+z=6 gives z=3. The triple (1,2,3) also gives 2−2+3=3 and 1+4−3=2.

Use substitution on the same system

Equation 1 gives z=6−x−y. Substitute this expression into equations 2 and 3 to get x−2y=−3 and 2x+3y=8.

Use x=2y−3 in the second reduced equation. This gives 7y=14, followed by y=2, x=1 and z=3. Both methods reach the same triple.

From data to equations · Fit a quadratic model

Suppose a model g(t)=at2+bt+c must pass through (0,3), (1,6) and (2,11). Each point gives one equation for the same unknowns a,b,c.

{c=3a+b+c=64a+2b+c=11

Substitute c=3 to get a+b=3 and 4a+2b=8. Subtract twice the first reduced equation from the second to find 2a=2. Hence a=1, b=2 and g(t)=t2+2t+3. Substituting each original input checks that the model fits all three points.

Write an augmented matrix and row-reduce

Use one row per equation and one column per variable, in the same order throughout. Put the constants in the final column. If an equation omits a variable, use a zero in its column.

{ax+by=ecx+dy=f→[abecdf]
The three operations that preserve the solution set
OperationNotationMeaning
SwapRi↔RjExchange two rows.
ScaleRi←kRiMultiply every entry in the row by k≠0.
ReplaceRi←Ri+kRjAdd k times a different row to the row you are replacing.

REF. The leading entries move right as you read down. Entries below each leading entry are zero, and any zero rows sit at the bottom. You can scale the leading entries to 1 and use back-substitution.

RREF. Each leading entry is 1 and is the only nonzero entry in its column. A pivot in each variable column gives a unique solution when the system is consistent.

Worked example · Read a solution from two rows

{x+2y=52x+y=4[125214]

Use R2←R2−2R1 to make a zero below the first pivot.

[1250−3−6]

Use R2←−13R2 to read y=2. Use R1←R1−2R2 to clear the entry above the second pivot.

[125012]→[101012]

Read (x,y)=(1,2). Back-substitution from x+2y=5 gives the same x.

Check a three-variable solution with technology

Using the three-variable worked example, enter the coefficients and constants shown below. Use the simultaneous-equations solver or the reduced row-echelon form command on your calculator.

[11162−11312−12]→[100101020013]

Read the right-hand column in variable order to get (1,2,3). Write the original equations or your input matrix in your working. Check how the question wants you to round the result.

Use an inverse matrix when it exists

Keep the coefficient matrix A and the constants column b separate for this method. If A is square and invertible, multiply Ax=b on the left by A−1.

x=A−1b

In the two-row example, the determinant is 1·1−2·2=−3, so the inverse exists.

[xy]=−13[1−2−21][54]=[12]

A zero determinant means the square coefficient matrix has no inverse. Row-reduce the augmented matrix to distinguish a contradiction from a free variable.

Tell a contradiction from a free variable

When you solve three linear equations in three variables, each nondegenerate equation represents a plane. A solution lies on all three planes at once. Use the row results to classify their common intersection.

One solution
Every variable has a pivot, so the planes share one point. Report an ordered triple.
No solution
A row like 0=5 is a contradiction, so the planes have no common point. This can happen with distinct parallel planes or when all pairs intersect but share no point among all three, as in x=0, y=0, x+y=1.
Infinitely many solutions
There is no contradiction and at least one variable is free. The planes may share a line or all coincide. A row 0=0 gives no new restriction. Check the other rows before choosing the number of free variables.

Write the whole solution set

Take x+y+z=6, x−y+z=2 and 2x+2z=8. Subtract the second equation from the first to find y=2. The first equation then says x+z=4, which is also what the third equation says.

(x,y,z)=(4−t,2,t),t∈R

Each real choice of t gives a solution. For instance, t=3 gives (1,2,3), one point on the common line.

Choose the quickest clear method

Graphing, substitution, elimination and matrices
MethodWhen to use itWhat to record
GraphingSee how two lines meet or estimate a solution.Label the intersection and check both original equations.
SubstitutionA variable is isolated or has coefficient 1 or −1.Show the expression you substituted, then find the other variables.
EliminationCoefficients already match or can be matched quickly.Show which whole equations you scaled or combined.
MatricesOrganise three unknowns, check a result with technology or identify free variables.Write the column order and show the reduced rows or your calculator method.

In word problems, define each variable with its unit and check constraints such as integer counts or nonnegative times. A mathematically valid solution still needs to make sense in the situation.

Eight practice questions with worked answers

Start with the two-variable questions. For questions 5–8, explain what the reduced equations or matrix tell you before writing the final answer.

1. Find the intersection of y=2x+1 and y=4−x.

Set the outputs equal. 2x+1=4−x gives 3x=3, so x=1. Both equations give y=3. The intersection is (1,3).

2. How many solutions do x=2 and x=5 have?

The lines are vertical and have different horizontal positions. They cannot share an x-value, so the system has no solution.

3. Solve x+2y=4 and 2x+4y=8.

The second equation is twice the first. Use y=t. All solutions are (x,y)=(4−2t,t) for t∈R.

4. Solve 3x+y=7 and 2x−y=4 exactly.

Adding gives 5x=11, so x=115. Use y=7−3x=25. Check the second equation.

2·115−25=4

5. Solve the three-variable system by elimination.

{x+y+z=42x−y+z=8x+2y−z=−3
Show the elimination steps

Subtract equation 1 from equation 2 to get x−2y=4. Add equations 1 and 3 to get 2x+3y=1. Substituting x=4+2y gives 8+7y=1, so y=−1. Hence x=2 and z=3.

6. Explain why the following system has no solution.

{x+y+z=42x+2y+2z=9x−y+z=0
Show the contradiction

Subtract twice the first equation from the second. This gives 0=1. The first two equations already contradict each other.

7. Identify the free variable from this reduced matrix.

[102301−110000]
Show the solution set

The first two columns have pivots and the third is free. Set z=t. Read x+2z=3 and y−z=1, so the solution set is (3−2t,1+t,t) for t∈R.

8. HL · Use an inverse matrix to solve 2x+y=9 and x+y=5.

The coefficient matrix has determinant 2·1−1·1=1. Multiply the inverse by the constants column.

[xy]=[1−1−12][95]=[41]

Check 2(4)+1=9 and 4+1=5.

Exam papers and further practice

For AA, practise exact algebra without a calculator and check a three-variable system with technology on calculator-permitted papers. For AI, practise entering the coefficient rows and interpreting the solution in context. Check how the markscheme credits setting up the equations as well as solving them.

Get help with systems of equations

Bring a system you found difficult to a NUM8ERS tutoring consultation. A tutor can work through your setup and help you choose a method for IB Mathematics or AP Precalculus.

Book a free consultation

Study notes and original practice by NUM8ERS.