Linear motion with varying force