we see that acceleration is positive till x=2 .
thus velocity of the block is increasing till x=2 in +ve direction.
thus in 0<x≤2 max. K.E is at x=2 .
given
ma=4-x2
=> mv.dvdx= 4-x2
=> m∫v.dv = ∫ (4-x2 ) dx
=> Mv22 = 4x-x33
we observe L.H.S is K.E
putiing x=2.
KE= 16/3=5.33