Try setting up a right angled triangle or using sums or differences formula to get the value.
Consider the right-angled triangle with acute angles and and note that
To ease typing, let then
Use the standard identities,
and we have the cubic
is a factor, remove this and we are left with the quadratic
and solving this, (for the angle in the range),
Substituting this into (1) and simplifying leads to