
Aime F. answered 04/28/21
Experienced University Professor of Mathematics & Data Science
Turn all the information into math, as follows.
"from rest" x(0) = 0.
"accelerates uniformly" x'' (t) = a > 0 for 0 < t < 1.
x'(1) = 16.
"at constant speed" x''(t) = 16 for 1 < t < 16.
"decelerating uniformly" x'' (t) = –b < 0 for 16 < t < 17.
"coming to rest" x' (t) = 0 for 17 < t < 21.
At this point we can quickly obtain x(t) = at2/2 + ct for 0 < t < 1, a + c = 16.
Also x(t) = a/2 + c + 16(t – 1) for 1 < t < 16, and
x(t) = a/2 + c + 16•15 – b(t – 16)2/2 + d (t – 16) for 16 < t < 17, –b + d = 0.
Check that I made no mistakes, but the idea going forward is to keep chaining the information together like this (keeping x(t) a continuous function) so there are enough equations to determine whatever is unknown.