Rewrite in terms of sines and cosines.

Multiply by .

Combine.

Apply the distributive property.

Cancel the common factor of .

Cancel the common factor.

Rewrite the expression.

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Dividing two negative values results in a positive value.

Simplify (1+tan(x))/(sin(x)+cos(x))