UNIHIVE

Study Hub UNIPORT MTH 124

MTH 124 · Coordinate Geometry

Equations of straight lines

The forms of a line's equation, parallel and perpendicular lines, the angle between two lines, intersections and the distance from a point to a line.

Our notes

2 min read

Forms of the equation

FormEquationUse when you know
Gradient-intercepty = mx + cgradient m and y-intercept c
Point-gradienty − y₁ = m(x − x₁)one point and the gradient
Two-point(y − y₁)/(y₂ − y₁) = (x − x₁)/(x₂ − x₁)two points
Interceptx/a + y/b = 1the intercepts a and b
Generalax + 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

Watch

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.

All MTH 124 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.