y=(x-1)2 and y=x+1 intersect when:
x+1=(x-1)2=x2-2x+1,
x2-3x=0=x(x-3), so x=0 and 3, making the intersection points (0,1) and (3,4).
Between x=0 and x=3, the line y=x+1 is above the curve y=(x-1)2. For any point x between 0 and 3, the height of the line above the x-axis is x+1, while the height of the curve is (x-1)2. Note that (1,0) is the vertex of the curve, a parabola. If we take just the line and its rotation about the x-axis, the height above the x-axis (that is, the y value) is the radius of the disc produced by rotation. And its area would be πy2. Give the disc a very small thickness dx and this becomes the volume πy2dx=π(x+1)2dx. So π∫03(x+1)2dx is the volume of the shape obtained by rotating just the line segment about the x-axis. Integration just sums the volumes of the thin discs over the interval [0,3].
Similarly, π∫03y2dx=π∫03(x-1)4dx would be the volume of the shape obtained by rotating just part of the curve about the x-axis. This volume has to be "cut out" of the shape produced by rotating the line. Note that exactly at the vertex of the parabola there would be no cutout. So the volume of the remaining shape is:
π∫03(x+1)2dx-π∫03(x-1)4dx=
π∫03[(x+1)2-(x-1)4]dx=
π∫03[(x2+2x+1-(x4-4x3+6x2-4x+1)]dx=
π∫03(-x4+4x3-5x2+6x)dx=π[-x5/5+x4-5x3/3+3x2]03=72π/5=45.2389 cubic units (approx).