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 , where is the slope and is the -intercept.
Quick Reference
| Form | Equation | When to Use |
|---|---|---|
| Point-slope form | Given slope and a point | |
| Slope-intercept form | Given slope and -intercept | |
| Point-point form | Given two points and | |
| General form | Any non-degenerate line | |
| Vertical line | Line parallel to the -axis |
Slope of a Line
Consider a straight line and two distinct points and on it. The slope of the line, denoted , is:
The slope of a line is independent of which two points we choose on the line. If is exactly one unit to the right of (so ), then : moving one unit horizontally, the slope tells us how many units we must travel vertically to stay on the line. This is the origin of the phrase:

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 -coordinate, making the denominator , and division by zero is not defined.
Equations of a Line
Point-Slope Form
To find the equation of the line through with slope , let be any other point on the line. The slope formula gives , which rearranges to:
Point-Slope Form
Slope-Intercept Form
The special case where the known point is the -intercept gives:
Slope-Intercept Form
where is the slope and is the -intercept.
Point-Point Form
Given two points and , first compute , then substitute into the point-slope form:
Point-Point Form
Vertical Lines
The equation of the vertical line through is .
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 with slope .
Solution. Using the point-slope form:
\begin{aligned} y - 4 &= \frac{3}{4}(x-(-2)) \\ y &= 4 + \frac{3}{4}(x+2) \\ y &= \frac{3}{4}x + \frac{3}{2} + 4 = \frac{3}{4}x + 5.5. \end{aligned}Alternatively, multiplying both sides of by 4:
A slope of means moving 4 units right and 3 units up traces the line.
Example 2. Find an equation of the line through $(1, 5)$ and .
Solution. First compute the slope:
Apply the point-slope form with :
Example 3. Find the equation of the line with slope and -intercept $3$.
Solution. From the slope-intercept form with and :
Example 4. Find the slope and -intercept of .
Solution. Solve for :
The slope is and the -intercept is .
Example 5. Find the slope and -intercept of .
Solution. Isolate :
The slope is and the -intercept 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.