For t = 0 to 2: math expression

For t = 2 to 7: math expression

For t = 7 to 8: math expression


(The velocity is negative, since the particle is going in the opposite direction.)