Quick answer: The slope of a line through and is , where θ is its inclination. The most used forms are slope-intercept , point-slope , intercept , and general with slope . Lines are parallel if and perpendicular if .
Slope
| Line | Slope |
|---|---|
| Making angle θ with the positive x-axis | |
| Through two points | |
| Parallel to the x-axis | 0 |
| Parallel to the y-axis | Undefined |
Parallel lines: . Perpendicular lines: (or one horizontal and the other vertical).
Collinearity by slope: A, B, C are collinear if slope AB = slope BC.
Forms of the equation of a line
| Form | Equation | Use when you know |
|---|---|---|
| Slope-intercept | Slope and y-intercept | |
| Point-slope | Slope and one point | |
| Two-point | Two points | |
| Intercept | Both intercepts | |
| Normal | Perpendicular distance p from origin and its angle α | |
| Parametric | , | A point, direction, and distance r along the line |
| General | Any line |
From general form to other forms
For :
| Quantity | Value |
|---|---|
| Slope | |
| x-intercept | |
| y-intercept |
To normal form: divide by , choosing the sign that makes the right-hand side positive.
Lines parallel and perpendicular to a given line
| Required line | Equation |
|---|---|
| Parallel to | |
| Perpendicular to |
Find k by substituting the given point.
Worked examples
Example 1: two-point form
Find the line through and .
Step 1: .
Step 2: , so .
Example 2: intercept form
A line cuts intercepts 4 and −3 on the axes. Find its equation.
, so .
Example 3: perpendicular line through a point
Find the line through perpendicular to .
Step 1: Perpendicular form: .
Step 2: Substitute : , so .
Answer: .
Example 4: normal form
Write in normal form.
Divide by : , that is, . So and .
Summary table
| Idea | Key result |
|---|---|
| Slope from general form | |
| Parallel | Equal slopes |
| Perpendicular | |
| Parallel line family | |
| Perpendicular line family |
Exam tips
- Use the "swap and change sign" trick for perpendicular lines: .
- For a line with equal intercepts, use ; for intercepts equal in size but opposite in sign, .
- The area of the triangle a line makes with the axes is for intercepts a and b.
Next, see angle between lines and distance of a point, or browse the NIMCET Coordinate Geometry and Vectors chapter.
Common mistakes
- Writing the slope of as instead of .
- Using when one line is vertical.
- Forgetting the sign of a negative intercept in the intercept form.
- Leaving p negative in the normal form.
Frequently Asked Questions
What is the slope of the line ax + by + c = 0?
The slope is −a/b.
When are two lines perpendicular?
When the product of their slopes is −1, or when one is horizontal and the other vertical.
What is the intercept form of a line?
x/a + y/b = 1, where a and b are the x- and y-intercepts.
What is the normal form of a line?
x cos α + y sin α = p, where p is the perpendicular distance from the origin and α is the angle that perpendicular makes with the x-axis.
How do you find a line perpendicular to ax + by + c = 0?
Write bx − ay + k = 0 and find k from the given point.