Straight Lines

A straight line represents a constant rate of change between two variables. Understanding linear equations and slopes directly prepares you for the concept of derivative as the instantaneous slope of a tangent line.

Quick Reference

Concept Formula Notes
Slope m = y 2 y 1 x 2 x 1 = rise run Ratio of vertical change to horizontal change
Point-Slope Form y y 1 = m ( x x 1 ) Given slope m and point ( x 1 , y 1 )
Point-Point Form y = y 1 + ( y 2 y 1 x 2 x 1 ) ( x x 1 ) Given two points ( x 1 , y 1 ) and ( x 2 , y 2 )
Parallel Lines m 1 = m 2 Equal slopes
Perpendicular Lines m 1 m 2 = 1 Slopes are negative reciprocals

Slope of a Line

Consider a straight line L and two distinct points P ( x 1 , y 1 ) and Q ( x 2 , y 2 ) on it (see the following figure). The slope of the line, often denoted by m, is defined to be the ratio

m = (y2 - y1) / (x2 - x1) = rise / run
Straight line showing two points P and Q with vertical rise and horizontal run
Slope m defined as rise over run for two points on a line.
  • If α ( 0 < α < π or 0 < α < 180 ) is the angle that a non-horizontal line makes with the positive direction of the x-axis (see the above figure), then m = tan α .
  • The sign of the slope is related to the direction of the line as follows:
    • If m > 0 , α is an acute angle, and the line rises to the right.
    • If m < 0 , α is an obtuse angle, and the line falls to the right.
    • If m = 0 , the line is horizontal.
Lines with positive slope, negative slope, and zero slope
Comparison of positive slope, negative slope, and horizontal line.

The equation of the line passing through a given point P ( x 1 , y 1 ) with slope m is

y - y1 = m(x - x1)

This equation is called the point-slope form of the equation of the line.

If we are given two points ( x 1 , y 1 ) and ( x 2 , y 2 ) on the line, then to find the equation of the line, we first have to calculate m, which is m = ( y 2 y 1 ) / ( x 2 x 1 ) . Substitution of this expression for m in the point-slope form of the equation gives the point-point form of the equation of the line:

y = y 1 + ( y 2 y 1 x 2 x 1 ) ( x x 1 )
  • The equation of a vertical line through ( x 1 , y 1 ) is x = x 1 .

Parallel and Perpendicular Lines

Two lines with slopes m 1 and m 2 are

  • parallel m 1 = m 2 .
  • perpendicular m 1 m 2 = 1 .

It is clear that horizontal lines (slope 0) are perpendicular to vertical lines (no slope).