E=2cosA+B2cosA−B2+1−2sin2C2−32
=−2sin2C2+2cosA−B2sinC2−12
=−2x2+2xcosA−B2−12,x=sinC2 ..............(1)
Now we know that sign of a quadratic is the same as that of the first term provided △<0.
Here △=4cos2A−B2−4, which is clearly -ive as
cos2A−B2≤1
∴E≤0.
∴cosA+cosB+cosC≤3/2
Equality will be possible when cos2A−B2=1
(i.e. △=0) or A=B.
Then from (1),
4x2−4x+1=0 or (2x−1)2=0
∴x=sinC2=12∴C=600∴A=B=C=600
Hence the triangle is equilateral.