Here, the acceleration due to gravity affect the vertical height only.
y=5t−2t2
The instantaneous velocity in the vertical direction is,
dydt=5−4t
The instantaneous acceleration in the vertical direction is,
d2ydt2=−4
Thus, the
acceleration due to gravity is g=4m/s2.