by Shelley Walsh ©2001
Once you have learned to graph equations you are ready for the more interesting side to analytical geometry, finding equations that produce given graphs. The simplest and most basic case of this is the line. The goal is to take given characteristics that we want the line to have and find equations whose graphs have them. Here are the standard things that you need to master in order to do this.
| slope= | rise
run |
For analytical geometry it is necessary to be able to compute the
slope given two points on the line (x1,y1) and (x2,y2).
The traditional letter used to stand for the slope is m. Since the y
coordinate represents how far up or down the point is, the rise will be
the difference between the y's. Since the x coordinate represents how
far to the right or left the point is, the run will be the difference
between the x's. So this gives us
| m= | y2-y1
x2-x1 |
for the slope formula. By making the order matter in this formula we can make the slope be positive when the line is going uphill from left to right and negative when the line is going downhill from left to right. But for this we don't have to worry about which point is point number one and which is point number two, as long as we are consistent, because if we reversed the order of both the difference in the numerator and the one in the denominator the sign changes would cancel out.
| m= | 8-3
7-1 |
= | 5
6 |
Notice that if I had reversed the order of the points I would have
gotten
| m= | 3-8
1-7 |
= | -5
-6 |
= | 5
6 |
, |
| 3-8
7-1 |
= |
-6 |
, |
which is not the same thing. We can tell from this slope of 5/6 that the line goes uphill from left to right and it rises 5/6 as much as it travels from left to right. A line with slope 1 would be one that makes a 45° angle with the axes, so a line of slope 5/6 would be just a little less steep than that.
| m= |
7-2 |
= |
5 |
The line passing through these two points must be going downhill from left to right and it is somewhat steeper than the last one.
y-y1=m(x-x1)
tells us that if we want to find the equation of the line with slope m that passes through the point (x1,y1), then we can get this equation simply by writing down y-y1=m(x-x1) and simplifying.
y-2=3(x-1)
and now all we have to do is simplify.
y-2=3x-3
y=3x-1.
This says that this is the equation I would need to use if I wanted to get a line that passed through (1,2) and went uphill from left to right 3 times as fast as it went from left to right.
Why does this formula work and how would you go about figuring it out if you didn't know it? Well, to derive a formula like this we can use a standard strategy that is very often used in analytic geometry. What we do is we figure out an entrance test that any point on the line will pass and that only points on the line can pass. This technique comes up all over the place in analytical geometry, for another example see Equations of Circles. The way to do it in this case is to realize that the slope can be computed with ANY two points on the line. We already have one point given, so by using our point that needs to pass the entrance test as the other point, we should be able to write down an expression that has to be equal to the slope.
| y-y1
x-x1 |
. |
But we have already been given that the slope is m, so that means
that in order for (x,y) to be on our line, this expression must be
equal to m, which gives us this equation for our entrance test.
| y-y1
x-x1 |
=m |
We get make it look nicer by multiplying both sides by x-x1, and that gives us
y-y1=m(x-x1)
for our point slope formula.
This formula is quite powerful. We can get pretty much everything we need out of it.
A y intercept is a point of the form (0,b). For a point of that form the slope-point formula becomes
y-b=m(x-0)=mx.
Adding b to both sides this becomes
y=mx+b,
the slope-intercept formula.
y=2x+4.
| m= | 10-2
-3-1 |
= |
-4 |
=-2 |
Use (1,2) for the point, because the numbers are smaller, but we would get the same answer if we used (-3,10). Substituting into the slope-point formula, we get
y-2=-2(x-1)
y-2=-2x+2
y=-2x+4.
One interesting thing about this method is that you can apply to things other than analytical geometry. It sort of tells you how to do algebra backwards. You have two solutions to a two variable linear equation and you want to figure out what the equation that gives them is. You have a relation between two things and two data points and you know it is a linear relation, and you want to know what the equation is.
| m= | 212-32
100-0 |
= | 180
100 |
= | 9
5 |
Then I see that this one is really easier than the general case,
because one of my points (0,32) is the y intercept, so I don't need to
use the more complicated slope-point formula, instead I can use the
slope-intercept formula, where m=9/5 and b=32, so the equation and
formula is
| F= | 9
5 |
C+32. |
Slope-intercept: y=mx+b
Slope-point: y-y1=m(x-x1)
Here is something interesting about them. Clearly the slope-intercept is a special case of the slope-point, because the y intercept is after all a point, so if you forget the first of these formulas, you can do it all with the second one. But what is not so clear is that you can actually do the reverse. If you forget the slope-point formula you can do it all with the slope intercept formula by a little algebra trick. If you have a slope and an arbitrary point that is not the y intercept what you do is you plug in the m in the slope-intercept formula and leave the b as b. Then you substitute in the point into the equation, because in order for the point to be on the line, it must satisfy the equation. After you do that you will have only one letter in the equation, the b, so you just treat that like a variable in solve for it. Once you have the b, you just substitute it back into the equation, and the equation will be complete.
y=-2x+b,
for some b. Now I just need to find out what that b is. Since my line passes through the point (1,3), (1,3) must satisfy the equation, so I will find the b that makes this happen. Replacing x with 1 and y with 3, I get
3=-2(1)+b
3=-2+b.
I add 2 to both sides to solve for b and get b=5, so my equation is
y=-2x+5.
Parallel is pretty easy, because they are going the same direction, so their slopes must be equal.
Parallel: m1=m2
For perpendicular lines the relation is a bit more complicated. The slopes of perpendicular lines are negative reciprocals of each other.
Perpendicular: m1=-1/m2
To see why this is true, let's look at a picture of two perpendicular lines.
But pictures can be deceiving, so we want to see this by some kind of good geometric reasoning. The way to do this is to show that the two triangles are congruent. In congruent triangles all of the corresponding pieces, the three sides and three angles, have the same measures, but various geometry theorems tell us that in most cases three out of six of these pieces is enough to guarantee the rest. In particular, any two angles and one side, SAA, will do it. For these two triangles one angle and one side are easy to get. They are both right triangles and I have constructed the second one so that the b sides are the same.
What I would like to show is that the red angle and the pink angle in the picture below have the same measures.
pink+yellow=red+yellow,
we must have
pink=red
This gives us two angles and a side, so the two triangles must be congruent, and since they are congruent all of their other corresponding pieces must have the same measure, so the question mark side must have a length of a, so we have it.
Now that we know how what the slopes of parallel and perpendicular lines, we can also use this to find some equations of lines. We can find the equation of the line passing through a given point and parallel or perpendicular to a given line.