It begins with the simple fact that for a triangle ABC, Cos

^{2}(A) + Cos

^{2}(B) + Cos

^{2}(C) = 1 IFF (if and only if) the triangle is a right triangle..that is, one of Cos(A), Cos(B) or Cos(C) = 0.

But the part I loved is the more general extension... that for ANY triangle, Cos

^{2}(A) + Cos

^{2}(B) + Cos

^{2}(C)+2 Cos(A)Cos(B)Cos(C) = 1.

Since only one of the angles can be obtuse (and hence the quantity 2 Cos(A)Cos(B)Cos(C) would be negative only in the obtuse case), we can use Cos

^{2}(A) + Cos

^{2}(B) + Cos

^{2}(C) as a determinant for triangles. When the sum is > 1 the triangle is obtuse. If it is equal to one, the triangle is a right triangle; and if the sum is< 1, the triangle is acute. Not sure how I got so old without knowing that.

Can anyone tell me who/when this general identity was first discovered?