MTH 124 · Coordinate Geometry
Our notes
2 min readForms of the equation
| Form | Equation | Use when you know |
|---|---|---|
| Gradient-intercept | y = mx + c | gradient m and y-intercept c |
| Point-gradient | y − y₁ = m(x − x₁) | one point and the gradient |
| Two-point | (y − y₁)/(y₂ − y₁) = (x − x₁)/(x₂ − x₁) | two points |
| Intercept | x/a + y/b = 1 | the intercepts a and b |
| General | ax + by + c = 0 | (gradient −a/b) |
Worked example. Line through (1, 2) and (3, 8): m = 6/2 = 3, so y − 2 = 3(x − 1), giving y = 3x − 1.
Parallel and perpendicular lines
- Parallel to ax + by + c = 0: ax + by + k = 0 (same a, b).
- Perpendicular to ax + by + c = 0: bx − ay + k = 0.
Worked example. Line through (1, 1) perpendicular to 2x − 3y + 6 = 0. The given gradient is 2/3, so the new gradient is −3/2: y − 1 = −(3/2)(x − 1), giving 3x + 2y − 5 = 0. Check: (1, 1) gives 3 + 2 − 5 = 0 ✓.
Angle between two lines
tan θ = |(m₁ − m₂)/(1 + m₁m₂)|.
Worked example. y = 2x + 1 and y = −3x + 4: tan θ = |(2 + 3)/(1 − 6)| = 1, so θ = 45°.
If 1 + m₁m₂ = 0 the lines are perpendicular (θ = 90°).
Intersection
Solve the two equations together. y = 3x − 1 and x + y = 7: x + 3x − 1 = 7, x = 2, y = 5. Point (2, 5).
A family of lines through the meeting point of L₁ = 0 and L₂ = 0 is L₁ + kL₂ = 0: choose k to meet one more condition.
Distance from a point to a line
The perpendicular distance from (x₀, y₀) to ax + by + c = 0 is
d = |ax₀ + by₀ + c| / √(a² + b²).
Worked example. From (2, 1) to 3x + 4y − 5 = 0: d = |6 + 4 − 5|/5 = 1.
Distance between parallel lines ax + by + c₁ = 0 and ax + by + c₂ = 0: |c₁ − c₂|/√(a² + b²).
Same side or opposite sides
Substitute two points into ax + by + c. Same sign: same side of the line. Opposite signs: the line passes between them.
Exams usually ask: find a line from given facts; perpendicular bisector of a segment; angle between lines; foot of the perpendicular; distance from a point to a line; concurrency of three lines.
Common mistake: reading the gradient of ax + by + c = 0 as a or −a. It is −a/b: rearrange to y = (−a/b)x − c/b if unsure.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Precalculus 2e, 2.2 Graphs of Linear Functions
(opens openstax.org in a new tab)
OpenStax, Precalculus 2e, 2.2 Graphs of Linear Functions, CC BY-NC-SA 4.0 · licence
-
Precalculus 2e, 2.1 Linear Functions
(opens openstax.org in a new tab)
OpenStax, Precalculus 2e, 2.1 Linear Functions, CC BY-NC-SA 4.0 · licence
-
Linear equation
(opens en.wikipedia.org in a new tab)
Wikipedia, Linear equation, CC BY-SA 4.0 · licence
-
Distance from a point to a line
(opens en.wikipedia.org in a new tab)
Wikipedia, Distance from a point to a line, CC BY-SA 4.0 · licence
Watch
-
Point Slope Form - Basic Introduction - Algebra
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
Writing Equations of Lines Parallel and Perpendicular to a Given Line Through a Point
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Slope-intercept form | Algebra I | Khan Academy
9 min · ≈ 41 MB · about ₦23
(opens youtube.com in a new tab)
-
Calculus 1 Lecture 0.1: Lines, Angle of Inclination, and the Distance Formula
49 min · ≈ 221 MB · about ₦124
(opens youtube.com in a new tab)
-
Introduction to Slope-Intercept Form (TTP Video 40)
35 min · ≈ 158 MB · about ₦89
(opens youtube.com in a new tab)
-
Finding Equations of Parallel and Perpendicular Lines (TTP Video 43)
26 min · ≈ 117 MB · about ₦66
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.