Linear motion with variable acceleration