
Anthony T. answered 09/23/20
Silicon Valley Software Engineer |M.S. in Computer Science
To solve this, you should know that distance is the integral of velocity by definition.
In equation form:
distance = integral(-2t2+4) from t=0 to t=2
= -(2/3)t3 +4t
= -(2/3)23 +4*2 - (-(2/3)*03 +4*0)
= -(2/3)*8 + 8 - (0+0)
= 2.667