|
Straight LinesLinear Equations in Two VariablesThe equation y = 2x – 1 that we used as an example for graphing functions produced a graph that was a straight line. This was no accident. This equation is one example of a general class of equations that we call linear equations in two variables. The two variables are usually (but of course don’t have to be) x and y. The equations are called linear because their graphs are straight lines. Linear equations are easy to recognize because they obey the following rules:
Describing LinesJust as there are an infinite number of equations that satisfy the above conditions, there are also an infinite number of straight lines that we can draw on a graph. To describe a particular line we need to specify two distinct pieces of information concerning that line. A specific straight line can be determined by specifying two distinct points that the line passes through, or it can be determined by giving one point that it passes through and somehow describing how “tilted” the line is. SlopeThe slope of a line is a measure of how “tilted” the line is. A highway sign might say something like “6% grade ahead.” What does this mean, other than that you hope your brakes work? What it means is that the ratio of your drop in altitude to your horizontal distance is 6%, or 6/100. In other words, if you move 100 feet forward, you will drop 6 feet; if you move 200 feet forward, you will drop 12 feet, and so on.
We measure the slope of lines in much the same way, although we do not convert the result to a percent. Suppose we have a graph of an unknown straight line. Pick any two different points on the line and label them point 1 and point 2:
In moving from point 1 to point 2, we cover 4 steps horizontally (the x direction) and 2 steps vertically (the y direction):
Therefore, the ratio of the change in altitude to the change in horizontal distance is 2 to 4. Expressing it as a fraction and reducing, we say that the slope of this line is
To formalize this procedure a bit, we need to think about the two points in terms of their x and y coordinates.
Now you should be able to see that the horizontal displacement is the difference between the x coordinates of the two points, or 4 = 5 – 1, and the vertical displacement is the difference between the y coordinates, or 2 = 4 – 2. In general, if we say that the coordinates of point 1 are (x1, y1) and the coordinates of point 2 are (x2, y2),
then we can define the slope m as follows:
where (x1, y1) and (x2, y2) are any two distinct points on the line.
Horizontal Lines |
|
y = mx + b |
where m and b are any two real numbers, then the graph will be a straight line with a slope of m and a y intercept equal to b.
As mentioned earlier, a line is fully described by giving its slope and one distinct point that the line passes through. While this point is customarily the y intercept, it does not need to be. If you want to describe a line with a given slope m that passes through a given point (x1, y1), the formula is
|
|
To help remember this formula, think of solving it for m:
![]()
Since the point (x, y) is an arbitrary point on the line and the point (x1, y1) is another point on the line, this is nothing more than the definition of slope for that line.
Another way to completely specify a line is to give two different points that the line passes through. If you are given that the line passes through the points (x1, y1) and (x2, y2), the formula is
|
|
This formula is also easy to remember if you notice that it is just the same as the point-slope form with the slope m replaced by the definition of slope,
![]()
|
|