
Ian C. answered 04/25/19
Math M.S. that personalizes Math and Physics tutoring
The derivative is x2+4x-5, which factors into (x-1)(x+5). This means the only critical point in this interval is x=1. Using the test points x=0 and x=2, we can see that this function is decreasing (moving backwards) on [0,1) and increasing (moving forward) on (1,2]. Since distance is not dependent on direction, we want to integrate the absolute value of the velocity, which is the same as integrating -(x2+4x-5) from 0 to 1 and x2+4x-5 from 1 to 2 and adding them together. A quick computation yields that it's traveled 6 units.