A 2-kg collar which can slide on a frictionless vertical rod is acted upon by a force P which varies in magnitude as shown. Knowing that the collar is initially at rest, determine
(a) The maximum velocity of the collar,
(b) The time when the velocity iszero.