I'd like to know what I did wrong in my solution using this particular $u$ and $v$
$\int\sec^5x dx$
$u=\sec x$
$du=\sec x\tan x$
$v=\int \sec^4x dx = (\tan^3x)/3+\tan x$
After completing the integral, I ended up with $\int\sec^5x dx= \frac{\tan^3x\sec x}4+\frac{3\tan x\sec x}8+\frac{3\ln(\tan x+\sec x)}8+C$
Which is very close to the correct answer but not quite. I can't figure out where I went wrong at all.
$I = \int \sec^5 x \ dx\\ u = \sec^3 x, dv = \sec^2 x\ dx\\ du = 3\sec^2 x(\sec x\tan x)\ dx, v = \tan x$
$\sec^3x\tan x - 3\int \sec^3 x\tan^2 x \ dx\\ \sec^3x\tan x - 3\int \sec^3 x(sec^2 x - 1)\ dx\\ I = \sec^3x\tan x + 3\int \sec^3 x\ dx - 3I\\ 4I = \sec^3x\tan x + 3\int \sec^3 x\ dx\\ I = \frac 14(\sec^3x\tan x + 3\int \sec^3 x\ dx)$
But now we need to do something very similar to find
$J = \int \sec^3 x\ dx\\ J = \sec x\tan x + \int \sec x\ dx + J\\ J = \frac12(\sec x\tan x + \ln|\sec x + \tan x|)$
$\frac 14\sec^3x\tan x + \frac38 \sec x\tan x + \frac 38 \ln|\sec x + \tan x| + C$
How does this compare to:
$\frac{\tan^3 x\sec x}4+\frac{3\tan x\sec x}8+\frac{3\ln(\tan x+\sec x)}8$
We agree on the last two terms, and $\tan^3 x\sec x = \sec^3 x\tan x + \sec x$
So, we differ on a $\frac {\sec x}{4}$ term
Without seeing your work, I can't tell you where that term might have come from (or gone).