Given ABC triangle
A(2,3) B(4,−1) C(1,2)
Let AM be the altitude
we have to calculate the length & equation of altitude AM
AM is ⊥er to BC
As 2 lines are perpendicular Product of their slopes is −1
i.e; Slope of AM× slope of BC
=−1
So slope of AM=−1slope of BC
Slope of BC:−y2−y1x2−x1=2+11−4
B(4,−1)C(1,2) =3−3
x,y1 x2y2 =−1
Slope of BC=−1
Now slope of AM=−1 slope of BC
=−1−1=1
Equation of altitude AM is point A(2,3), slope =1
(y−y1)=m(x−x1)
(y−3)=1(x−2)
x−y−2+3=0
x−y≠1=0
x−y+1=0
∴y−x=1
∴ Equation of Altitude AM is y−x=1
Length of AM=⊥er distance from A to BC
So first equation of BC
B(4,−1)C(1,2).
Slope of BC=−1
(y−y1)=m(x−x1)
y+1=−1(x−4)
x+y+1−4=0
x+y−3=0
Now ⊥er distance from A(2,3) to x+y−3=0
(x1y1)a=1,b=1,c=−3
d=|ax1+by1+c|√a2+b2
=|1(2)+1(3)−3|√12+12
=|2+3−3|√2
=2√2
d=√2
∴ Length of Altitude AM=√2