Displacement and Distance
Given the velocity function, we can calculate the displacement by integrating this function without any restriction of the endpoints, because we won't care about signs of the results. The displacement can be positive, negative, or even zero because it measures the change of position and NOT the distance traveled.
That said, integrate the velocity function as follows:
Integrating:
The displacement is 5 ft
Now for the distance, we must be careful with the sign of the function in the given interval. It's convenient to graph the function as follows:
The function changes its sign from negative to positive at x = π. Since the distance is always positive, we must add the positive and the negative area with its absolute values.
Separating the integral:
Integrating:
The distance is 15 ft