Reorder and .

Rewrite as .

Factor out of .

Factor out of .

Rewrite as .

Apply pythagorean identity.

Factor out of .

Separate fractions.

Rewrite as a product.

Write as a fraction with denominator .

Divide by .

Convert from to .

Divide by .

Raise to the power of .

Raise to the power of .

Use the power rule to combine exponents.

Add and .

Simplify (sin(x)^2-1)/(cos(-x))