Solving systems of equations graphically

Solving systems of equations graphically

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Each linear equation is a straight line; the intersection gives the solution.
  • Give both coordinates (x,y)(x,y) unless told otherwise.
  • To solve f(x)=g(x)f(x)=g(x), the xx-coordinates of the intersections of y=f(x)y=f(x) and y=g(x)y=g(x) are the solutions.
  • Parallel lines have no solution; the same line has infinitely many.
  • In real problems the intersection shows when two quantities are equal.

Two lines

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

y=2x+1y=2x+1 and y=−x+7y=-x+7 are simultaneous equations. Each is a straight line, and the point where they intersect is the solution.

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

The lines y=2x+1y=2x+1 and y=−x+7y=-x+7 cross at (2,5)(2,5). What does this tell you?

Solving graphically

Draw both lines accurately, find where they cross and read both coordinates.

Check by substituting: for y=2x+1y=2x+1 and y=−x+7y=-x+7, 2(2)+1=52(2)+1=5 and −2+7=5-2+7=5.

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, using a table of values or the gradient and y-intercept

  2. 2

    Find the crossing point

    where the lines meet

  3. 3

    Read the coordinates

    write them as (x, y)

  4. 4

    Check

    substitute into both equations

Solving simultaneous equations graphically

Worked example

Solve y=x+1y=x+1 and y=−x+5y=-x+5 graphically.

Two lines cross at (4, −1). Which is the full solution?

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

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

For f(x)=x2−2f(x)=x^2-2 and g(x)=x+4g(x)=x+4: x2−x−6=0x^2-x-6=0, so (x−3)(x+2)=0(x-3)(x+2)=0 and x=3x=3 or x=−2x=-2.

A line and a parabola can meet at two, one or no points. The yy-coordinates come from substituting back.

−4−3−2−112345−4−224681012xy(-2, 2)(3, 7)y = x² − 2y = x + 4
y = x² − 2 meets y = x + 4 at (−2, 2) and (3, 7)

What is the greatest number of times a straight line can meet a parabola?

Graphing technology

Graphing software draws accurate graphs quickly and can zoom in for more accurate answers.

Use technology for equations that do not have neat solutions. 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 each function in

    one for each side of the equation

  2. 2

    Set the window

    so every crossing point is visible

  3. 3

    Use the intersect tool

    or trace along a curve

  4. 4

    Read the coordinates

    and zoom in for accuracy

  5. 5

    Round

    to the accuracy asked for

Finding intersections with technology

You expect two solutions, but your graph window shows only one intersection. What should you do?

Special cases and real life

Parallel lines never meet, so there is no solution; in real problems the intersection shows when two quantities are equal.

Lines with the same gradient are parallel. If two equations describe the same line, every point is a solution.

Tank A, V=50+5tV=50+5t, and tank B, V=20+8tV=20+8t, cross at t=10t=10 minutes, V=100V=100 litres. For t<10t<10, A holds more; for t>10t>10, B holds more.

246810121416182020406080100120140160180200t (min)y(10, 100)(0, 50)(0, 20)A: V = 50 + 5tB: V = 20 + 8t
Tank volumes in litres: A and B are equal at t = 10
−3−2−112345−8−6−4−2246810xyy = 2x + 1y = 2x − 3
Parallel lines (same gradient, 2) never meet: no solution

How many solutions do y=3x+2y=3x+2 and y=3x+5y=3x+5 have?

Try an exam question

Tank A holds V=50+5tV=50+5t litres and tank B holds V=20+8tV=20+8t litres after tt minutes. When do the tanks hold the same volume, and what is that volume?

[3 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