Problem 166
Easy Hyperbolic Integrals and Integration by Parts

Evaluate the integral: I = integral x/(cos²x) dx

Evaluate the integral: $$ I = \int \frac{x}{\cos^2x}\,dx. $$

Explanation of Method

Rewriting $1/\cos^2x=\sec^2x$ and applying integration by parts with $u=x$, $dv=\sec^2x\,dx$ leaves a leftover integral of $\tan x$ alone, which is a standard logarithmic result.

  1. Choose $u=x$, $dv=\sec^2x\,dx$.
  2. Differentiate $u$ and integrate $dv$.
  3. Apply the integration by parts formula and integrate the remainder.

Step 1 · Set up integration by parts

Let:

$$ u = x \quad \Rightarrow \quad du = dx, \qquad dv = \sec^2x\,dx \quad \Rightarrow \quad v = \tan x. $$

Step 2 · Apply the formula

$$ I = x\tan x - \int \tan x\,dx. $$

Step 3 · Integrate

Recall the standard result $\int \tan x\,dx = -\ln|\cos x|$:

$$ I = x\tan x - \left(-\ln|\cos x|\right) + C = x\tan x + \ln|\cos x| + C. $$


Summary Table

Quantity Value
$u$$x$
$dv$$\sec^2x\,dx$
Antiderivative$x\tan x+\ln|\cos x|$

Additional Notes

Result

The solution to the integral is:

$$ I = x\tan x + \ln|\cos x| + C. $$