Stretching a spring gets harder the farther you pull. Work adds up force times distance in thin slices, which is an integral: the area under the force graph.