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 where m is the gradient and c is the value of the 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-intercept. That is, we want to find m and c.
To find c we can just look at where the line crosses the y-axis. The value of y at this point is our y-intercept.
To find the gradient, we want to choose two points on the line that we can easily identify the coordinates of, ideally points with integer coordinates. Using these two points we can identify by how much the y-value has increased, or decreased, as x increases by 1. If our two points are more than 1 unit apart on the x-axis we can divide the change in the y-coordinate by the change in the x-coordinate.
Consider the following graph. How can we work out its equation?
This means that every time the x-value increases by 2 the y-value increases by 6. We can now divide 6 by 2 to find how much the y-value increases as x increases by 1. This means the gradient m is equal to \dfrac62=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-axis from the point (0,-6) has coordinates of (1,-3) which confirms the gradient is 3 as expected.
If the line passes through the origin (0,0) the x and y-intercept both occur at this point, so you will need to find a second point to calculate the gradient.
Consider the line shown on the coordinate-plane:
Complete the table of values.
x | -1 | 0 | 1 | 2 |
---|---|---|---|---|
y |
Linear relations can be written in the form y=mx+c.
For this relationship, state the values of m and c.
Write the linear equation expressing the relationship between x and y.
Complete the coordinates for the point on the line where x=27: \, (27,⬚).
Consider the line shown on the coordinate-plane:
State the value of the y-intercept.
By how much does the y-value increase as the x-value increases by 1?
Write the linear equation expressing the relationship between x and y.
We could choose any two points on the line to find the equation of a line with a linear relationship.
All linear equations are of the form: