I have been trying to find the surface area of the torus generated by the rotation of $(x-R)^2 + y^2 = r^2$ about the y axis. I tried to use the equation: $$\int_a^b2\pi y\sqrt{1+\left(\frac {dy}{dx}\right)^2}dx$$
I know that the derivative of the equation is $$\frac {dy}{dx}= \frac {-(x+R)}{\sqrt{r^2-(x+R)^2}}$$
If I am correct, the limits of integration are $R+r$ and $R-r$. When I plug it in the equation I get:
$$2\pi\int_{R-r}^{R+r} \sqrt{r^2+(x+R)^2} * \sqrt{1+\frac {(x+R)^2}{r^2-(x+R)^2}}dx $$
When you simplify, the first square root cancels out and in the second square root we are left with r^2: $$2\pi\int_{R-r}^{R+r}rdx$$
Clearly, this isn't going to lead to the right answer of $4\pi^2Rr$. What am I doing wrong?