$\int\frac{1}{\cos\theta}d\theta$
So I have this integral here and the solution manual wants the solving to follow a specific level of steps. This integral is okay on it's own but I'm having trouble doing it the way the solutions have suggested. And I'd like to know how it's done.
Write it as $\int\frac{\cos\theta}{\cos^2\theta}d\theta$
Make the substitution $u = \sin\theta$
Use partial fractions to complete the integration
Multiply a fraction in your answer your answer top and bottom by $1+sin\theta$
Show that $\tan^2\theta+1 = \frac{1}{\cos^2\theta}$
Hence write your answer without using any trig functions except tan.
This confuses me because I'm not sure how to follow this step process. I believe the answer without the tan only restriction to be $log(\tan(θ) + \sec(θ)) + C$. But I could be wrong in my substitution methods.
Thank you in advance. :)