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 co-ordinates of, ideally points with integer co-ordinates. Using these two points we can calculate the  gradient , by identifying the rise and run of the line, or by using the gradient formula.
Consider the following graph. How can we work out its equation?
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.
The variables x and y are related, and a table of values is given below:
x | 1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|---|
y | -3 | -6 | -9 | -12 | -15 |
What is the value of y when x=0?
Write the linear equation expressing the relationship between x and y.
What is the value of y when x=-16?
A line passes through point A(8,2) and has a gradient of 2.
Find the value of the y-intercept of the line, denoted by c.
Write the equation of the line in gradient-intercept form.
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:
Sometimes we don't know the value of the y-intercept, but if we know the gradient and the coordinates of one point, we can still find the equation of the line. If we don't know the gradient, but know the coordinates of two points, we can first find the gradient and then use the point-gradient formula.
Let's say we know that the gradient of the line is -2. We also know a point on the line, (2,-8).
Now, apart from this point there are infinitely many other points on this line, and we will let (x,y) represent each of them.
Well, since (x,y) and (2,-8) are points on the line, then the gradient between them will be -2.
We know that to find the gradient given two points, we use:
m =\dfrac{y_2-y_1}{x_2-x_1}
Let's apply the gradient formula to (x,y) and (2,-8):
m =\dfrac{y-(-8)}{x-2}
But we know that the gradient of the line is -2. So:
\dfrac{y-(-8)}{x-2}=-2
Rearranging this slightly, we get:
y-(-8)=-2(x-2)
You may be thinking that we should simplify the equation, and of course if you do you should get y=-2x-4. What we want to do though, is generalise our steps so that we can apply it to any case where we're given a gradient m, and a point on the line (x_1,y_1).
We call this the point gradient formula, because when we know a point and the gradient using this rule we can easily get the equation of that line.
Given a point on the line (x_1,y_1) and the gradient m, the equation of the line is: y-y_1=m\left(x-x_1\right)
A line passes through the point A\left(-2, -9\right) and has a gradient of -2. Using the point-gradient formula, express the equation of the line in gradient intercept form.
To find the equation of a line given the gradient and a point, use the point-gradient formula: