How do I figure out the equation of a line?
There are a number of different forms of line equation. The easiest one to use depends on the information you have about the line.
Let’s, first of all, look at the form of line equation that, generally, people are most familiar with. It looks like this:
The represents the gradient of the line and the
represents the y-intercept.
Example: is the equation of the line that has a gradient of 3 and the y-intercept at (0,7).
So if you know the gradient and the y-intercept of a line you can simply plug the numbers into this form, and you’re done.
Ok. But what if I don’t know the y-intercept?
Let’s look at another form of the line equation. This is one that most folks are a little less familiar with and it does look a bit messier at first glance. But don’t stress, we’ll figure it out. It looks like this:
Now, we still have and it’s still the gradient of the line, but instead of
we have thatÂ
andÂ
. Together
represents the co-ordinate of any one point on the line.
Example: is the equation of the line that has a gradient of 3 and passes through the point (-2,1).
So we no longer need to know the y-intercept. We only need to know the gradient and any one point on the line.
Note: Be careful with those negatives. In the example line equation above, notice that , so:
Ok. But what if I don’t know the gradient?
If you know the co-ordinates of any two points on the line, then you can figure out the gradient of the line. The gradient describes the steepness of the line. This is sometimes referred to as ‘rise over run’. How far the line rises (or falls) compared to how far it runs along from left to right. So the gradient of the line will be:
where and
are any two points on the line.
That triangle symbol is the Greek letter delta (capital Delta in fact) and stands for ‘change’. So means ‘change in y’.
Example: If (-2,1) and (3,16) are two points on the line, then the gradient of the line is:
I’ve decided that (-2,1) is my , and (3,16) is my
. You could do it the other way around and it would still work. You’ll get the same answer (try it and see). Just make sure to make a decision and stick to it, otherwise you’ll end up with numbers all over the place.
Now that we know the gradient, we can use it to build the line equation in either of the two forms we’ve already seen. If the y-intercept is one of the points you know, then you can now write the equation in the form , otherwise you can write the equation in the form
using either of the two points you know.
Ok. But what if I don’t know any points on the line?
Find some
If you’re looking at a graph then often the easiest ones to see will be the x and y-intercepts, but you can use any points where you can clearly see the co-ordinates.
That’s all for now.
Exercise: Incidentally, the two example equations I used above do, in fact, represent the same line. See if you can do the algebra to rearrange this:
so that it looks like this: