Comprehension serves as the fundamental purpose of delving into the realm of mathematics. The process of problem-solving serves as a pathway to enhancing this understanding. In our quest to address problems, we frequently rely on established formulas and convenient results. However, an often-overlooked aspect is the origin of these formulas and the derivation of these results.
Consider the widely used “length of perpendicular formula,” employed to determine the perpendicular distance from a point to a given line. While it’s common knowledge that if a point is represented as \(P (x_1, y_1)\) and a perpendicular is dropped to the line \(ax+by+c=0\), the length of the perpendicular, denoted as \(d\), is given by
\[d = \frac{ax_1 + by_1 +c}{\sqrt{a^2 + b^2}}\]
Have you ever contemplated how seamlessly the coordinates \(x_1\) and \(y_1\) integrate into the line (equation), preserving the coefficients and constant term with such elegance? The adjustments in the denominator, involving the coefficient terms a and b, offer a glimpse into the essence of the “Pythagoras Theorem.”
Engaging with the derivation of the formula and scrutinizing the proof of the result reveals the mystery behind these mathematical constructs. Derivation is not merely a procedural step but an indispensable tool that fosters a deeper understanding of mathematical concepts.
In this article, I aim to present three distinct methods to derive the “length of the perpendicular formula.” Through a series of mathematical manipulations, these derivations will not only provide the sought-after result but also illuminate the intricate relationships among the various components.
Do we truly appreciate the origins of these formulas and the meticulous derivations that lead to the results we rely on?
Method 1 : Using Area of a Triangle

Derivation is not just a pathway to formulas; it’s the compass guiding our understanding, unlocking the profound beauty woven into the fabric of mathematical intricacies.
In this method, we construct a triangle PMN which is similar to the the right triangle ROQ such that the side PM is parallel to the \(x-\)axis and the vertex M is the point where it meets the line \(ax+by+c=0\). As the point M shares the same \(y-\)co-ordinate with the point P, its \(x-\)coordinate can be found by plugging \(y_1\) into the equation of the line.
And, thus the vertex M will have the co-ordinates \(\bigg(\frac{-by_1 -c}{a}, y_1 \bigg)\). Now this will make easy for us to find the length of the side PM, which happens to be the hypotenuse of the triangle PMN, and is given by
\[PM = \bigg|x_1 – \frac{-by_1 -c}{a}\bigg| \] so,
\[PM = \bigg|\frac{a x_1+ by_1 +c}{a} \bigg| \]
Now, since this triangle PMN is similar to the big triangle ROQ they have their corresponding sides proportional and so
\[\frac{PN}{OQ} = \frac{PM}{QR}\]
\[ \frac{d}{\bigg|\frac{-c}{b}\bigg| } = \frac{\frac{a x_1+ by_1 +c}{a}}{\sqrt{(c/a)^2 + (c/b)^2}}\]
which, when simplified further and solved for d, we get the desired result
\[d = \dfrac{ax_1 + by_1 +c}{\sqrt{a^2 + b^2}}.\]
Approaching the derivation from a different angle yields a fresh perspective on the same concept.
Method 3: Using Trigonometric Identity
Again, we have the line and point and we have to find the length of the perpendicular d. Let us draw two line segments through the point P — the first one, parallel to the \(x-\) axis that meets our line at M. Notice that, we have the coordinates of the point M as well as the length of PM from the previous method, \[PM = \bigg| \frac{a x_1+ by_1 +c}{a} \bigg| \]
Now we draw a vertical line segment through the point P that meets the line at S. Notice that we can find the length of segment PS by finding the coordinates of the point S.
Since S share the \(x\) coordinate with P its \(y-\)coordinate will be found by plugging \(x_1\) into the equation of the line. We get the position of the point S as \((x_1, \frac{-ax_1-c}{b}))\. And thus we have the length of PS is
\[PS = \bigg|y_1 – \frac{-ax_1 -c}{b}\bigg|\]
\[PS = \bigg| \frac{a x_1+ by_1 +c}{b} \bigg|\]
Now let us assume, the angle at R that is \(\angle ORQ=\theta\). So angle at M will be \(theta\) (because they are alternate interior angles). That makes angle \(\angle MPN = 90 – \theta\) which in turn gives \(\angle NPS = \theta\).
Now we use some trig. In \(\triangle PMN\)
\[ \sin \theta = \frac{d}{PM} = \frac{d}{\frac{a x_1+ by_1 +c}{a}}\]
so \[\sin \theta = \frac{ad}{ax_1 + by_1 + c}\]
similarly in \(\triangle PSN\)
\[ \cos \theta = \frac{d}{PS} = \frac{d}{\frac{a x_1+ by_1 +c}{b}}\]
so \[\cos \theta = \frac{bd}{ax_1 + by_1 + c}\]
Now we use the identity, \(\sin^2 \theta + \cos^2 \theta =1\) which relates the right hand sides of the just found equations as follow
\[\bigg(\frac{ad}{ax_1 + by_1 + c}\bigg)^2 +\bigg(\frac{bd}{ax_1 + by_1 + c}\bigg)^2 = 1\]
which can be simplified to
\[d^2 (a^2 + b^2) = \bigg(ax_1 + by_1 + c\bigg)^2\]
and further to
\[d = \frac{ax_1 + by_1 +c}{\sqrt{a^2 + b^2}}. \] That is what we were looking for.
Derive to Thrive
In conclusion, the diverse approaches to derivation not only enrich our understanding of mathematical concepts but also underscore the versatility of this crucial tool in problem-solving. Delving into the derivation of formulas from various angles not only reinforces our comprehension but also fosters a deeper appreciation for the interconnectedness of mathematical principles. By exploring different pathways to derive the same result, we illuminate the elegance and adaptability inherent in mathematical thinking. Keep Deriving!
Stay Mathactive! 🙏