# Trigonometric Integral 2

1. May 23, 2009

### Mentallic

1. The problem statement, all variables and given/known data
Given $f(x)=cotx+tanx$ find
$$\int{[f(x)]^2}dx$$

3. The attempt at a solution
I've attempted many different varieties of approaches to the problem. Trying to use the substitution method for sinx, cosx, tanx.... and a few others... re-arranging the function, trying to get it into a more convenient form... trying to use some of the ideas given in the first thread... No luck.

Basically, it has all been a bunch of guessing and hoping something useful will appear. Plus another bunch of frustration on my part, but I wont get into the details of that xD

Last edited by a moderator: Apr 24, 2017
2. May 24, 2009

### rock.freak667

Expand out [f(x)]^2

use $cot^2x+1=cosec^2x$ and $tan^2x+1=sec^2x$

3. May 24, 2009

### Mentallic

Thanks rockfreak

It turns out to be tanx-cotx. I also obtained $\int{sec^2x+cosec^2x}dx$ through another longer method but it strike me at that moment that I can take the integral of each of these. (I think I'll keep my standard integral formulas close-by next time).

Thanks again.