We would like to know the velocity of the block when it reaches some position x. Finding this requires an integration. However,
acceleration is defined as a derivative with respect to time, which leads to integrals with respect to time, but the force is given as a function of position. To get around this, use the chain rule to find an alternative definition for the acceleration ax that can be written in terms of vx and dx/ dx.