I am stuck with the integration
$$ I=\int\ln\left(\frac{L}{2}+\sqrt{\frac{L^2}{4}+y^2+z^2}\right)\ \mathrm dy $$
I got this from the question from the book
"Field and wave electromagnetics, Cheng, 2nd, Problem 3-18.
I tried to solve this equation using method of integration by parts, but my equation got worse.
I know the answer by Wolfram Alpha, but I can't get how.
Following @ClaudeLeibovici, we have
$$I=y\log\left(\frac{L}2+\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}\right)-J$$
where
$$\begin{align} J&=\int\frac{y^2}{\left(\frac{L}2+\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}\right)\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}dy\\\\ &=-\int\frac{y^2\left(\frac{L}2-\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}\right)}{(y^2+z^2)\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}dy\\\\ &=-\frac{L}{2}\int\frac{y^2}{(y^2+z^2)\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}dy+\int\frac{y^2}{(y^2+z^2)}dy\\\\ &=-\frac{L}{2}\int\frac{1}{\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}dy+\frac{L}{2}z^2\int\frac{1}{(y^2+z^2)\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}dy+y-z\arctan(y/z) \\\\ &=K_1+K_2+y-z\arctan(y/z) \end{align}$$
where in $(1)$
$$K_1=-\frac{L}{2}\int\frac{1}{\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}dy$$
and
$$K_2=\frac{L}{2}z^2\int\frac{1}{(y^2+z^2)\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}dy$$
We can easily evaluate $K_1$ by making the substitution $y=\sqrt{\left(\frac{L}{2}\right)^2+z^2}\tan t$. Then,
$$K_1=-\frac{L}{2}\log\left(y+\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}\right)$$
where the term $\sqrt{\left(\frac{L}{2}\right)^2+z^2}$ is an integration constant that we omitted.
We effect the same substitution for $K_2$. Then, we have
$$\begin{align} K_2&=\frac{L}{2}z^2\int\frac{1}{(y^2+z^2)\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}dy\\\\ &=\frac{L}{2}z^2\int \frac{\cos t}{\left(\frac{L}{2}\right)^2+z^2\sin^2t}dt\\\\ &=z\arctan\left(\frac{(L/2)\sin t}{z}\right)\\\\ &=z\arctan\left(\frac{(L/2)y}{z\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}\right)\\\\ \end{align}$$
Putting it all together reveals
$$\begin{align} I&=y\log\left(\frac{L}2+\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}\right)\\\\ &-y+z\arctan(y/z)\\\\ &+\frac{L}{2}\log\left(y+\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}\right)\\\\ &-z\arctan\left(\frac{(L/2)y}{z\sqrt{\left(\frac{L}{2}\right)^2+y^2+z^2}}\right) \end{align}$$