You can put this solution on YOUR website! Please use parenthesis to make your question clear. You must have meant:
—
On left, multiply first term by (1-cos(x))/(1-cos(x)), 2nd term by (1+cos(x))/(1+cos(x)) :
—
On left, multiply out numerator and denominator (its a common denominator due to the chosen multiplications):
simplifies to...
The final step is to recognize that and you are done.