We want the perpendicular distance from a point P(x1,y1) to a line L:ax+by+c=0.
Key insight: Among all possible paths from P to any point on line L, the perpendicular path is the shortest. Why? Because any slanted path forms the hypotenuse of a right triangle, which is always longer than the perpendicular leg.
Let's take a line ax+by+c=0 and a point P(x1,y1) not on the line.
Step 1: Find TWO points on the line.
Set x=0: we get by+c=0⇒y=−bc (if b=0), giving point A(0,−bc)
Set y=0: we get ax+c=0⇒x=−ac (if a=0), giving point B(−ac,0)
Step 2: Calculate the distance AB (base of our triangle).
AB=(−ac)2+(−bc)2=a2c2+b2c2=∣c∣a21+b21=a2+b2∣c∣⋅a2b2a2+b2⋅a2+b2
Wait, let me recalculate:
AB=a2c2+b2c2=∣c∣a2b2b2+a2=∣ab∣∣c∣a2+b2
Step 3: Calculate area of triangle PAB using the coordinate formula:
Area=21∣x1(yA−yB)+xA(yB−y1)+xB(y1−yA)∣=21x1(−bc−0)+0(0−y1)+(−ac)(y1+bc)=21−bcx1−acy1−abc2=2∣ab∣∣c∣∣ax1+by1+c∣
Step 4: Use the relationship Area = 21×base×height.
If d is the perpendicular distance (height), then:
2∣ab∣∣c∣∣ax1+by1+c∣=21×∣ab∣∣c∣a2+b2×d
Why it feels right: You might think distance can be negative (like a "signed distance"), but distance is always non-negative.
Steel-man: In some contexts (like determining which side of a line a point is on), the signed distance is useful. But when asked for "the distance," we want the magnitude.
Fix: Always include ∣⋯∣ around the numerator.
Why it feels right: y=mx+c is the most familiar form.
The issue: The formula requires the form ax+by+c=0. If you use y=2x+3, you must rewrite it as −2x+y−3=0 (or 2x−y+3=0).
Fix: Always convert to ax+by+c=0 first. Remember: y=mx+k⇒mx−y+k=0.
Why it feels right: You might forget the square root, thinking it's just a2+b2.
Fix: The denominator is a2+b2, not a2+b2. This comes from the magnitude of the normal vector (a,b).
When the point lies ON the line: ax1+by1+c=0, so d=0. ✓
Parallel lines: To find the distance between two parallel lines ax+by+c1=0 and ax+by+c2=0, pick ANY point on one line and find its distance to the other:
d=a2+b2∣c1−c2∣
Or think: "Plug point into line equation, divide by length of normal vector (a,b), take absolute value."
The denominator a2+b2 is just the magnitude of the normal vector—easy to remember if you know vectors!
Recall Explain to a 12-year-old
Imagine you're at a park (that's your point), and there's a straight path (that's the line). You want to get to the path as quickly as possible. Would you walk at an angle? No way! You'd walk straight toward it, making a90-degree angle with the path—that's the shortest route.
To find how far you need to walk, we have a magic formula. You take the equation of the path (which looks like ax+by+c=0), plug in where you're standing (x1,y1), and divide by a number that depends on the path's stepness (a2+b2). The answer tells you the shortest distance!
The absolute value bars ∣⋯∣ are like saying "ignore whether the number is positive or negative—just tell me how big it is," because distance can't be negative!
#flashcards/maths
What is the formula for the distance from a point (x1,y1) to a line ax+by+c=0? :: d=a2+b2∣ax1+by1+c∣
Why must we use the absolute value in the distance formula?
Because distance is always non-negative; the absolute value ensures we get a positive result regardless of which side of the line the point is on.
What form must the line equation be in to use the distance formula?
The line must be in the form ax+by+c=0 (standard/general form), not slope-intercept form.
What does the denominator a2+b2 represent geometrically?
It represents the magnitude (length) of the normal vector (a,b) to the line.
If a point lies ON the line, what is the distance from point to the line?
Zero, because ax1+by1+c=0 when the point is on the line.
How do you find the distance between two parallel lines ax+by+c1=0 and ax+by+c2=0?
d=a2+b2∣c1−c2∣ (pick any point on one line and find its distance to the other).
Why is the perpendicular distance the SHORTEST distance from a point to a line?
Any other path forms the hypotenuse of a right triangle, which is always longer than the perpendicular leg.
If the line is y=mx+k, how do you convert it to use in the distance formula?
Dekho, agar tumhe ek point diya hai aur ek straight line di hai, toh tumhe sabse chhoti dori nikalni hai point se line tak. Ab yeh dori kaise nikalte hain? Simple hai—jab tum point se line tak perpendicular (90 degree ka angle banate hue) chalo, toh woh sabse short path hota hai. Agar tum tircha (slanted) chaloge, toh zyada dori cover karni padegi, kyunki perpendicular wala path hypotenuse nahi hai, seedha leg hai right triangle ka.
Formula yad rakho: d=a2+b2∣ax1+by1+c∣. Yahan line ka equation ax+by+c=0 hona chahiye (standard form mein), aur point ka coordinate (x1,y1) hai. Numerator mein point ko line ki equation mein plug karo, absolute value lo (kyunki distance kabhi negative nahi hota), aur denominator mein normal vector (a,b) ki length a2+b2 se divide kar do. Bas!
Yeh formula bahut important hai—geometry mein, coordinate problems mein, aur real-life scenarios mein jaise highway se city ki dori nikalna. Ekbaar samajh gaye toh kafi useful hai, aur derivation bhi straight-forward hai area of triangle ya vector projection se. Practice karo different examples pe, aur dhyan do ki line ka form sahi ho aur absolute value mat bholo!