Nonlinear moveTowards()

To get nonlinear animation, would we just have to calculate that out as a formula for each frame update? For example, if we want the ball to speed up and then slow down in getting to the click destination.