Evaluate $$\int_0^{\frac{\pi}{6}} \sec^3 \theta \mathrm d\theta$$
I was trying to solve it following way.
$$\int_0^{\frac{\pi}{6}} \sec^2\theta \sec\theta \mathrm d\theta$$ $$\int_0^{\frac{\pi}{6}}\sec^2\theta \mathrm d(\sec\theta)$$ $$[\tan\theta]_0^\dfrac{\pi}{6}$$ $$\tan\frac{\pi}{6}$$ $$\frac{1}{\sqrt{3}}$$
I had found the value. But, my book had solved it another way. They took
$$\tan\theta=z$$ Then, they solved it. They had got $\frac{1}{3}+\frac{1}{2}\ln\sqrt{3}$. My answer is approximately close to their. Is my answer correct? While doing Indefinite integral I saw that I could solve problem my own way. But, my answer always doesn't match with their. So, is it OK to find new/another answer of Integral? In algebraic expression,"no matter what I do the answer always matches". But, I got confused with Integration.
I was checking whole process of my book. I saw something wasn't looking perfect.
$$\int_0^{\frac{\pi}{6}} \sqrt{1+\tan^2\theta}\sec^2\theta \mathrm{d\theta}$$
But, $\sqrt{1+\tan^2\theta}\sec^2\theta \mathrm{d\theta}\neq sec^3\theta$
Isn't it wrong?