you need to review your post ...
(I rearranged the factors in the last term to make it consistent.)
Distribute the 2:
Note that each term begins with or . Recall the sine of a double angle identity: So
, and the same for angle phi.
Use the Pythagorean identity: