Straight Lines
A straight line is the simplest curve in the plane. Its defining feature is a constant slope: the ratio of the vertical change to the horizontal change between any two points on the line. Every non-vertical line can be written in the form
Quick Reference
| Form | Equation | When to Use |
|---|---|---|
| Point-slope form | Given slope |
|
| Slope-intercept form | Given slope |
|
| Point-point form | Given two points |
|
| General form | Any non-degenerate line | |
| Vertical line | Line parallel to the |
Slope of a Line
Consider a straight line
The slope of a line is independent of which two points we choose on the line. If
The sign of the slope indicates the line's direction:
: the line rises to the right. : the line falls to the right. : the line is horizontal.
Important: The slope of a vertical line is undefined. Any two points on a vertical line share the same
Equations of a Line
Point-Slope Form
To find the equation of the line through
Point-Slope Form
Slope-Intercept Form
The special case where the known point is the
Slope-Intercept Form
where
Point-Point Form
Given two points
Point-Point Form
Vertical Lines
The equation of the vertical line through
General Equation of a Line
General Equation of a Line
Every line can be written in this form, and every equation of this form represents a line.
To understand why, consider two cases:
- Nonvertical line
: rearrange to , which matches the general form with , , . - Vertical line
: rearrange to , matching , , .
Conversely, from
- If
, solve for : . This is slope-intercept form with slope and -intercept . - If
, the equation becomes , giving : a vertical line.
Worked Examples
Example 1. Find an equation of the line through
Solution. Using the point-slope form:
Alternatively, multiplying both sides of
A slope of
Example 2. Find an equation of the line through
Solution. First compute the slope:
Apply the point-slope form with
Example 3. Find the equation of the line with slope
Solution. From the slope-intercept form with
Example 4. Find the slope and
Solution. Solve for
The slope is
Example 5. Find the slope and
Solution. Isolate
The slope is
Frequently Asked Questions
What is the slope of a line?
The slope of a line is the ratio of the vertical change (rise) to the horizontal change (run) between any two points on the line. It measures both the steepness and direction of the line. A positive slope means the line rises from left to right, a negative slope means it falls, and a slope of zero means the line is horizontal.