Using Graphs To Solve Equations
Using Graphs To Solve Equations
Using Graphs To Solve Equations
Contents
Section
Worked Example 1
Solve the pair of simultaneous equations
x+y=8 and 2 x + 3 y = 21
Solution
First it can be helpful to write the two equations in the form y = . . . .
For the first equation,
x+y = 8
y = 8<x (subtracting x)
2
y = 7< x (dividing by 3)
3
For y=8<x
If x=0 , y=8 so (0, 8) lies on the line
If x=8 , y=8<8
=0 so (8, 0) lies on the line.
2
For y=7< x
3
If x=0 , y=7<0
=7 so (0, 7) lies on the line.
2
If x=6 , y=7< ×6
3
=7<4
=3 so (6, 3) lies on the line.
These points are then used to plot the lines shown below.
y
8
7 y=8< x
6
5
4
3 2
y=7< x
2 3
1
0
0 1 2 3 4 5 6 7 8 9 x
The two lines intersect at the point (3, 5), so the solution is
x = 3 and y = 5
Note
We can easily solve these equations analytically by writing
2 x + 2 y = 16 1 ¬
x+y=8 subtract 2 from 1 to give y = 5
2 x + 3 y = 21 2 ®
Exercises
1. Use the graph below to solve the simultaneous equations.
(a) y=8<x (b) y=8<x
y = 2x < 1 y = 3 x < 20
y
y = 2x < 1
y=8< x 9
8
7
6
<7x 5
y= < 14
3 4
y = 3x < 20
3
2
1
–9 –8 –7 –6 –5 – 4 –3 –2 –1 0 1 2 3 4 5 6 7 8 9 x
–1
–2
–3 1
y=< x <1
–4 6
–5
–6
–7
–8
2. (a) Draw a set of axes with x-values from < 4 to 4 and y-values from –5 to 5.
(b) Write down the coordinates of three points on the line y = x < 1 and use
them to draw the line y = x < 1.
(c) On the same set of axes draw the lines y = 5 < x and y = 3 x + 1.
4. A discount store sells CDs and DVDs. The price of every CD is $x and the price of
every tape is $y.
(a) Jane buys 2 CDs and 4 DVDs which cost a total of $40. Write down an
equation involving x and y using this information.
(c) Christopher buys 3 CDs and 2 DVDs which cost a total of $36. Write down
a second equation using this information.
(e) Draw the graphs of both equations on the same set of axes.
6.
y
7 y = 2x + 1
3
x+ y=7
2
0 1 2 3 4 5 6 x
(a) The combined length of life of the two batteries was 14 hours.
Explain why x + y = 14
(b) The longlife battery lasted 3 hours longer than the standard battery.
Write down another equation connecting x and y.
y
16
14
x + y = 14
12
10
0
0 2 4 6 8 10 12 14 x
(c) Complete a copy of the table of values for your equation in (b) and use it to
draw the graph of your equation.
x 3 7 10
y
(d) Use your graphs to find the length of life of each type of battery.
y
30
20 Method A
(£)
Cost ($)
Cost
10
0
x
0 100 200 300 400
Number of units used
(b) For a certain number of units both methods give the same cost.
Use the graphs to find
(i) this number of units,
(ii) this cost.
–2 –1 0 1 2 3 4 5 x
–1
–2
–3
(ii) Use the graphs to find the solution of the simultaneous equations
5 x + 4 y = 20
y = 2x
Give the value of x and the value of y to one decimal place.
5 x + 4 y = 20
2x < y = 0
y
5
0
1 2 3 4 5 6 7 x
–1
y = mx + c x
Quadratic Functions
Quadratic functions contain an x 2 term as well as multiples of x and a constant. Some
examples are:
y = 2x2 y = x2 < x + 5 y = 6 < x2
The following graphs show 3 examples.
y y y
8 8 8
6 6 6
4 4 4
2 2 2
-2 0 2 x -2 0 2 x -2 0 2 x
y = x2 y = 8 < x2 y = x2 + x + 2
Note that each curve has either a maximum or a minimum point which lies on its axis of
symmetry. The curve has a maximum point when the coefficient of x 2 is negative as in
the second example, or minimum if the coefficient of x 2 is positive. Also the curve can
intersect the x-axis twice, just touch it once or never meet the x-axis.
Cubic Functions
Cubic functions involve an x 3 term and possibly x 2 , x and constant terms as well. Some
examples are:
y = x3, y = x 3 + 3 x 2 + 4 x < 8, y = x 3 < 5, y = x3 < x + 1
2 2 2
–2 0 2 x –2 0 2 x –2 0 2 x
–2 –2 –2
–4 –4 –4
y = x3 y = x3 + 2 y = x3 < 4x2 + 4x
2 2
–2 0 2 x
–2 –2 x –2 x
0 2 0 2
–4 –2 –2
–6 –4 –4
The graph of a cubic function can intersect the x-axis once as in examples (a), (b) and (e),
touch the axis once and intersect it once as in example (c) or intersect the x-axis three
times as in examples (d) and (f).
In examples (c), (d) and (f) the curve has a local minimum and a local maximum.
Note how the shape of the curve changes when a <x 3 is introduced. Compare examples
(a) and (e).
Reciprocal Functions
Reciprocal functions have the form of a fraction with x as the denominator. Examples of
reciprocal functions are:
1 10 <2 1
y= y= , y= , y=
x x x 5x
The graphs below show some examples.
y y y
4 4 4
2 2 2
–2 0 2 x –2 0 2 x –2 0 2 x
–2 –2 –2
–4 –4 –4
1 4 1
y= y= y=<
x x 2x
The curves are split into two distinct parts. The curves get closer and closer to the axes as
is clear in the diagrams. The curves have two lines of symmetry, y = x and y = < x .
Exercises
1. State whether each equation below would produce the graph of a linear, quadratic,
cubic or reciprocal function.
4
(a) y= (b) y = x2 < 2
x
<1
(e) y = x2 + x (f) y=
7x
–2 0 2 x –2 0 2 x –2 0 2 x
–2 –2 –2
–2 0 2 x –2 0 2 x –2 0 2 x
–2 –2 –2
A y B y
2 2
1
–2 2 4 x
–2
–1 1 2 3 x
C y D y
2 2
1
–2 2 4 x
–2
–1 1 2 3 x
–4 –2 2 4 x –4 –2 2 4 x
–2 –2
C y D y
2 1
–4 –2 2 4 x –2 –1 1 2 x
–2 –1
5. Each equation below has been plotted. Select the correct graph for each equation.
(a) y = x2 + 1 (b) y = x 2 < 1 (c) y = 1 < x 2 (d) y = x2 + x
A y B y
2 2
–4 –2 2 4 x –4 –2 2 4 x
–2 –2
y D y
C 4
2
2
–4 –2 2 4 x
–4 –2 2 4 x –2
–2
C y = 4x < 1 D y = x2 + 2x < 1
(a) y (b) y
2 2
–4 –2 2 4 x –4 –2 2 4 x
–2 –2
(c) y (d) y
2 2
–4 –2 2 4 x –4 –2 2 4 x
–2 –2
7. (a) Which of the following equations are illustrated by the graphs shown?
Write the equation illustrated beside the number of each graph.
y = x2 2y = 2 + x xy = 1
y y y y
(i) (ii) (iii) (iv)
x x x x
Worked Example 1
Find any positive solutions of the equation
1
x2 = +x
x
by a graphical method.
Solution
Completing the table below provides the points needed to draw the graphs y = x 2 and
1
y= + x.
x x 0 0.5 1.0 1.5 2.0 2.5 3.0
x2 0 0.25 1 2.25 4 6.25 9
1
x + x Infinity 2.5 2 2.17 2.5 2.9 3.33
1
The graph below shows y = x 2 and y = + x.
x
The curves intersect where x = 1.45 and so this is the solution of the equation.
y
y = x2
6
4
1
y=x +
x
x
0 1 2 3.0
1.45
Worked Example 2
The graph below represents the function
f ( x ) = x 2 < 3x < 3
f(x)
f(x) = x2- 3x - 3
-2 -1 1 2 3 4 5 x
-2
-4
-6
(g) the interval on the domain for which f ( x ) is less than <3 .
(CXC)
Solution
Using the graph:
(a) f (2 ) = < 5
Note
The domain of a function is the values of x for which the function is defined. This is
covered in Unit 30.
Worked Example 3
Given that y = 2 x 2 < 9 x + 4
(a) copy and complete the table below
x <2 <1 0 2 4 6
y 30 4 0 22
(b) using a scale of 1 cm to represent 1 unit on the x-axis and 2 cm to represent 5 units
on the y-axis, draw the graph of y = 2 x 2 < 9 x + 4 for <2 ) x ) 6
(c) use your graph to solve the equation
2 x 2 < 9 x + 4 = 15
Solution
f ( <1) = 2 × ( <1) < 9 × ( <1) + 4 = 15
2
(a) Missing values:
f (2 ) = 2 × (2 ) < 9 × 2 + 4 = < 6
2
x <2 <1 0 2 4 6
y 30 15 4 <6 0 22
30
25
20
15
10
-2 -1 0 1 2 3 4 5 6 x
-5
2 x 2 < 9 x + 4 = 15
as x = < 1 and x = 5.5 (see graph above).
Worked Example 4
(a) The grid on the following page shows the line, l, which passes through the
points Q (0, <1 ) and R (3, 2).
(i) Determine the gradient of the line, l.
(ii) Write down the equation of the line, l.
(b) The table below shows three of the values of f ( x ) = x 2 < 4 x + 3 for values of x
from 0 to 4.
x 0 1 2 3 4
y 3 <1 0
f(x)
R
2
l
-1 1 2 3 4 5 6 x
Q
-1
-2
-3
(CXC)
Solution
2 < ( <1) 3
(a) (i) Gradient = = =1
3<0 3
(b) (i)
x 0 1 2 3 4
f ( x) 3 0 <1 0 3
(ii)
f(x)
R
2
l
-1 1 2 3 4 5 6 x
Q
-1
-2
-3
Exercises
1. Draw the graph of y = 3 x for 0 ) x ) 2 . Use the graph to solve the equations
4 = 3 x and 5 = 3 x .
2. Solve the quadratic equation x 2 < x < 2 = 0 by plotting the graphs y = x 2 and
y = x + 2.
3. Find the x-coordinates of the two points where the lines y = x 2 < 2 and
y = x + 4 intersect. Write down the quadratic equation which has the two
solutions you found from the points of intersection.
6. Draw the graph y = x 2 + 2 x for <3 ) x ) 2 . Use the graph to solve the
following equation,
x2 + 2x < a = 0
1
if (a) a=3 (b) a=2 (c) a=<
2
For what value of a is there only one solution?
For what value of a are there no real solutions to the equation?
2 yy
7.
x
–3 –2 –1 0 1 2 3
–1
–2
–3
y y
8.
8
x
–2 –1 0 1 2
–2
–4
9.
x <2 <1 0 1 2 3
y 7 0 3 12
The table above shows some values of y = 2 x 2 < x < 3 for values of x from <2
to 3.
(a) What are the missing values of y?
(b) On a graph, plot the points recorded in your completed table at (a) above,
and draw a smooth curve through the points.
(c) Use your graph to find the values of x for which 2 x 2 < x < 3 = 0 .
(CXC)
-4 -2 0 2 4 x
-2
-4
-6
(b) State TWO ways in which the graphs of the functions y = px 2 and
y = px 2 + qx + r are similar.
(c) State ONE way in which the graphs of the two functions is different.
(CXC)
11. (a) Given that f ( x ) = x 2 + x < 2 , copy and complete the table below.
f ( x) 4 <2 0
x <2 3
g( x ) <3 2
(d) Using the graphs, write down the coordinates of the points where the two
graphs intersect.
(CXC)
12. The diagram below shows the graph of the function f ( x ) = x 2 < 2 x < 3 for
a ) x ) b . The tangent to the graph at (2, <3 ) is also drawn.
Use the graph to determine the
(a) values of a and b which define the domain of the graph.
f(x)
-2 -1 0 1 2 3 4 x
-1
-2
-3
-4
(CXC)
1 3
13. (a) Given that y = x , copy and complete the table below.
2
x <2 <1 0 1 2 3
y <0.5 0 4 13.5
Worked Example 1
Draw the graph of y = x 3 for <2 ) x ) 2 . Draw tangents to the curve at x = –1 and
x = 1. Find the gradients of these tangents.
Solution
The graph of y = x 3 is shown below. The tangents have been drawn at x = –1 and
x = 1.
y 3
y= x
8
4
Tangent at
x =1
6
–2 –1 1 2 x
Tangent at
x = <1 3 2
–4
Tangent 1
–8
Using the triangles shown under each tangent, show that the gradients of both
tangents are 3.
Worked Example 2
The height, h, of a ball thrown straight up in the air varies so that at time, t, h = 8t < 5t 2 .
Plot a graph of h against t and use it to find:
(a) the speed of the ball when t = 0.6,
(b) the greatest speed of the ball.
Solution
The table below gives the values needed to plot the graph.
The '–' sign indicates that the ball is moving down rather than up. You can say the ball
moves down with speed 8 m/s or that the velocity of the ball is –8 m/s.
Worked Example 3
The following graph represents the cooling curve for a certain liquid.
Use the graph to estimate
(a) the temperature when the time, t, is 12 secs.
(b) the gradient of the curve when the time, t, is 4 secs.
160
Temperature (oC)
140
120
100
80
60
40
20
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 t
-20
Time (sec)
-40
-60
(CXC)
Solution
(a) From the graph, temperature 5 24 °C at time 12 secs.
0 < 60
(b) From the graph (see next page), gradient 5 = 5°C per sec.
12 < 0
160
Temperature (oC)
140
120
100
80 Gradient at t = 4
60
40
20
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 t
-20
Time (sec)
-40
-60
(CXC)
Worked Example 4
Velocity
The graph shows how the (m/s)
velocity of a car changes. 20
Find: 20
(a) the time when the
acceleration of 10
the car is zero,
(b) the acceleration when
0
t = 30. 0 10 20 30 40
Time (s)
Solution
The acceleration of the car Speed
is given by the gradient of (m/s)
the velocity-time graph. 20
There are 4 points where 0
the gradient is zero, at
t = 0, t = 10, t = 25 and 10
16
t = 40. At each of these
points a horizontal tangent 10
can be drawn to the curve 0
0 10 20 30 40
as shown opposite. Time (s)
Exercises
1. (a) Draw the graph of y = x 2 for 0 ) x ) 4 .
(b) By drawing tangents find the gradient of the curve at
x = 0, x = 1, x = 2, x = 3 and x = 4 .
(c) Comment on any patterns that are present in your answers.
3. The graph below shows how the temperature of a can of drink increases after it has
been taken out of a fridge.
T (°C)
20
0
10
0
0 5 10 15 20 25 30 Time
(mins)
4. A car moves so that its velocity, v, and time, t, is given by v = t 2 < 8t + 16.
(a) Plot a graph of velocity against time for 0 ) t ) 4 .
(b) Find the gradient of the curve when t = 0, 1, 2, 3 and 4.
(c) Use your results to (b) to sketch a graph of acceleration against time for the
graph.
Displacement
4
20 3
0
0 1 2 3 4 5 6 7
Time (s)
The graph shows how the displacement of an object varies with time.
(a) Copy the graph and by drawing tangents estimate the velocity of the object
when t = 0, 1, 2, 3, 4, 5, 6 and 7.
(b) Use your results to part (a) to draw a velocity-time graph.
(c) Consider your velocity-time graph and sketch an acceleration-time graph.
(b) Can you predict how to calculate the gradient of y = x 3 for any value of x?
v v
40 20
0 0
30 15
20 10
10 5
0 0
0 1 2 3 4 5 t 0 1 2 3 4 5 t
(c) (d)
v v
4 4
0 3
3
2 2
1 1
0 0
0 1 2 3 4 5 t 0 1 2 3 4 5 t
–1 –1
–2 –2
9. Here is a velocity-time graph of a car travelling between two sets of traffic lights.
Velocity
(m s 2 )
20
0
10
0
0 20 40 60 80 100 120
Calculate an estimate for the acceleration of the car when the time is equal to
20 seconds.
10. The temperature, K, of a liquid t minutes after heating is given in the table below.
t
(time in 0 10 20 30 40 50 60
minutes)
K
(Temp. in °C ) 84 61 40 29 27 26 25