Proof:
Case 1: ∠A=90∘
Since
cosA=cos90∘=0
Then,
2bccosA=0
By Pythagoras' Theorem,
a2=b2+c2=b2+c2−2bccosA
Case 2: ∠A<90∘
Let CP=h be the perpendicular height of ΔABC.
Let AP=m and BP=n such that n=c−m.
cosA=mbm=bcosA
From ΔACP, by Pythagoras' Theorem,
h2=b2−m2
From ΔBCP, by Pythagoras' Theorem,
h2=a2−(c−m)2
Therefore,
b2−m2=a2−(c−m)2=a2−c2+2cm−m2b2=a2−c2+2cma2=b2+c2−2cm=b2+c2−2bccosA
Case 3: ∠A>90∘
Let CP=h be the perpendicular height of ΔABC.
Let AP=m.
cosA=−cos(180∘−A)=−mbm=−bcosA
From ΔACP, by Pythagoras' Theorem,
h2=b2−m2
From ΔBCP, by Pythagoras' Theorem,
h2=a2−(c+m)2
Therefore,
b2−m2=a2−(c+m)2=a2−c2−2cm−m2b2=a2−c2−2cma2=b2+c2+2cm=b2+c2−2bccosA