Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Perpendicular Distance of a Point From a Line

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

What's the Perpendicular Distance of a Point from a Line?

The shortest distance between a point and a line in geometry is the distance of a point from a line. There are an endless number of lines that can be drawn in a plane from one point to another. Drawing a perpendicular line segment on the line passing through the specified location is the only way to get the shortest distance. This is so that we can create a triangle by connecting the point and line with more than one line. Knowing the distance from a point to a line can be useful in various real-life situations-for example, to find the distance between two objects like two trees. In this article, we will study how to find the length of a perpendicular from a point to a line and solved examples.


Perpendicular Distance

The distance between two objects measured along a line perpendicular to one or both is referred to as the perpendicular distance in geometry. In two- dimensional space, the distance between two points and two lines is the perpendicular distance. For the perpendicular distance from the origin to a plane in three dimensions, the point on the plane closest to the origin.


Distance between a point and a plane in three dimensions, for the perpendicular distance between any two points.


Perpendicular Distance of a Point from a Line

The length of the perpendicular drawn from a point to a line represents the shortest separation between the two. The stages to get at the formula for calculating the perpendicular distance of a point from a line are listed below.

Step 1: In the first step, think about a line $L: A x+B y+C=0$ that is $d$ distance from the point $P\left(x_{1}, y_{1}\right)$

Step 2: As illustrated in the diagram below, draw a perpendicular PM from point $P$ to line L.

Step 3: Assume that $Q$ and $R$ are the points where the line intersects the $x, y$ - axis respectively.

Step 4: The point coordinates can be expressed as

$Q\left(\dfrac{-C}{A}, 0\right), R\left(0, \dfrac{-C}{B}\right)$


Point Coordinates


Point Coordinates


Perpendicular Distance Formula

We have the line Ax+By-C-0 i.e. DE and has a slope $\dfrac{-A}{B}$


Perpendicular Distance


Perpendicular Distance


Now, we have the point $\mathrm{P}$ as $\left(H^{\prime} H\right)$. So, we have to find a perpendicular distance from $\mathrm{P}$ to DE.

So, construct a line that is parallel to $D E$ and has a slope $\dfrac{-A}{B}$ as it is parallel to DE and then name it FG.

Now, we have to construct line $\mathrm{PQ}$ which passes through the origin and this line is parallel to slope $\dfrac{B}{A}$ as it is perpendicular to DE named as RS then extend it at $(0,0)$.


Slope


Slope


As FG has slope $\dfrac{-A}{B}$ and equation we have

$y-n=-\dfrac{A}{B}(x-m)$

$y=\dfrac{-A x+A m+B n}{B}$

We have

$y=\dfrac{B}{A} x$

$\dfrac{B}{A} x=\dfrac{-A x+A m+B n}{B}$

Prove that point $\mathrm{R}$ is $\left(\dfrac{A(A m+B n)}{A^{2}+B^{2}}, \dfrac{B(A m t+B n t)}{A^{2}+B^{2}}\right)$

$y=\dfrac{B}{A} x, A x+B y+C=0$

Implies $y=\dfrac{A x+C}{B}$

$=\dfrac{A x+C}{B}-\dfrac{B}{s} x$

$x=\dfrac{-A C}{A^{2}+B י}$

$y=\dfrac{B}{A} x$

$y=\dfrac{B}{A}\left(\dfrac{A C}{A^{2}+B^{2}}\right)=\dfrac{B C}{A^{2}+B^{2}}$

So, $\mathrm{S}$ is $\left(\dfrac{-A C}{A^{2}+B^{2}}, \dfrac{-B C}{A^{2}+B^{2}}\right)$

$d=\sqrt{\left(\dfrac{-A C}{A^{2}+B^{2}}-\dfrac{A(A m+B n)}{A^{2}+B^{2}}\right)^{2}+\left(\dfrac{-B C}{A^{2}+B^{2}}-\dfrac{B(A m+B n)}{A^{2}+B^{2}}\right)}$

Thus, distance RS is

$=\sqrt{\dfrac{\{-A(A m+B n+C)\}^{2}+\{-B(A m+B n+C)\}^{2}}{\left(A^{2}+B^{2}\right)^{2}}}$

$=\sqrt{\dfrac{\left(A^{2}+B^{2}\right)(A m-B n+C)^{2}}{\left(A^{2}+B^{2}\right)^{2}}}$

$=\sqrt{\dfrac{(A m+B n+C)^{2}}{A^{2}+B^{2}}}$

$=\dfrac{|A m+B n+C|}{\sqrt{A^{2}+B^{2}}}$

Thus, perpendicular distance formula is $d=\dfrac{|A m+B n+C|}{\sqrt{A^{2}+B^{2}}}$


If the perpendicular distance of point P is 5 units away from the axis perpendicularly and the foot of the perpendicular is in the opposite direction of the x-axis then point P has an ordinate which is 5 or -5. As y- coordinate of a point is equal to its perpendicular distance from the x-axis. The perpendicular distance of point P lies on the X-negative axis direction.

The point P therefore has a y-coordinate of 5 or -5.


Length of the Perpendicular from a Point to a Line

Step 1: We have a line $L: A x+B y+C=0$ that is ' $\mathrm{d}$ ' distance from the point $P\left(x_{1}, y_{1}\right)$

Step 2: As illustrated in the diagram below, draw a perpendicular PM from point $P$ to line L.

Step 3: Assume that Q and R are the points where the line intersects the x-axis and y-axis respectively i.e. the length of the perpendicular from a point to a line.


Length of the Perpendicular from a Point to a Line


Length of the Perpendicular from a Point to a Line


Solved Examples

Q 1. Locate the distance between the point (-3, 5) and the line 4x - 3y - 26 = 0.

Ans: We have 4x-3y-26 = 0 at (-3, 5)

Implies A = 4, B = -3, C = -26, x = -3, y = 5

$d=\dfrac{|A x+B y+C|}{\sqrt{A^{2}+B^{2}}}$

$d=\dfrac{|4(-3)+(-3) 5+(-26)|}{\sqrt{4^{2}+(-3)^{2}}}=\dfrac{|-53|}{\sqrt{25}}=\dfrac{53}{5}$


Q 2. A line y = 3x + 1 and a point (5,1) must be separated by this distance.

Ans: We have y = 3x+1 at (5, 1)

Implies A = 3, B = -1, C = 1, x = 5, y = 1

$d=\dfrac{|A x+B y+C|}{\sqrt{A^{2}+B^{2}}}$

$d=\dfrac{|3.5+(-1) 1+1|}{\sqrt{3^{2}+(-1)^{2}}}=\dfrac{15}{\sqrt{10}}$


Practice Questions

Q 1. Determine the length of the perpendicular that connects the point (3,2,1) to the line.

Ans: $\dfrac{x-7}{-2}=\dfrac{y-7}{2}=\dfrac{z-6}{3}$


Q 2. Using the formula for the distance of a point from a line, determine the distance between the point K(3,7) and the line PQ.

Ans: $y=\dfrac{6}{5} x+2$


Q 3. Find the perpendicular distance of the point (−1,1) from the line 12(x+6)=5(y−2).

Ans: 5 units


Summary

As we know, the perpendicular distance between a point and a line is the shortest distance. Let that distance be ' $\mathrm{d}$ ' between $P\left(x_{1}, y_{1}\right)$ and line $L: a x+b y+c=0$ as $D=\dfrac{\left|a x_{1}+b y_{1}+c\right|}{\sqrt{a^{2}+b^{2}}}$

By calculating the perpendicular distance between any point on the line and the other, we may determine how far apart two parallel lines are from one another.

Competitive Exams after 12th Science
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow

FAQs on Perpendicular Distance of a Point From a Line

1. What is the formula to calculate the perpendicular distance of a point from a line in a 2D plane?

The perpendicular distance 'd' of a point P(x₁, y₁) from a straight line given by the equation Ax + By + C = 0 is calculated using the formula: d = |Ax₁ + By₁ + C| / √(A² + B²). Here, (x₁, y₁) are the coordinates of the point, and A, B, and C are the coefficients from the line's equation.

2. What are the steps to find the perpendicular distance of a point from a line?

To find the perpendicular distance from a point to a line as per the CBSE 2025-26 syllabus, follow these steps:

  • Step 1: Ensure the equation of the line is in the general form, Ax + By + C = 0.
  • Step 2: Identify the coordinates of the given point, (x₁, y₁).
  • Step 3: Substitute the values of A, B, C, x₁, and y₁ into the distance formula: d = |Ax₁ + By₁ + C| / √(A² + B²).
  • Step 4: Calculate the value to find the shortest distance. The result will always be positive.

3. How do you find the perpendicular distance of a point (x, y, z) from the coordinate axes in 3D space?

This is a special case of the distance formula. The perpendicular distance of a point P(x, y, z) from the coordinate axes is:

  • From the x-axis: √(y² + z²)
  • From the y-axis: √(x² + z²)
  • From the z-axis: √(x² + y²)

4. Why is the absolute value (modulus) function used in the perpendicular distance formula?

The absolute value is crucial because distance is a scalar quantity and cannot be negative. The expression Ax₁ + By₁ + C can be positive, negative, or zero, depending on the position of the point (x₁, y₁) relative to the line. The modulus ensures that the final calculated distance is always a non-negative value, which correctly represents the physical length of the perpendicular segment.

5. How is the formula for perpendicular distance different in 3D compared to 2D?

In 2D, we find the distance from a point to a line. In 3D, the concept extends to finding the distance from a point to a line represented by direction ratios or vectors. The formula for the distance from a point P(x₁, y₁, z₁) to a line (x-a)/L = (y-b)/M = (z-c)/N is more complex and involves finding the foot of the perpendicular. The vector form provides a more direct formula.

6. What is the formula for the perpendicular distance of a point from a line in vector form?

For a point with a position vector p and a line given by the equation r = a + λb, the perpendicular distance 'd' is calculated as: d = |(p - a) × b| / |b|. Here, a is the position vector of a point on the line, b is the direction vector of the line, and '×' denotes the cross product.

7. How does calculating the distance between two parallel lines differ from finding the distance from a point to a line?

The methods are related but distinct. To find the distance from a point to a line, you use the coordinates of that specific point. For finding the distance between two parallel lines (e.g., Ax + By + C₁ = 0 and Ax + By + C₂ = 0), you use the difference between their constant terms. The formula is d = |C₁ - C₂| / √(A² + B²). This works because the perpendicular distance is the same from any point on one line to the other.

8. Where is the concept of perpendicular distance used in real-world scenarios?

The concept of perpendicular distance is fundamental in many fields. For example:

  • In computer graphics and gaming, it's used for collision detection to see how far an object is from a surface or path.
  • In robotics and autonomous vehicles, it helps in navigation and ensuring a safe distance from obstacles.
  • In physics, it is used to calculate the moment of a force about an axis or the shortest path of an object.