I have this problem but I don't know how to continue.
Here it is:
Compute $\int \sin(x) \left( \frac{1}{\cos(x) + \sin(x)} + \frac{1}{\cos(x) - \sin(x)} \right)\,dx.$
So I can anti differentiate the sin x to be cos x but I am unsure on where to go off that for the fraction. I don't want to multiply the fractions to create a big and messy function and I don't quite understate how to do partial fraction decomposition. I'm guessing I will have to do substitution?
Anyways, thank you for any help!
Multiplying the fractions is actually the way to go and everything cancels out! $$\int\sin x\left(\frac{2\cos x}{\cos^2x-\sin^2x}\right)dx = \int\frac{\sin 2x}{\cos 2x}dx = \int\tan 2x\; dx$$ Now, you just need to find the antiderivative of $\tan$.
By the way: partial fraction decomposition is only done for functions with polynomials as numerators and denominators. Unless you can make a genius substitution which transforms the integral to a rational function, partial fractions is irrelevant. Usually, when confronted with completely trigonometric integrals, the first thing you should try is to simplify the integrand using trigonometric identities; only then do you want to consider substitutions or integration by parts.