Rotating a function around the y-axis with curve lines