In these notes (http://www.physics.rutgers.edu/~gmoore/SCGP-FourManifoldsNotes-2017.pdf) the following integral is given on page 9- $$ Z=\int^\infty_{-\infty} \frac{dx}{\sqrt{2\pi}}s'(x) e^{-\frac{1}{2}s(x)^2}, $$ and the solution is said to be $$ Z=\sum_{\mathcal{Z}(s)}\frac{s'(x_l)}{|s'(x_l)|} $$ where $\mathcal{Z}(s)=\{x_l:s(x_l)=0\}$. It is claimed that this solution can be found via change of variables.
My attempt is as follows. $s'(x)dx =s(x)$, so we have $$ Z=\int^\infty_{-\infty} \frac{ds}{\sqrt{2\pi}} e^{-\frac{1}{2}s(x)^2}, $$ which would give us $$ Z=1, $$ which is not correct. Where have I gone wrong, and what is the correct solution?