Answer
$x\tan x+\ln|\cos x|+C$
Work Step by Step
We use the formula
$\int udv=uv-\int vdu$
with $u=x$, $dv=\sec^{2}xdx$
$du=dx$, $v=\tan x$
Then $\int x\sec^{2}xdx=x\times \tan x-\int \tan xdx$
$=x\tan x+\ln|\cos x|+C$
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.