I understand that in the cosine rule i.e. $c^2 = a^2 + b^2 - 2ab \cos C$, the cosine function acts to bring down the value of $c^2$ for acute angles ($\cos C>0$, $-2ab\cos C<0$ ) and increase the value of $c^2$ for obtuse angles ($\cos C <0$, $-2ab\cos C > 0$). I still wonder where the $2ab$ term comes from? Any ideas about the intuition behind that?
Regards,


Let's accept that $c^2=a^2+b^2$ for a right Euclidean triangle. Then for a degenerate obtuse triangle, where we take angle $C\to\pi$, we have $c^2 \to (a+b)^2 = a^2+b^2+2ab$. On the other hand, as we take $C\to0$, we find $c^2\to(a-b)^2 = a^2+b^2-2ab$.
It is apparent that length $c^2$ is a function of angle $C$ between sides $a$ and $b$. We see that $c^2=a^2+b^2-2ab\cos C$ modulates between our boundary cases an provides every value in between.