Using graphs to solve equations

Using graphs to solve equations

Spec B7 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The solutions of f(x)=0f(x)=0 are the xx-coordinates where y=f(x)y=f(x) meets the xx-axis.
  • The solutions of f(x)=g(x)f(x)=g(x) are the xx-coordinates of the intersections of the two graphs.
  • To solve with a drawn curve, rearrange until the left side is the curve; the right side is the line to draw.
  • The number of solutions of f(x)=kf(x)=k is how many times the line y=ky=k meets the curve.
  • For a line and a curve, the discriminant shows two points, a tangent or no intersection.
  • Solutions of f(x)=g(x)f(x)=g(x)xx-coordinates of the intersections

Roots are x-intercepts

A solution of f(x)=0f(x)=0 is where the graph meets the xx-axis, because y=0y=0 there.

For y=x2−4x−5=(x−5)(x+1)y=x^2-4x-5=(x-5)(x+1) the curve meets the axis at x=−1x=-1 and x=5x=5, so x2−4x−5=0x^2-4x-5=0 has those two solutions. y=x3−3xy=x^3-3x meets it at x=0,±3x=0,\pm\sqrt3, giving three.

A graph that touches the axis shows a repeated root; one that never reaches it shows no real solutions.

−3−2−11234567−10−8−6−4−22468xy(−1, 0)(5, 0)(2, −9)y = x² − 4x − 5
The roots of x² − 4x − 5 = 0 are the x-intercepts.

The graph of y=f(x)y=f(x) crosses the xx-axis at x=−2x=-2 and x=3x=3. What are the solutions of f(x)=0f(x)=0?

Intersections

The xx-coordinates of the intersections of y=f(x)y=f(x) and y=g(x)y=g(x) solve f(x)=g(x)f(x)=g(x).

Where two graphs meet they share the same xx and yy, so this is the same as solving y=f(x)y=f(x) and y=g(x)y=g(x) simultaneously. Find yy by substituting back.

The curve y=x2−4x−5y=x^2-4x-5 and line y=2x−5y=2x-5 meet at (0,−5)(0,-5) and (6,7)(6,7).

−2−112345678−10−5510xy(0, −5)(6, 7)y = x² − 4x − 5y = 2x − 5
The curve and the line meet at (0, −5) and (6, 7).

Worked example

Find where y=x2−4x−5y=x^2-4x-5 meets y=2x−5y=2x-5.

The curve y=x2y=x^2 and the line y=x+2y=x+2 meet where x2=x+2x^2=x+2. What are the xx-values?

Choosing the line to draw

Rearrange so the left side is the drawn curve; what is on the right is the line to draw.

To solve x2−4x−3=0x^2-4x-3=0 using y=x2−4x−5y=x^2-4x-5, write x2−4x−5=−2x^2-4x-5=-2, so draw y=−2y=-2. The solutions are the xx-coordinates of where it meets the curve.

Check by solving the original equation algebraically.

  • Left sidethe curve already drawn
  • Right sidethe line to draw
−3−2−11234567−10−8−6−4−22468xyx ≈ −0.65x ≈ 4.65y = x² − 4x − 5y = −2
y = −2 meets the curve at x ≈ −0.65 and x ≈ 4.65.

Worked example

y=x2−2x−8y=x^2-2x-8 is drawn. Which line solves x2−3x−10=0x^2-3x-10=0?

y=x2−4x−5y=x^2-4x-5 is drawn. Which line solves x2−4x−1=0x^2-4x-1=0?

Horizontal lines and counting

It is the number of times the horizontal line y=ky=k meets the curve.

For y=x3−3xy=x^3-3x, with maximum (−1,2)(-1,2) and minimum (1,−2)(1,-2), the turning points set where the number of solutions changes.

A line through a turning point gives a repeated root, so a cubic has two distinct solutions there, not three.

−3−2−1123−4−3−2−11234xy(−1, 2)(1, −2)y = x³ − 3xy = k
Lines y = k meet y = x³ − 3x once, twice or three times depending on k.

∣k∣>2|k|>2

  • One solution

k=±2k=\pm2

  • Two distinct solutions

∣k∣<2|k|<2

  • Three solutions

How many distinct solutions does x3−3x=2x^3-3x=2 have?

Lines and curves

Equate them to get a quadratic, then look at its discriminant b2−4acb^2-4ac.

Equating a line and a curve gives a quadratic. A tangent touches the curve at exactly one point.

For y=x−7y=x-7 and y=x2−5x+2y=x^2-5x+2: x2−6x+9=0x^2-6x+9=0 is (x−3)2=0(x-3)^2=0, so the line touches at (3,−4)(3,-4).

Two points

  • b2−4ac>0b^2-4ac>0

Tangent

  • b2−4ac=0b^2-4ac=0

No intersection

  • b2−4ac<0b^2-4ac<0
−11234567−551015xy(3, −4)y = x² − 5x + 2y = x − 7
y = x − 7 touches y = x² − 5x + 2 at (3, −4).

Worked example

For which cc does y=x+cy=x+c miss y=x2−5x+2y=x^2-5x+2?

For which value of cc is y=2x+cy=2x+c a tangent to y=x2y=x^2?

Try an exam question

The line y=2x+cy=2x+c is a tangent to the curve y=x2−4x+5y=x^2-4x+5. Find the value of cc.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which pair of values gives the xx-coordinates of the points where the curve and the line intersect?

1 mark, marked against the mark scheme

Revision notes