CSCA Mathematics · Geometry & Trigonometry · Section 2 of 15

Lines & Distances

Equation of a Line

  • Slope-intercept form: y = mx + c where m = gradient, c = y-intercept.
  • Point-slope form: y - y₁ = m(x - x₁) — use when you know a point and the gradient.
  • General form: Ax + By + C = 0.

Chinese textbooks name these 斜截式 (slope-intercept), 点斜式 (point-slope) and 一般式 (general); they also use the 截距式 (intercept form) x/a + y/b = 1 for a line with x-intercept a and y-intercept b (both non-zero). A line with equal intercepts is either x + y = a or a line through the origin — do not lose the second case.

Parallel and perpendicular in general form. For A₁x + B₁y + C₁ = 0 and A₂x + B₂y + C₂ = 0: perpendicular ⇔ A₁A₂ + B₁B₂ = 0; parallel ⇔ A₁B₂ − A₂B₁ = 0 (then check the lines are not the same line). These tests also work when a line is vertical, where m₁·m₂ = −1 cannot be used. Example: ax + 2y + 1 = 0 ⊥ x − y + 3 = 0 gives a·1 + 2·(−1) = 0, so a = 2.

Finding the Equation

  1. Find the gradient m (given or computed from two points).
  2. Use point-slope form with any known point.
  3. Simplify to desired form.

Distance from a Point to a Line
The perpendicular distance from point (x₀, y₀) to line Ax + By + C = 0 is: d = |Ax₀ + By₀ + C| / √(A² + B²).

This formula is extremely useful in questions about triangles, areas, closest points and whether a line is tangent to a circle. For two parallel lines Ax + By + C₁ = 0 and Ax + By + C₂ = 0 (same A and B), the distance between them is d = |C₁ − C₂| / √(A² + B²).

Intersection of Two Lines
Solve the system of two linear equations simultaneously. The solution (x, y) is the intersection point. If the system has no solution, the lines are parallel.

Area of a Triangle from three vertices (x₁,y₁), (x₂,y₂), (x₃,y₃):
Area = ½|x₁(y₂-y₃) + x₂(y₃-y₁) + x₃(y₁-y₂)|.

Key takeaway: Line forms: y = mx + c, y - y₁ = m(x - x₁), Ax + By + C = 0. Point-to-line distance: |Ax₀+By₀+C|/√(A²+B²). Intersection: solve the system.

Key Formulas

Point-to-line: d = |Ax₀+By₀+C|/√(A²+B²)
Triangle area: ½|x₁(y₂-y₃)+x₂(y₃-y₁)+x₃(y₁-y₂)|

Worked Example 1

Example 1: Find the equation of the line through (2, 3) with gradient 4.

y - 3 = 4(x - 2) → y = 4x - 5.

Worked Example 2

Example 2: Distance from (1, 2) to the line 3x + 4y - 5 = 0.

d = |3(1)+4(2)-5| / √(9+16) = |3+8-5|/5 = 6/5 = 1.2.

Worked Example 3

Example 3: Find the area of the triangle with vertices (0,0), (4,0), (0,3).

Area = ½|0(0-3)+4(3-0)+0(0-0)| = ½|0+12+0| = 6.

Exam Tips

For the point-to-line distance formula, make sure the line is in general form Ax + By + C = 0 first.

For the triangle area formula, use absolute value — area is always positive.

Common Mistakes

Forgetting absolute value in distance: Distance is always positive — the formula uses |...|.

Using y = mx + c form in the distance formula: Convert to Ax + By + C = 0 form first.

Try This Yourself

Find the distance from (3, -1) to the line 5x + 12y + 7 = 0.

Show the answer

d = |5(3)+12(-1)+7|/√(25+144) = |15-12+7|/13 = 10/13 ≈ 0.77.

Practise It