Draw a prependicular line from point C to side AB and intersect with it at point D, and we have:
c=BD+AD=acos∠B+bcos∠ATimes c on both side:
c2=accos∠B+bccos∠ABy the same reasoning:
a2=abcos∠C+accos∠Bb2=abcos∠C+bccos∠A ∴accos∠B=a2−abcos∠C, bccos∠A=b2−abcos∠C∴c2=accos∠B+bccos∠A=(a2−abcos∠C)+(b2−abcos∠C)=a2+b2−2abcos∠CBy draw the perpendicular line from different direction, similarly:
a2=b2+c2−2bccos∠Ab2=a2+c2−2accos∠B■