WorkbenchDrag the four small dots to change the two lines. First make A1B2−A2B1 equal 0, then make A1A2+B1B2 equal 0. What do the two lines look like in each case?
Loading figure…
What this move does
Substitute the point P0(x0,y0) into the normal form of a line and you get the signed distanceδ; its absolute value is the distance. In terms of the general form Ax+By+C=0:
Here θ is the angle through which l1 must turn counterclockwise to reach l2.
Distance: substitute, take the absolute value, divide by A2+B2.
Which side: points where Ax0+By0+C has the same sign lie on the same side of the line. Comparing the signs for two points (or for a point and the origin) is all it takes.
Angle, parallel, perpendicular: A1B2−A2B1=0 means parallel (or the same line); A1A2+B1B2=0 means perpendicular; otherwise use tanθ above.
Predict first
What is the distance from the point (2,−1) to the line 3x−4y+5=0?
Choose an answer first; then you can see the result.
✓You predicted it!✗Not what you expected — which is exactly why it is worth a pause.
d=32+42∣3⋅2−4⋅(−1)+5∣=515=3.
The numerator is what you get by “putting the point into the equation”; the denominator “normalizes” the equation. If you first convert to the normal form −53x+54y−1=0, substituting gives δ=−3: the distance is 3, and (2,−1) lies on the same side of the line as the origin.
Work through one
Example: the angle bisectors of l₁: x − 2y + 2 = 0 and l₂: 2x + y − 6 = 0
Step 1 / 4
Loading figure…
First, how do they sit?
A1A2+B1B2=1⋅2+(−2)⋅1=0: the two lines are perpendicular, meeting at (2,2).
A1A2+B1B2=0
A point at equal distances
Set up the equation: equal distances to both lines
Which one bisects which angle? Look at the signs
“Same sign, same side” is a direct use of the sign of the signed distance from the previous stop: multiplying each expression by its own normalizing factor does not change whether the two signs agree.
When it fails
Break it
Counterexample lab: remove one condition
Conclusion: tanθ=1+k1k2k2−k1 gives the angle← still true?
When both lines have slopes, the slope formula and the coefficient formula give the same tanθ. Drag and watch the reading for θ.
Loading figure…
Now l2 stands vertical: k2 does not exist, and there is nothing to put into the slope formula.
Loading figure…
But the coefficient formula still works: l1:x−2y−2=0, l2:x−2=0, so tanθ=A1A2+B1B2A1B2−A2B1=1+00−(−2)=2.
The other failure is 1+k1k2=0: then the lines are perpendicular, θ=90∘, and the tangent does not exist. The general-form condition A1A2+B1B2=0 absorbs both of these “exceptions”.
Practice
Exercise 1Basic
Find the distance from the point (−1,2) to the line 4x+3y−12=0.
Hint · direction
Put the point into the left side of the equation.
Hint · method
d=A2+B2∣Ax0+By0+C∣.
Hint · first step
The numerator is ∣4⋅(−1)+3⋅2−12∣=∣−10∣=10 and the denominator is 16+9=5.
Full solution
d=2.
Exercise 2Advanced
Find the distance between the parallel lines 3x+4y−7=0 and 6x+8y+1=0.
Hint · direction
Do the two equations have the same coefficients of x and y?
Hint · method
Take any point on one line and find its distance to the other; or first match the A and B of the two equations.
Hint · first step
(1,1) lies on the first line.
Full solution
d=36+64∣6+8+1∣=1015=23.
Exercise 3Advanced
Find the angle θ from the line l1:y=2x+1 to the line l2:y=−3x+4 (in degrees).
Hint · direction
“The angle from l1 to l2” has a direction: turn l1 counterclockwise until it reaches l2.
Hint · method
tanθ=1+k1k2k2−k1. Watch the order of k1 and k2.
Hint · first step
tanθ=1+2⋅(−3)−3−2=−5−5.
Full solution
tanθ=1, so θ=45∘. The other way round, the angle from l2 to l1 is 135∘.
Exercise 4Challenge
Find the reflection P′ of the point P(3,5) in the line x−y+1=0. (In the form (a,b).)
Hint · direction
Which two conditions does the reflected point satisfy?
Hint · method
PP′ is perpendicular to the given line, and the midpoint of PP′ lies on it. Let P′(a,b) and set up a system.
Hint · first step
Perpendicular: a−3b−5=−1; midpoint on the line: 2a+3−2b+5+1=0.
Full solution
The first gives a+b=8 and the second a−b=0, so P′(4,4). Check: the midpoint (27,29) satisfies 27−29+1=0.
Distance between parallel lines without matching the coefficients
✗
The wrong step: The distance between 3x+4y−7=0 and 6x+8y+1=0 is 32+42∣−7−1∣=58.
What went wrong? Think first, then open
DiagnosisThe formula A2+B2∣C1−C2∣ needs the two equations to have exactly the sameA and B. The coefficients of x and y in the second equation are twice those in the first, so its constant term 1 must be divided by 2 as well.
✓
The right step: Write the second line as 3x+4y+21=0; the distance is 5∣−7−21∣=23. Or take a point (1,1) on the first line and find its distance to the second: 10∣6+8+1∣=23.
“Match A and B first, then subtract the C’s”
Relations between Points and Lines ← → step · F full screen · Esc exit