How do you integrate #xsec^2x#?

I tried doing by substitution where U = x, du= 1, dv = sec^2x, v = tanx.

Then integrate UV- integral of vdu. Then another substitution in the following equation, but I got integral of xsec^2x = x tanx- integral of xsec^2) which is wrong.

1 Answer
Apr 1, 2018

The answer is #=xtanx+ln(|cosx|)+C#

Explanation:

#" Reminder "#

#inttanxdx=-ln(|cosx|)+C#

Perform an integration by parts

#intuv'=uv-intu'v#

#u=x#, #=>#, #u'=1#

#v'=sec^2x#, #=>#, #v=tanx#

Therefore,

#intxsec^2xdx=xtanx-inttanxdx#

#=xtanx+ln(|cosx|)+C#