Problem :
Let $l$ be a line which passes two points : $(1,0,0), (1,1,1)$.
And $S $ be a surface which generated by revolving line $l$ around $z$-axis.
Find a volume enclosed by surface $S$ and two planes : $z=0, z=1$.
My Attempt
Parametric equation of $l$ can be obtained easily : $$l(t) = (1,t,t)$$
And, distance $d(t)$ between $l$ and $z$-axis is same with distance between $(0,0, t), (1,t,t)$ : $$d(t) = \sqrt{1+t^2}$$
Since $l(0)=(1,0,0), l(1)=(1,1,1)$, volume $V$ what we want is : $$\begin{align} V &= \pi\int_0^1 d(t)^2 dt \\ &= \pi\int_0^1 (1+t^2)dt \\ &= \frac{4}{3}\pi\end{align}$$
Here are my main questions :
Is this method legit? If not, I'd like to know what the problem is. If yes, is this method can be used anytime? (For problems which request volume enclosed by surface which generated revolving line or curve and planes.)
Can I find equation of $S$ explicitly to evaluate $V$ with triple integral?
