Straight line equation
You may be sitting there thinking “I know how to find the equation of a straight
line! It’s just
You would be right. But actually, there’s more than one way to express the equation of a straight line, depending on what information you have about the line - sometimes, another form is easier to use.
This is the form you’re used to seeing. The values in the equation represent:
: the y-coordinate of any point on the line, which varies based on the x-coordinate. : the x-coordinate of any point on the line (this goes on forever to represent all values on a graph). : the gradient of the line - how steep it is. This is calculated by the change in divided by the change in between any two points on the line. : the y-intercept of the line - where it crosses the y-axis (where ).
You may or may not have seen this form before. It’s called point-gradient form and we use it in this situation:
- We know the gradient of the line,
. - We know one point on the line,
.
Remember:
and are the coordinates of any point on the line - we do not know these values. The equation of any line/curve will have an and in it - don’t be caught out by trying to find the values of them.
This form is useful because we can substitute in the values we know (the
gradient and the point) to get an equation that only has
The values in the equation represent:
: the x-coordinate of the known point on the line. : the y-coordinate of the known point on the line. : the gradient of the line.
Find the equation of the line with gradient 3 that passes through the point (2, 5).
Section titled “Find the equation of the line with gradient 3 that passes through the point (2, 5).”- Values we know:
- Substitute into the formula:
- Technically, we’ve now found the equation, but we can still simplify it:
- Answer: The equation of the line is
.
Find the equation of the line with gradient -2 that passes through the point (-1, 4).
Section titled “Find the equation of the line with gradient -2 that passes through the point (-1, 4).”- Values we know:
- Substitute into the formula:
- Again, we’ve now found the equation, but we can still simplify it:
- Answer: The equation of the line is
.
Finding the gradient from two points
Section titled “Finding the gradient from two points”There isn’t an explicit formula for finding the equation of a straight line from two points.
Technically, there could be. In fact, why don’t I make one up now?
Below,
That isn’t too nice to look at. But actually, you may notice that all I have
done is substitute the formula for gradient (
That’s because we can calculate the gradient from two points like this:
(this is the mathematical way of saying ‘change in y over change in x’).
Once we have the gradient, we can use either of the two forms of the straight line equation above to find the full equation of the line. The second form is usually easier to use, since we already have a point.
We can also pick either point to use in the equation - it doesn’t matter which one we choose - but it generally is easier to use the first point listed :)
Find the equation of the line that passes through the points (1, 2) and (4, 8).
Section titled “Find the equation of the line that passes through the points (1, 2) and (4, 8).”- Values we know:
- First, we find the gradient:
- Next, we substitute the gradient and one of the points into the point-gradient form of the equation:
- Finally, we can simplify the equation:
- Answer: The equation of the line is
.
Find the equation of the line that passes through the points (-2, 3) and (1, -1).
Section titled “Find the equation of the line that passes through the points (-2, 3) and (1, -1).”- Values we know:
- First, we find the gradient:
- Next, we substitute the gradient and one of the points into the point-gradient form of the equation:
- Finally, we can simplify the equation:
- Answer: The equation of the line is
.