Solving systems of equations graphically

Solving systems of equations graphically

IB MYP Maths Standard: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Each linear equation is a straight line; the intersection is the solution.
  • The solution is a pair (x,y)(x,y): give both coordinates.
  • Always check by substituting into both equations.
  • To solve f(x)=g(x)f(x)=g(x), draw both graphs and read the xx-coordinates of the crossings.
  • Parallel lines have no solution; the same line has infinitely many.

Two equations, two lines

The point where two lines cross lies on both lines, so its coordinates satisfy both equations at once.

Two linear equations such as y=2x+1y=2x+1 and y=−x+7y=-x+7 are called simultaneous equations. Each one is a straight line on a graph.

A point on a line has xx- and yy-values that satisfy that line's equation. So the point where the lines intersect lies on both lines, and its coordinates satisfy both equations at once.

That point is the solution.

−2−1123456−2246810xy(2, 5)y = 2x + 1y = −x + 7
The lines meet at (2, 5)

Which point lies on both lines in the graph?

Solving graphically

Draw both lines, find where they cross, read the coordinates and check in both equations.

A graph can only be read as accurately as it is drawn, so use algebra or technology to check an answer that is not a whole number.

  1. 1

    Draw

    both lines on the same axes

  2. 2

    Find

    where the lines cross

  3. 3

    Read

    the coordinates (x,y)(x, y)

  4. 4

    Check

    by substituting into both equations

The four steps

Worked example

Solve y=2x+1y=2x+1 and y=−x+7y=-x+7 graphically.

The lines cross at (3,4)(3,4). What is the solution?

Equations of the form f(x) = g(x)

Draw y=f(x)y=f(x) and y=g(x)y=g(x); the xx-coordinates of the intersections are the solutions.

To solve f(x)=g(x)f(x)=g(x) graphically, draw y=f(x)y=f(x) and y=g(x)y=g(x). The xx-coordinates of the intersection points are the solutions.

A line and a parabola can meet at two, one or no points.

−4−3−2−112345−4−224681012xy(3, 7)(−2, 2)f(x) = x² − 2g(x) = x + 4
y = x² − 2 and y = x + 4 meet twice

Worked example

Solve x2−2=x+4x^2-2=x+4.

A line meets a parabola at x=1x=1 and x=4x=4. How many solutions does f(x)=g(x)f(x)=g(x) have?

Graphing technology

Graphing software draws accurate graphs quickly, and zooming in gives more accurate answers.

Graphing software or a graphing calculator draws accurate graphs quickly. Zooming in gives more accurate answers.

Use technology for equations that do not have neat solutions, and say in your answer what you did, for example: the graphs meet at x=3x=3 and x=−2x=-2. Round to the accuracy asked for.

  1. 1

    Type in each function

  2. 2

    Check the window

    it must show every intersection

  3. 3

    Use the intersect tool

    or trace, and zoom in

  4. 4

    Write the answer

    with the accuracy asked for

Solving with graphing technology

A graph shows only one crossing, but you expect two. What should you do?

Special cases and real life

Parallel lines give no solution, one line twice gives infinitely many, and a real crossing point shows when two quantities are equal.

Lines with the same gradient are parallel, so they never meet: there is no solution.

If two equations describe the same line, every point on it is a solution.

In real problems, the intersection tells you when two quantities are equal. For hall hire, the crossing point shows the number of guests at which two companies cost the same, and which is cheaper before and after it.

246810121416182020406080100120140160180200t (min)V (litres)(10, 100)Tank ATank B
Tank A: V = 50 + 5t. Tank B: V = 20 + 8t.

The lines cross at t=10t=10 minutes, V=100V=100 litres: both tanks then hold the same volume. For t<10t<10 tank A holds more water, and for t>10t>10 tank B holds more.

Two lines have the same gradient and different intercepts. How many solutions do the simultaneous equations have?

Try an exam question

Solve the simultaneous equations y=2x+1y=2x+1 and y=−x+7y=-x+7 graphically, and show how you can check your answer.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which point is the solution of the simultaneous equations y=2x+1y=2x+1 and y=−x+7y=-x+7?

1 mark, marked against the mark scheme

Revision notes