I need to set up an integral for the area of a surface rotated over both the x-axis and the y-axis. Given $y = e^{-x^2}$ over the interval $-1 \leq x \leq 1$.
I'm having difficulty, however, finding this equation when rotating over the $y$-axis, particularly in terms of the limits of integration. Here's what I have so far.
The operative formula is $\int_a^b 2 \pi x \ ds$ with $ds = \sqrt{1 + \Big(\frac{dy}{dx}\Big)^2} \ dx$. Based on $y = e^{x^2}$, we can get \begin{align*} & f(x) = e^{x^2} \Rightarrow f'(x) -2x e^{-x^2} \Rightarrow \Big(\frac{dy}{dx}\Big)^2 = \Big(-2x e^{-x^2}\Big)^2 = 4x^2 e^{-2x^2} \\ \end{align*} which means that $ds$ is \begin{align*} ds = \sqrt{1 + \Big(\frac{dy}{dx}\Big)^2} = \sqrt{1 + 4x^2 e^{-2x^2}} \end{align*} Putting together our integral then gives us \begin{align*} S = \int_{-1}^1 2 \pi x \sqrt{1 + 4x^2 e^{-2x^2}} \end{align*} This answer, however, is incorrect; the correct limits of integration are from $0$ to $1$, and I cannot understand why this is the case. If anyone has any insight on this, I would greatly appreciate it.