I have this:

$$\sqrt{(dx)^2 + (dy)^2}$$

And my book simplified it as:

$$\sqrt{1 + \Big(\frac{dy}{dx}\Big)^2} \times dx$$

I don't have even a close idea how he did it. If it helps, is about path lenght whit integration.