Question
Mathematics Question on Distance of a Point From a Line
In the triangle ABC with vertices A (2, 3), B (4, -1) and C (1, 2), find the equation and length of altitude from the vertex A.
Let AD be the altitude of triangle ABC from vertex A.
Accordingly, AD⊥BC
The equation of the line passing through point (2, 3) and having a slope of 1 is
(y\-3)=1(x\-2)
⇒x−y+1=0
⇒y\-x=1
Therefore, equation of the altitude from vertex A=y\-x=1.
Length of AD = Length of the perpendicular from A (2, 3) to BC
The equation of BC is
(y+1)=1−42+1(x−4)
⇒(y+1)=−1(x−4)
⇒y+1=−x+4
⇒x+y−3=0.......(1)
The perpendicular distance (d) of a line Ax+By+C=0 from a point (x1,y1) is given by
d=A2+B2∣Ax1+By1+C∣
On comparing equation (1) to the general equation of line Ax+By+C=0, we obtain A=1,B=1, and C=−3.
∴ Length of AD=12+12∣1×2+1×3−3∣ units
=2∣2∣ units
=22 units
=2 units
Thus, the equation and the length of the altitude from vertex A are y\-x=1 and 2 units respectively.