Careers360 Logo
Distance of a Point From a Line: Definition and Examples

Distance of a Point From a Line: Definition and Examples

Edited By Komal Miglani | Updated on Feb 15, 2025 02:04 AM IST

In this article, we will cover the concept of Distance of a point from a line. This category falls under the broader category of Coordinate Geometry, which is a crucial Chapter in class 11 Mathematics. It is not only essential for board exams but also for competitive exams like the Joint Entrance Examination(JEE Main) and other entrance exams such as SRMJEE, BITSAT, WBJEE, BCECE, and more. A total of eleven questions have been asked on JEE MAINS( 2013 to 2023) from this topic including one in 2014, one in 2015, three in 2019, two in 2020, one in 2021, and two in 2022.

This Story also Contains
  1. Distance of a Point From a Line
  2. Formula to Calculate the Distance of a Point From a Line
  3. Derivation of distance of a point to the line
  4. What is the distance between two parallel lines?
  5. Formula to calculate the distance between two parallel lines
  6. Solved Examples Based on the Distance of a point from a line
Distance of a Point From a Line: Definition and Examples
Distance of a Point From a Line: Definition and Examples

Distance of a Point From a Line

The distance between a point and a line is the distance between them. It measures the minimum distance or length required to move a point on the line. The shortest distance of a point from a line is the length of the perpendicular drawn from the point to the line.

Formula to Calculate the Distance of a Point From a Line

Background wave

Perpendicular length from a point (x1,y1) to the line L:Ax+By+C=0 is
|Ax1+By1+C|A2+B2

The steps to derive the formula for finding the shortest distance between a point and line.

Step 1: Consider a line L:Ax+By+C=0 whose distance from the point P (x1,y1) is d .

Step 2: Draw a perpendicular PM from the point P to the line L as shown in the figure below.

Step 3: Let Q and R be the points where the line meets the x-and y-axes, respectively.

Step 4: The coordinates of the points can be written as Q(C/A,0) and R(0, C/B).

Derivation of distance of a point to the line

Let L:Ax+By+C=0 be a line, whose distance from the point P(x1,y1) is
d. Draw a perpendicular PM from the point P to the line L

The line meets the x -and y -axes at the points Q and R , respectively. Then, the coordinates of the points are Q(CA,0) and R(0,CB). Thus, the area of the triangle PQR is given by
area(PQR)=12PMQRPM=2( area ΔPQR)QR also. area (PQR)=12|x1(0+CB)+(CA)(CBy1)+0(y10)|=12|x1CB+y1CA+C2AB|
also. area (PQR)=12|x1(0+CB)+(CA)(CBy1)+0(y10)|
or 2×area(PQR)=|CAB||Ax1+By1+C1|
QR=(0+CA)2+(CB0)2=|CAB|A2+B2

Substituting the values
PM=|Ax1++By1+C|A2+B2

What is the distance between two parallel lines?

The equation of two parallel lines is ax+by+c=0 and ax+by+d=0, then the distance between them is the perpendicular distance of any point on one line from the other line.

Formula to calculate the distance between two parallel lines

If (x1,y1) is any point on the line ax+by+c=0
Then, ax1+by1+c=0
Now, the perpendicular distance of the point (x1,y1) from the line ax+by+d=0 is |ax1+by1+d|a2+b2=|dc|a2+b2

Recommended Video Based on the Distance of a Point from a Line


Solved Examples Based on the Distance of a point from a line

Example 1: Let R be the point (3,7) and let P and Q be two points on the line x+y=5 such that PQR is an equilateral triangle. Then the area of PQR is:
[JEE MAINS 2022]

Solution

sin60=5/2aa=523

Area of PQR=34a2=2523
Hence the correct answer is 2523

Example 2: Let a circle C of radius 5 lie below the x -axis. The line L1:4x+3y+2=0 passes through the center P of the circle C and intersects the line L2:3x4y11=0 at Q. The line L2 touches C at the point Q. Then the distance P from the line 5x12y+51=0 is [JEE MAINS 2022]

Solution: The point of intersection of L1:4x+3y+2=0 and L2:3x4y11=0 is
Q(1,2)

The Centre P of the circle lies on L1
Slope of L1:tanθ=43cosθ:35,sinθ=45
Coordinates of P:(15cosθ,25sinθ)
=(4,6)
distance of P(4,6) from 5x12y+51 is
d=|5×412×(6)+5152+122|=20+72+5113=14313=11

Hence, the answer is 11

Example 3: If p and q are the lengths of the perpendiculars from the origin on the lines, xcosecαysecα=kcot2α and xsinα+ycosα=ksin2α respectively, then k2 is equal to :
[JEE MAINS 2021]

Solution:

p=|kcot2α|cosec2α+sec2αp2=k2cos22αsin22αsin2α+cos2α(sin2αcos2α)2=k2cos22α4sin2αcos2α×sin2αcos2αp2=k24cos22αcos22α=4p2k2(1)q=|ksin2αsin2α+cos2α|q=k2sin22αsin22α=q2k2(2)(1)+(2)4p2k2+q2k2=1k2=4p2+q2

Hence, the answer is 4p2+q2

Example 4: The length of the perpendicular from the origin, on the normal to the curve, x2+2xy3y2=0 at the point (2,2) is :
[JEE MAINS 2020]

Solution: Perpendicular length from a point (x1,y1) to the line L : Ax+By+C=0 is
|Ax1++By1+C|A2+B2x2+2xy3y2=0x2+3xyxy3y2=0(xy)(x+3y)=0xy=0x+3y=0
(2,2) satisfy xy=0
Normal
x+y=λ=4

Hence the perpendicular distance from the origin
=|0+042|=22

Example 5: If a variable line, 3x+4yλ=0 is such that the two circles x2+y22x2y+1=0 and x2+y218x2y+78=0 are on opposite sides, then the set of all values of λ is the interval

Solution: Given 3x+4yλ=0
(7λ)(31λ)<0 (Since centers are on opposite sides)
=>λϵ(7,31)
|7λ5|1 and |7λ5|2
|7λ|5 and |31λ|10=>λ2 or λ12
and
=>λ21 or λ41

(1) (2)(3)
λ[12,21]

Hence, the answer is [12,21].

Frequently Asked Questions (FAQs)

1. What is the shortest distance between a point and a line?

The shortest distance of a point from a line is the length of the perpendicular drawn from the point to the line.

2. How do you calculate the distance between a point and a line?

The distance between a point and a line is calculated by 

 Perpendicular length from a point (x1,y1) to the line L : Ax+By+C=0 is
|Ax1++By1+C|A2+B2

3. What are parallel lines?

The equation of two parallel lines is ax+by+c=0 and ax+by+d=0, then the distance between them is the perpendicular distance of any point on one line from the other line.

4. How we should measure the length between a point and a line so that the shortest distance is measured?

The shortest distance between a point and a line is perpendicular distance.

5. How do you calculate the distance between two parallel lines?

If (x1,y1) is any point on the line ax+by+c=0. Then, ax1+by1+c=0

Now, the perpendicular distance of the point (x1,y1) from the line ax+ by +d=0 is
|ax1+by1+d|a2+b2=|dc|a2+b2

Articles

Back to top