The tangent line to a curve is one of the central objects of differential calculus. Before you can understand tangent lines, you need fluency with straight lines: how to measure slope, how to write the equation of a line through a given point, and when two lines are parallel or perpendicular.
| Concept | Formula |
|---|---|
| Slope | |
| Point-slope form | |
| Parallel lines | |
| Perpendicular lines |
Slope of a Line
Consider a straight line and two distinct points and on it. The slope of the line, denoted by , is defined to be the ratio:

If () is the angle that a non-horizontal line makes with the positive direction of the -axis, then . (For a quick review of trigonometric functions, see Section 1.17.)
The sign of the slope is related to the direction of the line:
- If , is an acute angle and the line rises to the right.
- If , is an obtuse angle and the line falls to the right.
- If , the line is horizontal.

Equations of a Line
The equation of the line passing through a given point with slope is:
This is called the point-slope form of the equation of the line.
If we are given two points and , we first calculate , then substitute into the point-slope form to obtain the point-point form:
- The equation of a vertical line through is simply . A vertical line has no defined slope (the run is zero, so the rise-over-run ratio is undefined).
Parallel and Perpendicular Lines
Two lines with slopes and are:
- parallel .
- perpendicular .
Horizontal lines (slope 0) are perpendicular to vertical lines (undefined slope), which is consistent with the above rule in the limiting sense.