This is the multi-page printable view of this section. Click here to print.
- 1: Equations of Lines – Complete Lesson
- 2: Equations of Lines – Series 1 (Fundamental)
- 3: Equations of Lines – Series 2
- 4: Equations of Lines – Series 3
- 5: Exercises: Equations of Lines
- 6:
1 - Equations of Lines – Complete Lesson
Equations of Lines
This lesson covers every standard way of writing the equation of a straight line, how to find slopes, how to handle parallel and perpendicular lines, and how to use the point-to-line distance formula. Two series of exercises (fundamental and advanced) with full solutions follow the theory.
Learning objectives
By the end of this lesson you should be able to:
- Compute the slope of a line from two points.
- Write the equation of a line in slope–intercept, point–slope, two–point, general, and intercept forms, and switch between them.
- Recognize horizontal and vertical lines.
- Determine whether two lines are parallel, perpendicular, coincident, or intersecting.
- Solve linear systems to find intersections.
- Compute the distance from a point to a line.
1. Coordinates and straight lines
In the Cartesian plane, a point is an ordered pair . A straight line is the set of points whose coordinates satisfy a linear equation in and .
A linear equation has the general shape with . Two distinct points determine exactly one line.
2. Slope (gradient)
Given two distinct points and with , the slope of the line is
Interpretation:
| Slope | Geometry |
|---|---|
| line rises from left to right | |
| line falls from left to right | |
| horizontal line | |
| undefined (division by 0) | vertical line |
The slope measures the rate of change: if increases by , changes by .
3. Forms of the equation of a line
Every non-vertical line has exactly one equation in each of the following forms. Vertical lines are treated separately.
3.1 Slope–intercept form
- = slope
- = -intercept (the line crosses the -axis at )
When to use: when you already know the slope and the -intercept.
3.2 Point–slope form
When to use: the most practical form when you know one point and the slope . Expand it to reach slope–intercept form.
3.3 Two–point form
When to use: when you only have two points. Compute first, then use point–slope form.
3.4 General (standard) form
with integers and usually , .
If , the slope is , and the equation can be rearranged to slope–intercept form:
3.5 Intercept form
If the line crosses the -axis at and the -axis at , with and :
3.6 Horizontal and vertical lines
| Line | Equation | Slope |
|---|---|---|
| horizontal through | ||
| vertical through | undefined |
4. Parallel and perpendicular lines
Let two lines have slopes and (both defined).
- Parallel . They are distinct if their -intercepts differ.
- Perpendicular , i.e. .
A vertical line and a horizontal line are always perpendicular.
5. Intersection of two lines
The intersection of two lines is the solution of the system formed by their equations.
Given and :
- If : exactly one intersection, .
- If and : parallel distinct lines, no solution.
- If and : coincident lines, infinitely many solutions.
6. Distance from a point to a line
The distance from the point to the line is
The absolute value ensures . This formula works for every line (including vertical and horizontal).
7. Worked examples
Example 1 – Line through two points
Find the equation of the line through and .
Step 1 – Slope:
Step 2 – Point–slope with :
Check with : ✓.
Example 2 – Line parallel to a given line
Find the line through parallel to .
The given line has slope (rewrite as ). The parallel line has the same slope:
Example 3 – Line perpendicular to a given line
Find the line through perpendicular to .
Slope of the given line: . Perpendicular slope: .
Example 4 – Intersection
Find the intersection of and .
Solve , so , hence , then . Intersection: .
Example 5 – Distance from a point to a line
Distance from to :
Example 6 – Intercept form
A line passes through the -intercept and the -intercept . Intercept form:
Series 1 – Fundamental (10 exercises)
These exercises test the basic mechanics. Show every step.
Exercise 1.1 — Find the slope of the line through and .
Exercise 1.2 — Find the equation of the line through with slope .
Exercise 1.3 — Find the equation of the line through and .
Exercise 1.4 — Convert to slope–intercept form. State the slope and the -intercept.
Exercise 1.5 — Find the -intercept and the -intercept of the line .
Exercise 1.6 — Write the equation of (a) the horizontal line through and (b) the vertical line through the same point.
Exercise 1.7 — Find the equation of the line parallel to passing through .
Exercise 1.8 — Find the equation of the line perpendicular to passing through .
Exercise 1.9 — Determine whether and are parallel, coincident, or intersecting.
Exercise 1.10 — Find the intersection of and .
Series 2 – Advanced (10 exercises)
These exercises combine several notions. A complete solution is expected.
Exercise 2.1 — Find the equation of the line with -intercept and -intercept .
Exercise 2.2 — Calculate the distance from to the line .
Exercise 2.3 — Let , , . Find the equations of the three sides of triangle .
Exercise 2.4 — For the same triangle, find the equation of the altitude from to .
Exercise 2.5 — Find the perpendicular bisector of the segment joining and .
Exercise 2.6 — Find the equation of the line through parallel to the line through and .
Exercise 2.7 — The lines and are perpendicular. Find the value(s) of .
Exercise 2.8 — Find the point on the line that is closest to the origin.
Exercise 2.9 — Find the equation(s) of the line through such that the triangle formed with the two axes has area .
Exercise 2.10 — The lines , , and are concurrent. Find .
Solutions – Series 1
1.1 .
1.2 .
1.3 . Then .
1.4 . Slope: , -intercept: .
1.5 -intercept: set → . -intercept: set → . So and .
1.6 (a) ; (b) .
1.7 Parallel slope . .
1.8 Perpendicular slope . .
1.9 Rewrite both: and . Same slope, same intercept → coincident lines.
1.10 . Intersection: .
Solutions – Series 2
2.1 Intercept form: .
2.2 .
2.3 . . : slope , so .
2.4 is horizontal, so the altitude from is vertical through : .
2.5 Midpoint . Slope ; perpendicular slope . Line: .
2.6 Slope . Parallel through : .
2.7 Slopes: , . Perpendicular condition :
Check: ✓. So .
2.8 Line . Distance from origin: . The closest point is the projection of onto the line. Line direction vector . Normal . Parametric foot:
So .
2.9 Let the line be . Passes through : . Area of the triangle: .
Case : from , multiply by : . System: and , .
Case : and . Substitute : , .
Two lines: (i.e. ), and the two solutions with .
2.10 Solve : and . Add: , . Point .
Substitute into : .
So .
Summary sheet
| Concept | Formula |
|---|---|
| Slope through two points | |
| Slope–intercept form | |
| Point–slope form | |
| Two-point form | |
| General form | with |
| Intercept form | |
| Parallel condition | |
| Perpendicular condition | |
| Distance point → line |
Practice and exercises
Choose an exercise series to practise the equations of lines.
Equations of Lines – Series 1 (Fundamental)
Fundamental exercises on the equation of a line: slope, point–slope form, parallel and perpendicular lines, intersection.
Advanced exercises on the equation of a line: intercepts, altitudes, perpendicular bisectors, distance point-to-line, concurrency, parametric lines.
Fundamental exercises on the equation of a line: slope, point–slope form, parallel and perpendicular lines, intersection.
Interactive exercises
Interactive exercises on slopes, linear equations, parallel and perpendicular lines.
2 - Equations of Lines – Series 1 (Fundamental)
These exercises test the basic mechanics of the equation of a line. Show every step.
Reminder. Slope: · Point–slope: · Parallel: · Perpendicular: .
Exercises
Exercise 1.1 — Find the slope of the line through and .
Exercise 1.2 — Find the equation of the line through with slope .
Exercise 1.3 — Find the equation of the line through and .
Exercise 1.4 — Convert to slope–intercept form. State the slope and the -intercept.
Exercise 1.5 — Find the -intercept and the -intercept of the line .
Exercise 1.6 — Write the equation of (a) the horizontal line through and (b) the vertical line through the same point.
Exercise 1.7 — Find the equation of the line parallel to passing through .
Exercise 1.8 — Find the equation of the line perpendicular to passing through .
Exercise 1.9 — Determine whether and are parallel, coincident, or intersecting.
Exercise 1.10 — Find the intersection of and .
Solutions
1.1 .
1.2 Point–slope: , hence
1.3 . Then , so
1.4 . Slope: , -intercept: .
1.5 -intercept: set → . -intercept: set → . Points: and .
1.6 (a) ; (b) .
1.7 Parallel slope . , hence
1.8 Perpendicular slope . , hence
1.9 Rewrite both equations in slope–intercept form:
Same slope and same intercept → coincident lines.
1.10 Solve :
Intersection: .
3 - Equations of Lines – Series 2
These exercises test the basic mechanics of the equation of a line. Show every step.
Reminder. Slope: · Point–slope: · Parallel: · Perpendicular: .
Exercises
Exercise 1.1 — Find the slope of the line through and .
Exercise 1.2 — Find the equation of the line through with slope .
Exercise 1.3 — Find the equation of the line through and .
Exercise 1.4 — Convert to slope–intercept form. State the slope and the -intercept.
Exercise 1.5 — Find the -intercept and the -intercept of the line .
Exercise 1.6 — Write the equation of (a) the horizontal line through and (b) the vertical line through the same point.
Exercise 1.7 — Find the equation of the line parallel to passing through .
Exercise 1.8 — Find the equation of the line perpendicular to passing through .
Exercise 1.9 — Determine whether and are parallel, coincident, or intersecting.
Exercise 1.10 — Find the intersection of and .
Solutions
1.1 .
1.2 Point–slope: , hence
1.3 . Then , so
1.4 . Slope: , -intercept: .
1.5 -intercept: set → . -intercept: set → . Points: and .
1.6 (a) ; (b) .
1.7 Parallel slope . , hence
1.8 Perpendicular slope . , hence
1.9 Rewrite both equations in slope–intercept form:
Same slope and same intercept → coincident lines.
1.10 Solve :
Intersection: .
4 - Equations of Lines – Series 3
These exercises combine several notions. A complete solution is expected.
Reminder. Distance from to : .
Exercises
Exercise 2.1 — Find the equation of the line with -intercept and -intercept .
Exercise 2.2 — Calculate the distance from to the line .
Exercise 2.3 — Let , , . Find the equations of the three sides of triangle .
Exercise 2.4 — For the same triangle, find the equation of the altitude from to .
Exercise 2.5 — Find the perpendicular bisector of the segment joining and .
Exercise 2.6 — Find the equation of the line through parallel to the line through and .
Exercise 2.7 — The lines and are perpendicular. Find the value(s) of .
Exercise 2.8 — Find the point on the line that is closest to the origin.
Exercise 2.9 — Find the equation(s) of the line through such that the triangle formed with the two axes has area .
Exercise 2.10 — The lines , , and are concurrent. Find .
Solutions
2.1 Intercept form:
2.2 Distance formula:
2.3 Side : both endpoints have , so . Side : both endpoints have , so . Side : slope , -intercept , so
2.4 is the horizontal line . The altitude from is therefore vertical through :
2.5 Midpoint . Slope , so the perpendicular slope is . Then
2.6 Slope . Parallel line through :
2.7 Slopes:
Perpendicular condition :
(Valid since .) So .
2.8 Write the line as . Its direction vector is , so a normal vector is . The closest point is the orthogonal projection of :
So
2.9 Let the line be . It passes through :
Case : multiply by : , so . Then
Case : . Then
Solutions:
2.10 Solve and :
Substitute into :
5 - Exercises: Equations of Lines
Practise calculating slopes, finding equations of lines, and identifying parallel and perpendicular lines.
Exercise 1: Calculate the slope
Consider the two points and . Calculate the slope of the line passing through A and B.
1°
2° Determine the equation of the line in the form :
Exercise 2: Find the slope and y-intercept
For each function, identify the slope and the y-intercept .
1° : a = b =
2° : a = b =
3° : a = b =
Exercise 3: Determine the equation of a line
Find the equation of the line passing through the two given points.
1° The line passes through and .
2° The line passes through and .
Exercise 4: Parallel and perpendicular lines
Consider the line .
1° Find the slope of a line parallel to d:
2° Find the slope of a line perpendicular to d:
3° Find the equation of the line parallel to d and passing through :