Lessons · energy

Work as area: a variable force

Regime 2 — calculus does what algebra cannot. The integrand isn't constant, so no single algebra product gives the answer; the accumulated quantity is the area under the curve — and SymPy proves that area is exactly the closed-form result.

Regime 2 · calculus does more Math machine-derived & checked by SymPy 4 modeling assumptions (author-asserted)

A 2 kg block on a frictionless track starts at rest. A force that grows with distance, F(x)=bxF(x) = b\,x (here b=8b = 8 N/m), pushes it for d=1.5d = 1.5 m. How much work is done — and where does 12mv2\tfrac12 m v^2 actually come from? Watch the work accumulate as the area under the force curve.

Work done W=12bd2W = \tfrac12 b d^2 (the shaded area)
9 J
Kinetic energy gained 12mv2\tfrac12 m v^2
9 J
Final speed v=b/mdv = \sqrt{b/m}\,d
3 m/s
Maximum force Fmax=bdF_{\max} = b\,d
12 N
Work is the area under the force–displacement curve
W=FdxW = \int F\,dx

Work is defined as the integral of force over displacement. For a constant force this integral is a rectangle (and gives W=FdW = F d); for any force it is the area under the FFxx curve. The algebra formula is the special case where the area is a rectangle.

check ddxW=F\tfrac{d}{dx}W = F; check W=0xFduW = \int_0^x F\,du; back-substitute into 12mv2=W\tfrac12 m v^2 = W; collapse the constant-force case to FdF\,d

  • The work's slope is the force: W(x)=F(x)W'(x) = F(x) — the area's rate of growth is the curve's height. [structural]
  • The accumulated work is exactly the area: W(x)=0xFduW(x) = \int_0^x F\,du. [structural]
  • The kinetic energy equals the work: 12mv2=W\tfrac12 m v^2 = W — the memorized 12mv2\tfrac12 m v^2 is the area. [structural]
  • When the force is constant the integral collapses to W=FdW = F\,d — the algebra formula is the area of a rectangle (the quadrature). [structural]

Dimensional homogeneity: checked by SymPy (holds).

Common misconception: “Work is the maximum force times the distance, W=FmaxdW = F_{\max}\,d.

The force is not constant — it climbs from 00 to Fmax=bdF_{\max} = b\,d. Work is the area under the FFxx line, a triangle of area 12Fmaxd\tfrac12 F_{\max} d — exactly half the rectangle FmaxdF_{\max} d. Drag the cursor: the shaded triangle, not the enclosing rectangle, is the work, and it equals the kinetic energy gained.

Modeling assumptions — author-asserted, disclosed not discharged
  • Frictionless track: the applied force is the only force doing work along the motion.
  • The force acts along the direction of motion (one dimension), so W=FdxW = \int F\,dx with no angle factor.
  • Point mass; the block starts from rest (v0=0v_0 = 0), so all the work becomes kinetic energy.
  • Ideal linear force law F(x)=bxF(x) = b\,x (the force is exactly proportional to displacement).

The F–x graph, fully annotated

A static rendering (Matplotlib): the shaded area under F is the accumulated integral W, and the slope of W is F. The interactive version with a draggable cursor is in the Graph tab above.

2026-06-26T15:38:17.227251 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/