Academy
Formulas/physics/Work Energy Power/Work Done by a Variable Force

Work Done by a Variable Force

Work done when force varies with position — area under the force-displacement graph.
Class 11Class JEE
Derivation

The problem with variable forces

The formula W=FdcosθW = Fd\cos\theta works only when force is constant. In many real situations, force changes as the body moves — a spring, gravity near a planet, an electric force.

For a variable force, we cannot simply multiply force by displacement. We need calculus.

Building the integral

Divide the total displacement from x1x_1 to x2x_2 into many tiny intervals dxdx. Over each tiny interval, the force F(x)F(x) is approximately constant (since dxdx is infinitesimally small).

Work done in each tiny interval:

dW=F(x)dxdW = F(x) \, dx

Total work = sum of all tiny pieces:

W=x1x2F(x)dxW = \int_{x_1}^{x_2} F(x) \, dx

Geometric meaning

The integral x1x2F(x)dx\int_{x_1}^{x_2} F(x) \, dx is the area under the force-displacement graph between x1x_1 and x2x_2.

  • Area above the xx-axis (force in direction of motion): positive work
  • Area below the xx-axis (force opposing motion): negative work
  • Net work = algebraic sum of all areas

This geometric interpretation is extremely useful — many problems can be solved by finding areas of simple shapes (rectangles, triangles, trapezoids) without explicit integration.

Example: Spring force

For a spring with spring constant kk, force F=kxF = -kx (restoring, opposing displacement).

Work done by spring as body moves from x=0x = 0 to x=x0x = x_0:

Wspring=0x0(kx)dx=kx220x0=12kx02W_{spring} = \int_0^{x_0} (-kx) \, dx = -k\frac{x^2}{2}\Big|_0^{x_0} = -\frac{1}{2}kx_0^2

Negative — the spring does negative work as it is stretched (it resists the stretching).

Example: Gravity near Earth's surface

F=mgF = -mg (downward, taking upward as positive).

Work done by gravity as body moves from height 00 to height hh:

Wgravity=0h(mg)dy=mghW_{gravity} = \int_0^h (-mg) \, dy = -mgh

Negative — gravity does negative work when the body moves upward.

Work done by gravity as body moves downward by hh (from hh to 00):

Wgravity=h0(mg)dy=mghW_{gravity} = \int_h^0 (-mg) \, dy = mgh

Positive — gravity does positive work on a falling body.

Reducing to the constant force case

If FF is constant (does not depend on xx):

W=x1x2Fdx=F(x2x1)=FdW = \int_{x_1}^{x_2} F \, dx = F(x_2 - x_1) = F \cdot d

Consistent with the constant-force formula for θ=0\theta = 0.

Remember
In problems involving variable forces, always check if the force-displacement graph forms a simple geometric shape. If $F$ varies linearly with $x$ (like a spring), the area is a triangle — $W = \frac{1}{2} \times base \times height$. No integration needed.