Work as an integral

The work a force does is the component of force along the displacement times the displacement, and when the force varies it is the integral $\int F\,dx$, the area under a force-position graph.

From AP Physics C: Mechanics.