You can put this solution on YOUR website! There may be be a much easier way to do this. But since you haven't gotten a response in over a day, I'd thought I'd give it a try.
To save on typing I'm going to use A and B instead of alpha and beta.
Using the Quadratic Formula on we get:
Simplifying...
which is short for or
It doesn't matter which one we say is tan(A) and which one is tan(B). So I'll make the first root tan(A) and the second one tan(B).
Next we use the formula for . Inserting our roots into this formula we get:
Simplifying... (Note: to multiply the two numerators in the denominator, I am going to use the pattern.)
From this we are going to find an expression for sin(A+B). tan is opposite/adjacent. So draw a right triangle, pick one of the acute angles and make the opposite side "p" and the adjacent side "1+q". Then use the Pythagorean Theorem to find the hypotenuse. You should get . Since sin is opposite/hypotenuse:
Next we will use the variation of the cos(2x) formulas to find our answer. Replacing the x's with (A+B)'s:
Replacing the sin(A+B) with the expression we found earlier:
Simplifying: