Acceleration as a function of position example