a/ Ta có: \(\left\{{}\begin{matrix}cosB=\frac{a^2+c^2-b^2}{2ac}\\S=\frac{1}{2}ac.sinB\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}cosB=\frac{a^2+c^2-b^2}{2ac}\\sinB=\frac{2S}{ac}\end{matrix}\right.\)
\(\Rightarrow cotB=\frac{cosB}{sinB}=\frac{\left(a^2+c^2-b^2\right).ac}{2ac.2S}=\frac{a^2+c^2-b^2}{4S}\)
b/ Tương tự: \(cotA=\frac{b^2+c^2-a^2}{4S}\) ; \(cotC=\frac{a^2+b^2-c^2}{4S}\)
\(\Rightarrow cotA+cotB+cotC=\frac{a^2+b^2+c^2}{4S}\)