Welcome, aspiring mathematicians! Today, we're going to embark on a deep dive into a fundamental concept in coordinate geometry: calculating the
distance of a point from a line. This seemingly simple idea has profound applications, not just in geometry, but also in vector algebra, calculus, and even physics. For competitive exams like JEE, a solid understanding here is non-negotiable, as it forms the basis for many complex problems.
Let's begin by understanding what we mean by "distance" in this context.
### What is the Distance of a Point from a Line?
Imagine you're standing at a particular point and there's a long, straight road (representing our line) in front of you. How would you measure your distance to that road? Would you walk diagonally to some point on the road? Or would you walk straight towards it, taking the shortest path?
In mathematics, when we talk about the "distance of a point from a line," we are always referring to the
shortest perpendicular distance from that point to the line. This means drawing a line segment from the given point to the given line such that this segment is perpendicular to the given line. The length of this perpendicular segment is our desired distance.
Let's visualize this:
* Given a point P(x₁, y₁)
* Given a line L: Ax + By + C = 0
* We need to find the length of the line segment PQ, where Q is a point on line L such that PQ is perpendicular to L.

### Derivation of the Formula
Let's derive the formula for this distance. This derivation is important not just for understanding where the formula comes from, but also because the steps involved can be used to solve related problems, especially finding the coordinates of the foot of the perpendicular.
Let the given point be P(x₁, y₁) and the line be L: Ax + By + C = 0.
Let Q(x₂, y₂) be the foot of the perpendicular from P to the line L.
The distance we want to find is PQ.
Here's the most common and intuitive derivation method used in JEE and CBSE:
1.
Slope of the Line L: The slope of the line Ax + By + C = 0 is m_L = -A/B (assuming B ≠ 0).
2.
Slope of the Perpendicular PQ: Since PQ is perpendicular to L, its slope m_PQ will be the negative reciprocal of m_L.
m_PQ = -1 / (-A/B) = B/A (assuming A ≠ 0).
3.
Equation of Line PQ: Using point-slope form, the equation of the line passing through P(x₁, y₁) with slope B/A is:
y - y₁ = (B/A)(x - x₁)
A(y - y₁) = B(x - x₁)
Bx - Ay - Bx₁ + Ay₁ = 0
Let's rearrange this to A(x - x₁) + B(y - y₁) = 0. No, this isn't the equation of PQ.
The normal vector to Ax + By + C = 0 is (A, B).
So, the line PQ is parallel to the normal vector (A, B).
We can express the coordinates of any point Q on the line PQ (which passes through P(x₁, y₁) and is parallel to the vector (A, B)) in parametric form:
x₂ = x₁ + Aλ
y₂ = y₁ + Bλ
where λ is a scalar parameter.
4.
Foot of the Perpendicular Q(x₂, y₂): Since Q(x₂, y₂) lies on the line L (Ax + By + C = 0), it must satisfy its equation:
A(x₁ + Aλ) + B(y₁ + Bλ) + C = 0
Ax₁ + A²λ + By₁ + B²λ + C = 0
(A² + B²)λ = -(Ax₁ + By₁ + C)
λ = -(Ax₁ + By₁ + C) / (A² + B²)
5.
Calculate the Distance PQ: The distance d = PQ = √[(x₂ - x₁)² + (y₂ - y₁)²].
Substitute x₂ = x₁ + Aλ and y₂ = y₁ + Bλ into the distance formula:
d = √[((x₁ + Aλ) - x₁)² + ((y₁ + Bλ) - y₁)²]
d = √[(Aλ)² + (Bλ)²]
d = √[A²λ² + B²λ²]
d = √[λ²(A² + B²)]
d = |λ|√(A² + B²)
6.
Substitute the value of λ:
d = |-(Ax₁ + By₁ + C) / (A² + B²)| √(A² + B²)
d = |Ax₁ + By₁ + C| / (A² + B²) * √(A² + B²)
d = |Ax₁ + By₁ + C| / √(A² + B²)
And there you have it! The formula for the distance of a point P(x₁, y₁) from the line Ax + By + C = 0 is:
d = |Ax₁ + By₁ + C| / √(A² + B²)
CBSE vs. JEE Focus:
For CBSE, simply knowing and applying this formula is often sufficient. For JEE, understanding the derivation helps in solving problems where you might need to find the *coordinates of the foot of the perpendicular* or the *image of the point* with respect to the line. The parameter `λ` we found is key to these extended problems. The coordinates of the foot of the perpendicular Q(x₂, y₂) are given by:
(x₂ - x₁) / A = (y₂ - y₁) / B = -(Ax₁ + By₁ + C) / (A² + B²)
This formula is often used to find Q(x₂, y₂).
### Special Cases and Observations
1.
Distance from the Origin (0,0): If the point is the origin P(0,0), then (x₁, y₁) = (0,0).
The formula simplifies to: d = |A(0) + B(0) + C| / √(A² + B²) =
|C| / √(A² + B²).
2.
Why the Absolute Value? Distance is a non-negative quantity. The expression (Ax₁ + By₁ + C) can be positive, negative, or zero. The absolute value ensures that the distance 'd' is always positive or zero. If (Ax₁ + By₁ + C) = 0, it means the point P(x₁, y₁) lies on the line itself, and thus the distance is 0, which makes perfect sense!
3.
Horizontal and Vertical Lines:
* For a horizontal line y = k (or 0x + 1y - k = 0), from a point (x₁, y₁):
d = |0(x₁) + 1(y₁) - k| / √(0² + 1²) = |y₁ - k| / 1 = |y₁ - k|. This is simply the absolute difference in y-coordinates, which is correct.
* For a vertical line x = h (or 1x + 0y - h = 0), from a point (x₁, y₁):
d = |1(x₁) + 0(y₁) - h| / √(1² + 0²) = |x₁ - h| / 1 = |x₁ - h|. This is the absolute difference in x-coordinates, also correct.
### Examples
Let's solidify our understanding with some examples.
Example 1: Basic Application
Find the distance of the point (2, 3) from the line 3x + 4y - 5 = 0.
Solution:
Given point P(x₁, y₁) = (2, 3)
Given line L: Ax + By + C = 0, which is 3x + 4y - 5 = 0.
Here, A = 3, B = 4, C = -5.
Using the formula d = |Ax₁ + By₁ + C| / √(A² + B²):
d = |3(2) + 4(3) + (-5)| / √(3² + 4²)
d = |6 + 12 - 5| / √(9 + 16)
d = |13| / √25
d = 13 / 5
The distance is
13/5 units.
Example 2: Distance involving an unknown constant (JEE Type)
If the distance of the point (1, -2) from the line 3x + 4y + k = 0 is 5 units, find the value(s) of k.
Solution:
Given point P(x₁, y₁) = (1, -2)
Given line L: 3x + 4y + k = 0. Here, A = 3, B = 4, C = k.
Given distance d = 5 units.
Using the formula d = |Ax₁ + By₁ + C| / √(A² + B²):
5 = |3(1) + 4(-2) + k| / √(3² + 4²)
5 = |3 - 8 + k| / √(9 + 16)
5 = |-5 + k| / √25
5 = |-5 + k| / 5
Now, we solve for k:
|-5 + k| = 5 * 5
|-5 + k| = 25
This implies two possibilities because of the absolute value:
Case 1: -5 + k = 25
k = 25 + 5
k = 30
Case 2: -5 + k = -25
k = -25 + 5
k = -20
So, there are two possible values for k:
30 and -20. This indicates that there can be two parallel lines at a given distance from a point.
Example 3: Locus Problem (JEE Advanced)
Find the equation of the locus of a point such that its distance from the line x + 2y - 1 = 0 is always twice its distance from the line 2x - y + 3 = 0.
Solution:
Let the moving point be P(h, k).
Let L₁ be the line x + 2y - 1 = 0. (A₁=1, B₁=2, C₁=-1)
Let L₂ be the line 2x - y + 3 = 0. (A₂=2, B₂=-1, C₂=3)
Distance of P(h, k) from L₁ (d₁):
d₁ = |1(h) + 2(k) - 1| / √(1² + 2²)
d₁ = |h + 2k - 1| / √5
Distance of P(h, k) from L₂ (d₂):
d₂ = |2(h) - 1(k) + 3| / √(2² + (-1)²)
d₂ = |2h - k + 3| / √5
According to the problem statement, d₁ = 2 * d₂:
|h + 2k - 1| / √5 = 2 * (|2h - k + 3| / √5)
|h + 2k - 1| = 2 |2h - k + 3|
Now, we handle the absolute values. This means the expression inside on one side is either equal to or negative of the expression on the other side.
Case 1: h + 2k - 1 = 2(2h - k + 3)
h + 2k - 1 = 4h - 2k + 6
0 = 3h - 4k + 7
So, one locus is
3x - 4y + 7 = 0.
Case 2: h + 2k - 1 = -2(2h - k + 3)
h + 2k - 1 = -4h + 2k - 6
h + 4h + 2k - 2k - 1 + 6 = 0
5h + 5 = 0
5h = -5
h = -1
So, the other locus is
x = -1.
This problem beautifully combines the distance formula with the concept of locus, a common theme in JEE.
### Conceptual Deep Dive and JEE Focus
1.
Sign of (Ax₁ + By₁ + C):
This is a critical concept for advanced problems. The expression (Ax₁ + By₁ + C) is related to the position of the point P(x₁, y₁) relative to the line Ax + By + C = 0.
* If Ax₁ + By₁ + C = 0, the point P lies on the line.
* If Ax₁ + By₁ + C > 0, the point P lies on one side of the line.
* If Ax₁ + By₁ + C < 0, the point P lies on the other side of the line.
The sign of (Ax₁ + By₁ + C) for a point (x₁, y₁) gives information about which side of the line it lies on.
For two points P(x₁, y₁) and R(x₃, y₃), they lie on the same side of the line Ax + By + C = 0 if (Ax₁ + By₁ + C) and (Ax₃ + By₃ + C) have the same sign. They lie on opposite sides if the signs are different. This is invaluable for problems involving region definition or finding points within a specific area.
2.
Normalization and Geometric Interpretation:
The term √(A² + B²) in the denominator is the magnitude of the normal vector to the line (A, B). When a line equation is normalized (i.e., divided by √(A² + B²)), it becomes x cosα + y sinα - p = 0, where 'p' is the perpendicular distance from the origin to the line. The distance formula is essentially an extension of this normal form.
3.
Alternative Derivations / Perspectives (for intuitive understanding):
*
Area Method: Consider a triangle formed by the point P(x₁, y₁) and two points on the line L. The area of this triangle can be calculated using the determinant formula. If you take the base as the distance between the two points on L, then the height of the triangle will be the perpendicular distance 'd'. This method can be quite algebraic but provides a different perspective.
*
Vector Projection: In vector geometry (often studied in 3D but applicable in 2D), the distance of a point P from a line passing through point A with direction vector
v is given by the magnitude of the projection of vector
AP onto the normal vector of the line. This is the underlying vector principle behind the formula.
### Conclusion
The distance of a point from a line is a foundational concept in coordinate geometry. Mastering its formula and understanding its derivation will not only help you solve direct problems but also equip you to tackle more complex questions in JEE, especially those involving locus, image of a point, and relative positions of points with respect to a line. Remember to always visualize the geometry and consider the implications of the absolute value for multiple solutions. Keep practicing, and you'll find this topic surprisingly versatile!