I'm trying to prove that the circumference of a circle is $C=2\pi r$. There are other simple ways to prove it, as shown here, such as just giving a definition to $\pi$, but I thought I would overcomplicate it and employ the arc length integral, as shown below.
$$s=\int_a^b \sqrt{1+\left(\frac{dy}{dx}\right)^2} dx$$
Note that my strategy is to find the length of half the circle, then double the result. The derivative of the graph of a semi-circle, $y=\sqrt{{1+x}^2}$ is, according to WolframAlpha,
$$\frac{dy}{dx} = -\frac{x}{\sqrt{1-x^2}}$$
So $1+\left(\frac{dy}{dx}\right)^2 = \frac{1}{1-x^2}$. Plugging this into the integral, I expected to get $\pi r$. Instead I got
$$\int_{-r}^r \frac{dx}{\sqrt{1-x^2}} = 2\sin^{-1}(r)$$
Could someone please explain where I went wrong? Thanks.