I'm going through some Calculus homework with using integration by parts and I'm getting hit with this sucker:
$$\int\sec^2(x)\ln(\tan(x)+2)dx$$
I'm not sure how to go about tackling this monster. Things I've tried:
1)Letting $u$ equal the entire function, and $dv$ equal $dx$; problem I ran into here is I then feel uncomfortable obtaining the derivative of $u$
2) Trying to do u-sub first before doing parts, but again with the uncomfortability/doubting my steps
That's honestly about it (wish I could give more feedback), first thing I did try though was to let $u$ equal everything inside $sec^2$ but realized that was illegal. So, any suggestions to kick start me on the set up of this beast? I don't necessarily need it solved (though feel free to), but I'm mainly looking at the set up, I just don't know where to begin.
Make a substitution first \begin{eqnarray*} \int \sec^2(x) \ln( \tan(x)+2) dx = ? \end{eqnarray*} Let $u= \tan(x)+2$ so $du= \sec^2(x) dx$ & the integral becomes \begin{eqnarray*} \int \ln( u) du \end{eqnarray*} Now use integration by parts ... integrate 1 & differentiate $ \ln $ \begin{eqnarray*} \int \ln( u) du = u \ln u -u +c \end{eqnarray*} Now substitute back & we have \begin{eqnarray*} \int \sec^2(x) \ln( \tan(x)+2) dx =( \tan(x)+2) \ln( \tan(x)+2)-( \tan(x)+2)+c \end{eqnarray*}