How to find $\int_0^{\pi/4}\sec(x)^3dx$ How do I find $$\int_0^{\pi/4}\sec(x)^3dx$$
I arrive at $\sec x\tan x + 1/3 \ln| (\cos^3(x))| dx$
where $u = \sec x$ and $v' = \sec^2(x)$
What's my error? Could I get a step by step solution?

So you're integrating by parts with $u = \sec x$ and $dv = \sec^2 x = (\tan x)'$. Then:
$$
I := \int_{0}^{\frac{\pi}{4}} \sec^3 x dx = \sec \left(\frac{\pi}{4}\right)\tan \left(\frac{\pi}{4}\right)  - \int_{0}^{\frac{\pi}{4}}\tan^2 x \sec x dx
$$
Where the last integral is
$$
\int_{0}^{\frac{\pi}{4}}\tan^2 x \sec x dx = \int_{0}^{\frac{\pi}{4}} \frac{1-\cos^2 x}{\cos^3 x} = I - \int_{0}^{\frac{\pi}{4}} \sec xdx 
$$
Plugging this in the first expression yields:
$$
2I = \sec \left(\frac{\pi}{4}\right)\tan \left(\frac{\pi}{4}\right)  + \int_{0}^{\frac{\pi}{4}} \sec xdx  = \sec \left(\frac{\pi}{4}\right)\tan \left(\frac{\pi}{4}\right)  + \log\left\lvert \sec \left(\frac{\pi}{4}\right) + \tan \left(\frac{\pi}{4}\right) \right\rvert
$$
So $I = \frac{1}{\sqrt{2}} + \log \sqrt{1+\sqrt{2}}$.
