Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Given $ \sin A + \sin B = a$ and $ \cos A + \cos B = b$

where $a$ and $b$ are acute angles

find the value of $\cos(A+B)$

This is my approach

$ \sin A + \sin B = 2 \sin \frac{A+B}{2} \cos \frac{A+B}{2} $

$ \cos A + \cos B = 2 \cos \frac{A+B}{2} \cos \frac{A+B}{2} $

dividing yield $\tan\frac{A+B}{2}=\frac{a}{b}$

$$\tan(A+B) = \frac {2\frac{a}{b}}{1-\left(\frac{a}{b}\right)^2} = \frac{2ab}{b^2-a^2}$$


$$\cos(A+B)=\sqrt{\frac{1}{1+\left(\frac{2ab}{b^2-a^2}\right)^2}} = \frac{b^2-a^2}{b^2+a^2}$$

I wonder if

$$\cos(A+B)= \frac{a^2-b^2}{b^2+a^2}$$

was right, if not, why is it?

share|cite|improve this question
Note that $$\sin A + \sin B = 2\sin \dfrac{A+B}{2} \cos \dfrac{A-B}{2}$$ and $$\cos A + \cos B = 2\cos \dfrac{A+B}{2} \cos \dfrac{A-B}{2}$$ – minthao_2011 Oct 4 '12 at 16:30
i don't get it, please elaborate, thanks – Paul Smith Oct 4 '12 at 17:35

As minthao_2011 has already rectified your $\sin A+\sin B$ and $\cos A+\cos B$ formula, using that we get $\tan \frac{A+B}2=\frac a b$ assuming $\cos \frac{A-B}2\ne 0$


$$=\frac{1-(\frac a b)^2}{1+(\frac a b)^2}=\frac{b^2-a^2}{b^2+a^2}$$

If we go via $\tan 2A$ or $\sin 2A$ formula, ambiguity with sign may crop up.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.