Straight line motion with varying acceleration