topic badge
iGCSE (2021 Edition)

13.13 Finding the equation from a graph

Lesson

So far we have looked at methods for sketching graphs given their equation. We know that all linear equations can be written in the form $y=mx+c$y=mx+c where $m$m is the gradient and $c$c is the value of the $y$y-intercept.

Knowing this, we can also work out the equation of a straight line if we are given its graph - we just need to work out the gradient and $y$y-intercept. That is, we want to find $m$m and $c$c

To find $c$c we can just look at where the line crosses the $y$y-axis. The value of $y$y at this point is our $y$y-intercept.

To find the gradient, we want to choose two points on the line that we can easily identify the co-ordinates of, ideally points with integer co-ordinates. Using these two points we can identify by how much the $y$y-value has increased, or decreased, as $x$x increases by $1$1. If our two points are more than $1$1 unit apart on the $x$x-axis we can divide the change in the $y$y-coordinate by the change in the $x$x-coordinate.

Exploration

 

Consider the following graph. How can we work out its equation?

 

Every linear equation can be written in the form $y=mx+c$y=mx+c so if we can find $m$m and $c$c we can find the equation.

We can see that the $x$x and $y$y-intercepts are clearly marked on the graph and to find the equation of a straight-line graph we actually only need to know two points, so let's use the two intercepts.

The $y$y-intercept is at $\left(0,-6\right)$(0,6) which means $c=-6$c=6.

To find the gradient $m$m we want to work out how much the $y$y-value increases as $x$x increases by $1$1. As we move along the line from the $x$x-intercept to the $y$y-intercept , we have moved from $\left(0,-6\right)$(0,6) to $\left(2,0\right)$(2,0).That is, the $x$x-value has increased by $2$2 and the $y$y-value has increased by $6$6. This means that every time the $x$x-value increases by $2$2 the $y$y-value increases by $6$6. We can now divide $6$6 by $2$2 to find how much the $y$y-value increases as $x$x increases by $1$1. This means the gradient $m$m is equal to $\frac{6}{2}=3$62=3.

We could have chosen any two points on this line, but sometimes the coordinates might not be clear if they are not integer values. In this case, the point that is one unit along the $x$x-axis from the point $\left(0,-6\right)$(0,6) has coordinates of $\left(1,-3\right)$(1,3) which confirms the gradient is $3$3 and as expected.

Did you know?

If the line passes through the origin $\left(0,0\right)$(0,0) the $x$x and $y$y-intercept both occur at this point, so you will need to find a second point to calculate the gradient.

This line passes through the origin, we can see it also passes through the point $\left(2,-1\right)$(2,1)

 

Practice questions

Question 1

Consider the graph plotted below.

Loading Graph...

  1. Complete the table of values for the points shown on the line:

    $x$x $-1$1 $0$0 $1$1 $2$2
    $y$y $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  2. Linear relations can be written in the form $y=mx+c$y=mx+c.

    For this relationship, state the values of $m$m and $c$c:

    $m=\editable{}$m=

    $c=\editable{}$c=

  3. Write the linear equation expressing the relationship between $x$x and $y$y.

  4. Complete the coordinate value for the point on the line where $x=21$x=21:
    $\left(21,\editable{}\right)$(21,)

Question 2

Consider the line shown on the coordinate-plane:

Loading Graph...

  1. Complete the table of values by using the line shown in the graph.

    $x$x $-1$1 $0$0 $1$1 $2$2
    $y$y $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  2. Linear relations can be written in the form $y=mx+c$y=mx+c.

    For this relationship, state the values of $m$m and $c$c:

    $m=\editable{}$m=

    $c=\editable{}$c=

  3. Write the linear equation expressing the relationship between $x$x and $y$y.

  4. Complete the coordinate value for the point on the line where $x=27$x=27:
    $\left(27,\editable{}\right)$(27,)

Question 3
Consider the line shown on the coordinate-plane:

Loading Graph...

  1. State the value of the $y$y-intercept.

  2. By how much does the $y$y-value increase as the $x$x-value increases by $1$1?

  3. Write the linear equation expressing the relationship between $x$x and $y$y.

Outcomes

0580C3.2

Find the gradient of a straight line.

0580E3.2

Find the gradient of a straight line. Calculate the gradient of a straight line from the coordinates of two points on it.

0580E3.4

Interpret and obtain the equation of a straight line graph.

What is Mathspace

About Mathspace