Integrate $I= \int \frac{x^2 -1}{x\sqrt{1+ x^4}}\,\mathrm d x$ 
$$I= \int \frac{x^2 -1}{x\sqrt{1+ x^4}}\,\mathrm d x$$

My Endeavour :
\begin{align}I&= \int \frac{x^2 -1}{x\sqrt{1+ x^4}}\,\mathrm d x\\ &= \int \frac{x}{\sqrt{1+ x^4}}\,\mathrm d x -  \int \frac{1}{x\sqrt{1+ x^4}}\,\mathrm d x\end{align}
\begin{align}\textrm{Now,}\;\;\int \frac{x}{\sqrt{1+ x^4}}\,\mathrm d x &= \frac{1}{2}\int \frac{2x^3}{x^2\sqrt{1+ x^4}}\,\mathrm dx\\ \textrm{Taking}\,\,(1+ x^4)= z^2\,\,\textrm{and}\,\, 4x^3\,\mathrm dx= 2z\,\mathrm dz\,\, \textrm{we get} \\ &= \frac{1}{2}\int \frac{z\,\mathrm dz}{\sqrt{z^2-1}\, z}\\ &= \frac{1}{2}\int \frac{\mathrm dz}{\sqrt{z^2-1}}\\ &= \frac{1}{2}\ln|z+ \sqrt{z^2 -1}|\\ &= \frac{1}{2}\ln|\sqrt{1+x^4}+ x^2|\\ \textrm{Now, with the same substitution, we get in the second integral}\\ \int \frac{1}{x\sqrt{1+ x^4}}\,\mathrm d x &= \frac{1}{2}\int \frac{2x^3}{x^4\sqrt{1+ x^4}}\,\mathrm dx\\ &= \frac{1}{2}\int \frac{z\,\mathrm dz}{( z^2 -1)\;z} \\ &=\frac{1}{2}\int \frac{\mathrm dz}{ z^2 -1} \\ &=\frac{1}{2^2}\, \ln \left|\frac{ z+1}{z-1}\right| \\ &= \frac{1}{2^2}\, \ln \left|\frac{ \sqrt{1+ x^4}+1}{\sqrt{1+ x^4}-1}\right|\;.\end{align}
So, \begin{align}I&=\int \frac{x^2 -1}{x\sqrt{1+ x^4}}\,\mathrm d x \\ &=\frac{1}{2}\, \ln|\sqrt{1+x^4}+ x^2|- \frac{1}{2^2}\, \ln \left|\frac{ \sqrt{1+ x^4}+1}{\sqrt{1+ x^4}-1}\right| + \mathrm C\;.\end{align}
Book's solution:
\begin{align}I&=\int \frac{x^2 -1}{x\sqrt{1+ x^4}}\,\mathrm d x \\ &= \ln\left\{\frac{1+x^2 + \sqrt{1+x^4}}{x}\right\} + \mathrm C\;.\end{align}
And my hardwork's result is nowhere to the book's answer :(
Can anyone tell me where I made the blunder?

From here and here we learn that (mistake 1)
\begin{align}
\int \frac{x}{\sqrt{1+ x^4}}dx&=\frac12\arcsin x^2\\
&=\frac12\ln(x^2+\sqrt{1+x^4})
\end{align}
Hence (for part 2 I basically take your solution multiplied by $-1$: mistake 2)
\begin{align}
I&=\frac12\ln x^2+\sqrt{1+x^4})-\frac14 \ln \frac{ \sqrt{1+ x^4}-1}{\sqrt{1+ x^4}+1}\\
&=\frac12\ln(x^2+\sqrt{1+x^4})-\frac14 \ln \frac{ \sqrt{1+ x^4}-1}{\sqrt{1+ x^4}+1}\frac{\sqrt{1+ x^4}+1}{\sqrt{1+ x^4}+1}\\
&=\frac12\ln(x^2+\sqrt{1+x^4})-\frac14 \ln \frac{ x^4}{(\sqrt{1+ x^4}+1)^2}\\
&=\frac12\ln(x^2+\sqrt{1+x^4})-\frac12 \ln \frac{ x^2}{\sqrt{1+ x^4}+1}\\
&=\frac12 \ln \frac{ (x^2+\sqrt{1+x^4})(\sqrt{1+ x^4}+1)}{x^2}\\
&=\frac12 \ln \frac{ 2(x^2+\sqrt{1+x^4})(\sqrt{1+ x^4}+1)}{2x^2}\\
&=\frac12 \ln \frac{ 2x^2\sqrt{1+ x^4}+2x^2+2(1+x^4)+2\sqrt{1+x^4}}{2x^2}\\
&=\frac12 \ln \frac{ (1+x^2+\sqrt{1+x^4})^2}{2x^2}\\
&=\ln \frac{ 1+x^2+\sqrt{1+x^4}}{x}-\frac12\ln 2\\
\end{align}
Note $\int \frac{dz}{z^2-1}=\frac12\ln\frac{z-1}{z+1}$
