Quick explanation

Write sec⁡3x\sec^3x as sec⁡x⋅sec⁡2x\sec x\cdot\sec^2x. That gives us a factor whose antiderivative is tan⁡x\tan x, while the remaining secant differentiates into sec⁡xtan⁡x\sec x\tan x. The resulting integral contains ∫sec⁡3x dx\int\sec^3x\,dx again—not a failure, but the useful trick.

Full derivation

Let I=∫sec⁡3x dxI=\int\sec^3x\,dx. Choose u=sec⁡xu=\sec x and dv=sec⁡2x dxdv=\sec^2x\,dx.

du=sec⁡xtan⁡x dxdu=\sec x\tan x\,dxv=tan⁡xv=\tan x
I=sec⁡xtan⁡x−∫sec⁡xtan⁡2x dxI=\sec x\tan x-\int\sec x\tan^2x\,dx=sec⁡xtan⁡x−∫sec⁡x(sec⁡2x−1) dx=\sec x\tan x-\int\sec x(\sec^2x-1)\,dx=sec⁡xtan⁡x−I+∫sec⁡x dx=\sec x\tan x-I+\int\sec x\,dx2I=sec⁡xtan⁡x+ln⁡ ⁣∣sec⁡x+tan⁡x∣2I=\sec x\tan x+\ln\!\left|\sec x+\tan x\right|I=12sec⁡xtan⁡x+12ln⁡ ⁣∣sec⁡x+tan⁡x∣+C\boxed{I=\frac12\sec x\tan x+\frac12\ln\!\left|\sec x+\tan x\right|+C}

Verification

Differentiate the result. The first term contributes 12(sec⁡xtan⁡2x+sec⁡3x)\frac12(\sec x\tan^2x+\sec^3x). The logarithmic term differentiates to 12sec⁡x\frac12\sec x. Using tan⁡2x+1=sec⁡2x\tan^2x+1=\sec^2x, everything combines to sec⁡3x\sec^3x.

Derivative of proposed answer12sec⁡xtan⁡2x+12sec⁡3x+12sec⁡x=sec⁡3x\frac12\sec x\tan^2x+\frac12\sec^3x+\frac12\sec x=\sec^3x Verified

Common mistakes

  1. Stopping when the integral returns.That is the moment to solve for II, not abandon ship.
  2. Forgetting the factor of 12\frac12.You get 2I2I before the final division.
  3. Dropping the absolute-value bars.The logarithmic term is ln⁡ ⁣∣sec⁡x+tan⁡x∣\ln\!\left|\sec x+\tan x\right| on its valid intervals.

What to do next