Assuming the area below the line y=0 (i.e. x>1) does NOT count, the area to be rotated is shown in the graph attached.
A. Again, using Pappus's theorem,
Area, A = (2/3)*1*(1-(-1))=4/3 (2/3 of the enclosing rectangle, or you can integrate)
Distance of centroid from axis of rotation, R = (2-0) = 2
Volume = 2 π RA = 2 π 2 * 4/3 = 16 π / 3 (approximately = 16.76 units)
B. By integration, using the washer method
Volume =
= 16 π /3 as before