- Practice
- About 22 min
- 5 practice questions
Distances, angle bisectors and families of lines
Find the distance from a point to a line and between parallel lines, the foot of the perpendicular and the image of a point, the bisectors of the angles between two lines, and lines of a family satisfying a condition.
If something looks wrong, please tell us.
By the end of this lesson you can
- Use the distance |ax₁ + by₁ + c|/√(a² + b²) from a point to a line.
- Find the distance between two parallel lines.
- Find the foot of the perpendicular from a point and the image of a point in a line.
- Find the bisectors of the angles between two lines and pick the acute one.
- Use one-parameter families of lines, including L₁ + λL₂ = 0, and solve a shortest-path problem by reflection.
How far is a village from a straight highway? Where should a station on a straight line be built so that cables to two villages are as short as possible? These questions need the distance from a point to a line and the image of a point in a line.
Distance formulas
Between two points: √((x₂ − x₁)² + (y₂ − y₁)²). From a point to a line: the textbook writes the line ax + by + c = 0 in normal form x cos α + y sin α = p, with cos α = ±a/√(a² + b²), sin α = ±b/√(a² + b²) and p = ∓c/√(a² + b²). The parallel line through P(x₁, y₁) is x cos α + y sin α = p′ with p′ = x₁ cos α + y₁ sin α. The distance from P to the line is the difference |p′ − p|, which simplifies to the formula below. Between parallel lines ax + by + c₁ = 0 and ax + by + c₂ = 0 (same a and b): apply the point formula to any point of one line.
Distance from (x₁, y₁) to ax + by + c = 0 is |ax₁ + by₁ + c|/√(a² + b²). Distance between ax + by + c₁ = 0 and ax + by + c₂ = 0 is |c₁ − c₂|/√(a² + b²).
Worked example 1: two distances
(i) From (3, −2) to 3x + 4y − 11 = 0: |9 − 8 − 11|/√(9 + 16) = |−10|/5 = 2. (ii) Between 5x − 12y + 4 = 0 and 10x − 24y − 5 = 0: first make a and b the same by dividing the second by 2: 5x − 12y − 5/2 = 0. Then the distance is |4 − (−5/2)|/√(25 + 144) = (13/2)/13 = 1/2. Forgetting to divide by 2 is the most common slip.
Foot of the perpendicular and image
For a point P(x₁, y₁) and a line ax + by + c = 0, let t = (ax₁ + by₁ + c)/(a² + b²). The foot of the perpendicular Q is given by (x − x₁)/a = (y − y₁)/b = −t, and the image (reflection) P′ by (x − x₁)/a = (y − y₁)/b = −2t. The image is twice as far along the same perpendicular, so Q is the midpoint of PP′.
Worked example 2: foot and image
For P(4, 1) and the line x − y + 1 = 0: t = (4 − 1 + 1)/(1 + 1) = 2. Foot: (x − 4)/1 = (y − 1)/(−1) = −2, so x = 2 and y = 3, giving (2, 3); check 2 − 3 + 1 = 0. Image: (x − 4)/1 = (y − 1)/(−1) = −4, so x = 0 and y = 5, giving (0, 5); check that the midpoint of (4, 1) and (0, 5) is (2, 3), the foot.
Bisectors of the angles between two lines
A point on a bisector is equally far from both lines, so the two bisectors of a₁x + b₁y + c₁ = 0 and a₂x + b₂y + c₂ = 0 are (a₁x + b₁y + c₁)/√(a₁² + b₁²) = ±(a₂x + b₂y + c₂)/√(a₂² + b₂²). The two bisectors are perpendicular. To tell which is which, first make c₁ and c₂ positive. The + sign then gives the bisector of the angle containing the origin; that angle is acute when a₁a₂ + b₁b₂ < 0 and obtuse when a₁a₂ + b₁b₂ > 0.
Worked example 3: the acute-angle bisector
Find the bisectors of 3x − 4y + 1 = 0 and 12x + 5y − 3 = 0, and say which bisects the acute angle. Make the constants positive: 3x − 4y + 1 = 0 and −12x − 5y + 3 = 0. Then a₁a₂ + b₁b₂ = 3(−12) + (−4)(−5) = −36 + 20 = −16 < 0, so the + sign gives the acute-angle bisector: (3x − 4y + 1)/5 = (−12x − 5y + 3)/13, so 39x − 52y + 13 = −60x − 25y + 15, that is 99x − 27y − 2 = 0, or 99x − 27y = 2. The − sign gives 39x − 52y + 13 = 60x + 25y − 15, that is 3x + 11y − 4 = 0, the obtuse-angle bisector. Check: 99 × 3 + (−27) × 11 = 297 − 297 = 0, so the bisectors are perpendicular.
Families of lines
The equation ax + by + c = 0 really has only two independent constants (divide by b to get Ax + y + C = 0), so two conditions fix a line. Lines that satisfy only one condition form a one-parameter family. Examples: y = mx + 5 with m varying is every non-vertical line through (0, 5); y = −2x + b with b varying is every line of slope −2; ax + by + λ = 0 is the family parallel to ax + by + c = 0; and bx − ay + λ = 0 is the family perpendicular to it. Lines through the point of intersection of L₁ ≡ a₁x + b₁y + c₁ = 0 and L₂ ≡ a₂x + b₂y + c₂ = 0 are given by L₁ + λL₂ = 0, because any point on both lines makes both brackets zero.
Families of lines
-
Fixed y-intercept, slope varies
- y = mx + b, b fixed
- Lines through (0, b)
-
Fixed slope, intercept varies
- ax + by + λ = 0
- All parallel to ax + by + c = 0
-
Perpendicular family
- bx − ay + λ = 0
-
Through an intersection
- L₁ + λL₂ = 0
- Find λ from one more condition
Worked example 4: choosing a member of a family
(i) Find the line through the intersection of x + y − 3 = 0 and 2x − y = 0 that passes through (3, 4). The family is (x + y − 3) + λ(2x − y) = 0. At (3, 4): (3 + 4 − 3) + λ(6 − 4) = 0, so 4 + 2λ = 0 and λ = −2. Then x + y − 3 − 4x + 2y = 0, that is −3x + 3y − 3 = 0, or x − y + 1 = 0. Check: the intersection is (1, 2), and 1 − 2 + 1 = 0. (ii) Find the lines parallel to 3x − 4y + 2 = 0 at distance 3 from (1, 2). The family is 3x − 4y + λ = 0, and |3 − 8 + λ|/5 = 3 gives |λ − 5| = 15, so λ = 20 or λ = −10: 3x − 4y + 20 = 0 and 3x − 4y − 10 = 0.
Worked example 5: the shortest cable (reflection)
Two villages are 2 km and 4 km from a straight road, on the same side, and the feet of their perpendiculars on the road are 8 km apart. A station on the road is joined to both villages by straight cables. Take the road as the x-axis and the foot of the first perpendicular as the origin: A = (0, 2), B = (8, 4). Reflect A in the road to A′ = (0, −2). For any point R on the road, AR = A′R, so AR + RB = A′R + RB, which is least when R lies on the straight line A′B. The least total length is A′B = √(8² + 6²) = 10 km. The line A′B has slope 6/8 = 3/4: y = (3/4)x − 2, which meets the road (y = 0) at x = 8/3, so the station should be 8/3 km (about 2.67 km) from the foot of the first perpendicular.
Key takeaways: distance from a point to a line is |ax₁ + by₁ + c|/√(a² + b²); make a and b match before using the parallel-lines formula; foot and image come from the same ratio with −t and −2t; for bisectors, make constants positive and use the sign of a₁a₂ + b₁b₂; and pick a member of a family by using the one extra condition.
Check your understanding
-
1. What is the distance from the point (2, 1) to the line 3x + 4y + 5 = 0?
- 3
- 15
- 5
- 1
Show answer
Answer: A. |3(2) + 4(1) + 5|/√(9 + 16) = 15/5 = 3. The value 15 forgets to divide by √(a² + b²) = 5.
-
2. What is the distance between the parallel lines 3x + 4y − 7 = 0 and 6x + 8y + 1 = 0?
- 8/5
- 3/2
- 6/5
- 8
Show answer
Answer: B. Divide the second by 2: 3x + 4y + 1/2 = 0. Then the distance is |−7 − 1/2|/5 = (15/2)/5 = 3/2. Using 1 instead of 1/2 gives the wrong value 8/5.
-
3. What is the image of the point (3, 1) in the line y = x?
- (−3, −1)
- (3, −1)
- (1, 3)
- (−1, −3)
Show answer
Answer: C. For x − y = 0, t = (3 − 1)/2 = 1, and (x − 3)/1 = (y − 1)/(−1) = −2 gives x = 1 and y = 3. Reflection in y = x simply swaps the coordinates.
-
4. Which equation represents the lines through the point of intersection of L₁ = 0 and L₂ = 0?
- L₁L₂ = 0
- L₁ − L₂ = 1
- L₁ + L₂ = λ
- L₁ + λL₂ = 0
Show answer
Answer: D. At the intersection both L₁ and L₂ are 0, so L₁ + λL₂ = 0 holds there for every λ; each λ gives a line through that point. L₁L₂ = 0 is the pair of the two given lines themselves.
-
5. What is the foot of the perpendicular from the origin to the line x + y = 4?
- (2, 2)
- (4, 0)
- (1, 3)
- (4, 4)
Show answer
Answer: A. For x + y − 4 = 0 and the point (0, 0), t = −4/2 = −2, so x/1 = y/1 = 2, giving (2, 2). Check: (2, 2) is on the line, and the line y = x through it is perpendicular to x + y = 4.
Sign in to keep track of the lessons you finish.