Worked example
Choose the form of cosine that exposes a factor
Show that wherever the left side is defined.
Use , which makes the numerator .
The denominator is , so both sine and cosine are non-zero on the original domain.
Cancel the common factor to give , with the original restrictions still in force.