i don't understand why work depends only on displacement...work is scalar so shouldn't it depend on exactly how much distance is traveled, not just the distance and end point? is there some sort of mathematical way to prove why it only depends on displacement? please explain!