I have spent the past two and a half hours attempting to understand why the electric field on either side of an infinitely sized charged plate is uniform. I get it conceptually, in that as a point moves farther away from the plate, it is able to see a greater amount of charge in a more focused field of view, canceling out the reduction in strength caused by increasing the distance between the point and the plate. My issue is that I want to be able to derive this relationship for myself using calculus and I when doing it by hand, I always arrive at a relationship that reduces the strength of the electric field as the distance increases.
I eventually found a paper online that derives the property of uniformity, but it has a step when evaluating an improper integral that makes no sense to me:
$$ \begin{align} E_P &= \frac{\sigma r}{4\pi\epsilon} \int_{-\infty}^\infty \int_{-\infty}^\infty \frac{1}{(x^2 + y^2 + r^2)^{3/2}} \; dx \; dy \\ &= \frac{\sigma r}{4\pi\epsilon} \int_{-\infty}^\infty \frac{2}{(y^2 + r^2)^{3/2}} \; dy \tag{1} \\ &= \frac{\sigma r}{4\pi\epsilon} \frac{2\pi}{r} \tag{2} \\ &= \frac{\sigma}{2\epsilon} \end{align} $$
What happened between lines (1) and (2)? When I did it by hand, I ended up with, $$ \frac{\sigma r}{4\pi\epsilon} \int_{-\infty}^\infty \frac{2}{(y^2 + r^2)^{3/2}} \; dy = \frac{\sigma r}{4\pi\epsilon} \frac{4}{r^2} = \frac{4\sigma}{r\pi\epsilon} $$
I checked this result with Maxima and Wolfram, and they both confirm my answer. What am I not seeing?