In school, I had a problem something like this:
A region R is bounded by $x$-axis, $y$-axis, $x = 3$, and $y = e^x$. What is the volume of the solid produced by revolving it around the $y$-axis.
To solve this, using the washer method, I thought I would have to do $$\pi\int_1^{e^3}[3^2-\ln(y)^2]\,dy+\pi{(3)^2}\cdot1$$ to get the area above where $e^x$ intersects the axis and then the area of the cylinder from $0$ to $1$.
However, my teacher said the answer would be only $$\pi\int_0^{e^3}[3^2-\ln(y)^2]\,dy.$$
I felt that this integral would also be getting the area of the curve that was not bounded by the $y$-axis from $0$ to $1$, but my teacher didn't really have a good explanation for the question.
Which answer is correct? If it is the teacher's answer, please explain why my thought process was wrong.
Thanks.