Precalculus with Integrated CalculusXYZ Homework Edition

⇩ Download ▾

15.5 Graphing Lines

In Section A.3.2, we concerned ourselves with the finite line segment between two points P and Q . Specifically, we found its length (the distance between P and Q ) and its midpoint. In this section, our focus will be on the entire line, and ways to describe it algebraically. Consider the generic situation below.

Coordinate-plane figure.
Figure 15.62

To give a sense of the `steepness' of the line, we recall that we can compute the slope of the line as follows. (Read the character Δ as `change in'.)

A couple of notes about Equation A.3 are in order. First, don't ask why we use the letter ` m ' to represent slope. There are many explanations out there, but apparently no one really knows for sure.1 Secondly, the stipulation x 1 x 0 (or Δ x 0 ) ensures that we aren't trying to divide by zero. The reader is invited to pause to think about what is happening geometrically when the `change in x ' is 0 ; the anxious reader can skip along to the next example.

A few comments about Example A.5.1 are in order. First, if the slope is positive then the resulting line is said to be `increasing', meaning as we move from left to right,2 the y -values are getting larger.3 Similarly, if the slope is negative, we say the line is `decreasing', since as we move from left to right, the y -values are getting smaller. A slope of 0 results in a horizontal line which we say is `constant', since the y -values here remain unchanged as we move from left to right, and an undefined slope results in a vertical line.4

Second, the larger the slope is in absolute value, the steeper the line. You may recall from Intermediate Algebra that slope can be described as the ratio ` rise run '. For example, if the slope works out to be 1 2 , we can interpret this as a `rise' of 1 unit upward for every `run' of 2 units to the right:

Coordinate-plane figure.
Figure 15.69

In this way, we may view the slope as `the rate of change of y with respect to x '. From the expression

m = Δ y Δ x

we get Δ y = m Δ x so that the y -values change ` m ' times as fast as the x -values. We'll have more to say about this concept in Section 1.2 when we explore applications of linear functions; presently, we will keep our attention focused on the analytic geometry of lines. To that end, our next task is to find algebraic equations that describe lines and we start with a discussion of vertical and horizontal lines.

Consider the two lines shown below: V (for `V'ertical Line) and H (for `H'orizontal Line).

Figure: The line
Figure 15.70 The line V
Figure: The line
Figure 15.71 The line H

All of the points on the line V have an x -coordinate of 3 . Conversely, any point with an x -coordinate of 3 lies on the line V . Said differently, the point ( x , y ) lies on V if and only if x = 3 . Because of this, we say the equation x = 3 describes the line V , or, said differently, the graph of the equation x = 3 is the line V .

In Section 5.5, we'll spend a great deal of time talking about graphing equations. For now, it suffices to know that a graph of an equation is a plot of all of the points which make the equation true. So to graph x = 3 , we plot all of the points ( x , y ) which satisfy x = 3 and this gives us our vertical line V .

Turning our attention to H , we note that every point on H has a y -coordinate of 2 , and vice-versa. Hence the equation y = 2 describes the line H , or the graph of the equation y = 2 is H . In general:

Of course, we may be working on axes which aren't labeled with the `usual' x 's and y 's. In this case, we understand Equation A.4 to say ` horizontal axis label = a ' describes a vertical line through ( a , 0 ) and ` vertical axis label = b ' describes a horizontal line through ( 0 , b ) .

Using the concept of slope, we can develop equations for the other varieties of lines. Suppose a line has a slope of m and contains the point ( x 0 , y 0 ) . Suppose ( x , y ) is another point on the line, as indicated below.

Coordinate-plane figure.
Figure 15.76

Equation A.3 yields

m = y y 0 x x 0 m ( x x 0 ) = y y 0 y y 0 = m ( x x 0 )

which is known as the point-slope form of a line.

A few remarks about Equation A.5 are in order. First, note that if the slope m = 0 , then the line is horizontal and Equation A.5 reduces to y y 0 = 0 or y = y 0 , as prescribed by Equation A.4.5 Second, we may need to change the letters in Equation A.5 from ` x ' and ` y ' depending on the context, so while Equation A.5 should be committed to memory, it should be understood that ` x ' refers to whichever variable is used to label the horizontal axis, and y refers to whichever variable is used to label the vertical axis. Lastly, while Equation A.5 is, by far, the easiest way to construct the equation of a line given a point and a slope, more often than not, the equation is solved for y and simplified into the form below.

Equation A.6 is probably6 a familiar sight from Intermediate Algebra. You may recall from that class that the `intercept' in `slope-intercept' comes from the fact that this line `intercepts' or crosses the y -axis at the point ( 0 , b ) .7 If we set the slope, m = 0 , we obtain y = b , the formula for Horizontal Lines first introduced in Equation A.4. Hence, any line which has a defined slope m can be represented in both point-slope and slope-intercept forms. The only exceptions are vertical lines.8 There is one equation - the aptly named 'general form' - which describes every type of line and it is presented on the next page.

Note the indefinite article `a' in Equation A.7. The line y = 5 is a general form for the horizontal line through ( 0 , 5 ) , but so are 3 y = 15 and 0.5 y = 2.5 . The reader is left to ponder the use of the definite article `the' in Equations A.5 and A.6. Regardless of which form the equation of a line takes, note that the variables involved are all raised to the first power.9 For instance, there are no x terms, no y 2 terms or any variables appearing in denominators. Let's look at a few examples.

While every point on a line holds value and meaning,11 we've reminded you of certain points, called `intercepts,' which hold special enough significance to be singled out. Formally, we define these as follows.

As usual, the labels of the axes in the problem will dictate the labels on the intercepts. If we're working in the v w -plane, for instance, there would be v - and w -intercepts.

The last little bit of analytic geometry we need to review about lines are the concepts of `parallel' and `perpendicular' lines. Parallel lines do not intersect,12 and hence, parallel lines necessarily have the same slope. Perpendicular lines intersect at a right ( 90 ) angle. The relationship between these slopes is somewhat more complicated, and is summarized below.

Figure: 12, 12
Figure 15.80 L 1 L 2 , m 1 = m 2
Figure: 12, 12
Figure 15.81 L 1 L 2 , m 1 m 2 = 1

A few remarks about Theorem A.3 are in order. First off, the theorem assumes that the slopes of the lines exist. The reader is encouraged to think about the case when one (or both) of the slopes don't exist. Along those same lines, the reader is encouraged to think about why the stipulations m 1 0 and m 2 0 appear in the statement regarding slopes of perpendicular lines, and what happens in this case as well. (Think geometrically!) In Exercise, you'll prove the assertion about the slopes of perpendicular lines. For now, we accept it as true and use it in the following example.

Our last example with lines sets up a fourth kind of symmetry which will be revisited in Section 5.6.

Exercises

In Exercises -, find both the point-slope form and the slope-intercept form of the line with the given slope which passes through the given point.

  1. m = 3 , P ( 3 , 1 )
  2. m = 2 , P ( 5 , 8 )
  3. m = 1 , P ( 7 , 1 )
  4. m = 2 3 , P ( 2 , 1 )
  5. m = 1 5 , P ( 10 , 4 )
  6. m = 1 7 , P ( 1 , 4 )
  7. m = 0 , P ( 3 , 117 )
  8. m = 2 , P ( 0 , 3 )
  9. m = 5 , P ( 3 , 2 3 )
  10. m = 678 , P ( 1 , 12 )

In Exercises -, find the slope-intercept form of the line which passes through the given points.

  1. P ( 0 , 0 ) , Q ( 3 , 5 )
  2. P ( 1 , 2 ) , Q ( 3 , 2 )
  3. P ( 5 , 0 ) , Q ( 0 , 8 )
  4. P ( 3 , 5 ) , Q ( 7 , 4 )
  5. P ( 1 , 5 ) , Q ( 7 , 5 )
  6. P ( 4 , 8 ) , Q ( 5 , 8 )
  7. P ( 1 2 , 3 4 ) , Q ( 5 2 , 7 4 )
  8. P ( 2 3 , 7 2 ) , Q ( 1 3 , 3 2 )
  9. P ( 2 , 2 ) , Q ( 2 , 2 )
  10. P ( 3 , 1 ) , Q ( 3 , 1 )

In Exercises -, graph the line. Find the slope, y -intercept and x -intercept, if any exist.

  1. y = 2 x 1
  2. y = 3 x
  3. y = 3
  4. y = 0
  5. y = 2 3 x + 1 3
  6. y = 1 x 2
  7. Graph 3 v + 2 w = 6 on both the v w - and w v -axes. What characteristics to both graphs share? What's different?
  8. Find all of the points on the line y = 2 x + 1 which are 4 units from the point ( 1 , 3 ) .

In Exercises -, you are given a line and a point which is not on that line. Find the line parallel to the given line which passes through the given point.

  1. y = 3 x + 2 , P ( 0 , 0 )
  2. y = 6 x + 5 , P ( 3 , 2 )
  3. y = 2 3 x 7 , P ( 6 , 0 )
  4. y = 4 x 3 , P ( 1 , 1 )
  5. y = 6 , P ( 3 , 2 )
  6. x = 1 , P ( 5 , 0 )

In Exercises -, you are given a line and a point which is not on that line. Find the line perpendicular to the given line which passes through the given point.

  1. y = 1 3 x + 2 , P ( 0 , 0 )
  2. y = 6 x + 5 , P ( 3 , 2 )
  3. y = 2 3 x 7 , P ( 6 , 0 )
  4. y = 4 x 3 , P ( 1 , 1 )
  5. y = 6 , P ( 3 , 2 )
  6. x = 1 , P ( 5 , 0 )
  7. We shall now prove that y = m 1 x + b 1 is perpendicular to y = m 2 x + b 2 if and only if m 1 m 2 = 1 . To make our lives easier we shall assume that m 1 > 0 and m 2 < 0 . We can also “move” the lines so that their point of intersection is the origin without messing things up, so we'll assume b 1 = b 2 = 0 . (Take a moment with your classmates to discuss why this is okay.) Graphing the lines and plotting the points O ( 0 , 0 ) , P ( 1 , m 1 ) and Q ( 1 , m 2 ) gives us the following set up.

    Coordinate-plane figure.
    Figure 15.85

    The line y = m 1 x will be perpendicular to the line y = m 2 x if and only if O P Q is a right triangle. Let d 1 be the distance from O to P , let d 2 be the distance from O to Q and let d 3 be the distance from P to Q . Use the Pythagorean Theorem to show that O P Q is a right triangle if and only if m 1 m 2 = 1 by showing d 1 2 + d 2 2 = d 3 2 if and only if m 1 m 2 = 1 .

Answers

  1. y + 1 = 3 ( x 3 ) y = 3 x 10
  2. y 8 = 2 ( x + 5 ) y = 2 x 2
  3. y + 1 = ( x + 7 ) y = x 8
  4. y 1 = 2 3 ( x + 2 ) y = 2 3 x + 7 3
  5. y 4 = 1 5 ( x 10 ) y = 1 5 x + 6
  6. y 4 = 1 7 ( x + 1 ) y = 1 7 x + 29 7
  7. y 117 = 0 y = 117
  8. y + 3 = 2 ( x 0 ) y = 2 x 3
  9. y 2 3 = 5 ( x 3 ) y = 5 x + 7 3
  10. y + 12 = 678 ( x + 1 ) y = 678 x + 666
  11. y = 5 3 x
  12. y = 2
  13. y = 8 5 x 8
  14. y = 9 4 x 47 4
  15. y = 5
  16. y = 8
  17. y = 5 4 x + 11 8
  18. y = 2 x + 13 6
  19. y = x
  20. y = 3 3 x
  21. y = 2 x 1

    slope: m = 2

    y -intercept: ( 0 , 1 )

    x -intercept: ( 1 2 , 0 )

    Coordinate-plane figure.
    Figure 15.86
  22. y = 3 x

    slope: m = 1

    y -intercept: ( 0 , 3 )

    x -intercept: ( 3 , 0 )

    Coordinate-plane figure.
    Figure 15.87
  23. y = 3

    slope: m = 0

    y -intercept: ( 0 , 3 )

    x -intercept: none

    Coordinate-plane figure.
    Figure 15.88
  24. y = 0

    slope: m = 0

    y -intercept: ( 0 , 0 )

    x -intercept: { ( x , 0 ) | x  is a real number }

    Coordinate-plane figure.
    Figure 15.89
  25. y = 2 3 x + 1 3

    slope: m = 2 3

    y -intercept: ( 0 , 1 3 )

    x -intercept: ( 1 2 , 0 )

    Coordinate-plane figure.
    Figure 15.90
  26. y = 1 x 2

    slope: m = 1 2

    y -intercept: ( 0 , 1 2 )

    x -intercept: ( 1 , 0 )

    Coordinate-plane figure.
    Figure 15.91
  27. w = 3 2 v + 3

    slope: m = 3 2

    w -intercept: ( 0 , 3 )

    v -intercept: ( 2 , 0 )

    Coordinate-plane figure.
    Figure 15.92

    v = 2 3 w + 2

    slope: m = 2 3

    v -intercept: ( 0 , 2 )

    w -intercept: ( 3 , 0 )

    Coordinate-plane figure.
    Figure 15.93
  28. ( 1 , 1 ) and ( 11 5 , 27 5 )
  29. y = 3 x
  30. y = 6 x + 20
  31. y = 2 3 x 4
  32. y = 1 3 x 2 3
  33. y = 2
  34. x = 5
  35. y = 3 x
  36. y = 1 6 x + 3 2
  37. y = 3 2 x + 9
  38. y = 3 x 4
  39. x = 3
  40. y = 0

Adapted from Precalculus, Preliminary 4th Edition (integrated calculus), by Carl Stitz and Jeff Zeager (stitz-zeager.com), licensed under CC BY-NC-SA 3.0. Changes were made: reformatted as an accessible XYZ web edition. License: CC-BY-NC-SA-3.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.