We are learning about finding the surface area of solid revolutions and my teacher uses the approach of adding the sides of the curve up to find the surface area I'm confused about how she did it.

y=x^2+1
y=5
x=0

answer: (25pi-pi) +20pi+ arclength formula