Where Exploration Meets Excellence
Jupiter Academy · Lesson

Work-Energy Theorem for a Variable Force

work-energy theorem for a variable force
work-energy theorem for a variable forceAI-generated representative image

Newton's second law tells us how a particle accelerates at a single instant, but most real motions unfold over a stretch of space where the force is not constant. A spring stiffens as it stretches, gravity weakens with altitude, and a woman pushing a trunk across a platform tires as she walks. The work-energy theorem for a variable force is the bridge that carries the instantaneous law into the language of displacement, converting a differential statement about acceleration into an integral statement about kinetic energy. It is one of the most quietly powerful results in mechanics, because it lets us compute changes in speed from the geometry of a force-displacement curve rather than from a detailed knowledge of the motion at every moment.

This lesson extends the theorem you already proved for constant forces into the general case. We begin from the time rate of change of kinetic energy, apply Newton's second law, and integrate along the path to obtain ##K_f - K_i = \int_{x_i}^{x_f} F\,dx##. From there we examine what the theorem really says: it is a scalar integral of a vector law, it discards temporal detail in exchange for energetic bookkeeping, and it remains valid for springs, inverse-square forces, friction, and motion in three dimensions. Worked examples, a data table of force laws, and a careful treatment of common errors round out the discussion.

A particle on an x-axis between positions x_i and x_f under a curved variable force F(x), beside a schematic graph of F versus x with the shaded area under the curve labelled W.
A particle moving along the x-axis under a variable force F(x), with the work done shown as the area under the force-displacement curve.Programmatically generated contextual illustration.

By the end, you should be able to read a force-displacement graph as a work budget, evaluate line integrals for simple variable forces, and recognise when the theorem is the fastest route to an answer. The lesson deliberately stops short of potential energy, which belongs to the next stage of the course, but it prepares the ground by showing how conservative forces store and release the work they do.

From an Instantaneous Law to an Integral Statement

The starting point is deceptively simple. Kinetic energy is ##K = \tfrac{1}{2}mv^2##, and its time derivative can be written as ##\dfrac{dK}{dt} = m v \dfrac{dv}{dt}##. Newton's second law supplies ##F = m\dfrac{dv}{dt}##, so the derivative collapses to ##\dfrac{dK}{dt} = Fv##. Since velocity is the time derivative of position, ##v = \dfrac{dx}{dt}##, we may write ##\dfrac{dK}{dt} = F\dfrac{dx}{dt}##, and multiplying through by ##dt## gives the compact differential relation ##dK = F\,dx##. Every step is exact, and no assumption of constant force has entered.

Integrating this relation from an initial position ##x_i## to a final position ##x_f## yields the work-energy theorem in its general form:

###K_f - K_i = \int_{x_i}^{x_f} F(x)\,dx = W###

The right-hand side is precisely the work done by the net force, defined as the area under the force-displacement curve. The theorem therefore states that the change in kinetic energy equals the work done by the net force, whether that force is constant, linear, inverse-square, or an arbitrary function of position. The constant-force result ##W = F\Delta x## is merely the special case in which the curve is a horizontal line and the area is a rectangle.

A force-displacement curve with the region under it between initial and final positions marked as the work integral, showing that the theorem turns an area into a kinetic-energy change.
The shaded area between the force curve and the x-axis from x_i to x_f is the work done, and it equals the change in kinetic energy.Programmatically generated contextual illustration.

The Scalar Integral of a Vector Law

Newton's second law is a vector equation: ##\vec{F} = m\vec{a}##. The work-energy theorem, by contrast, is a scalar equation relating two numbers. This is not a loss of rigour but a deliberate projection. Taking the dot product of the second law with an infinitesimal displacement ##d\vec{r}## gives ##\vec{F}\cdot d\vec{r} = m\vec{a}\cdot d\vec{r}##, and the right-hand side integrates to the change in kinetic energy because ##\vec{a}\cdot d\vec{r} = \vec{v}\cdot d\vec{v} = d(\tfrac{1}{2}v^2)##. The vector law has been contracted along the direction of motion, retaining only the component of force that actually does work.

This contraction explains both the theorem's economy and its limits. Because it is scalar, it cannot by itself determine the direction of motion after a force acts; it tells you how fast, not where. It also integrates over time, so the detailed temporal history of the force is smoothed away. What survives is a statement about the endpoints: the speed at the start, the speed at the end, and the accumulated work between them. For many problems that is exactly the information we possess and exactly the information we need.

Why the Theorem Is an Integral Form of Newton's Law

It is worth stating plainly that the work-energy theorem is not an independent law of nature. It is a mathematical consequence of Newton's second law, obtained by integrating over displacement rather than over time. The impulse-momentum theorem is the parallel construction obtained by integrating over time, and the two together form a matched pair: one tracks momentum through forces acting over durations, the other tracks energy through forces acting over distances. Neither contains more physics than the second law, but each packages that physics in a form suited to a different class of questions.

Because the theorem is an integral, it inherits the properties of integrals. It is additive over successive segments of a path, it changes sign when the direction of integration is reversed, and it is insensitive to how the force varies between the endpoints so long as the area under the curve is fixed. These properties are what make the theorem a practical tool rather than a mere restatement. They allow us to replace a complicated force history with a single number, the work, and to reason about speeds without ever solving the equation of motion.

Reading Force-Displacement Graphs as Work Budgets

A force-displacement graph is a ledger in which work is currency. Regions above the axis represent positive work, regions below represent negative work, and the net work is the algebraic sum of the signed areas. The reference example of the woman pushing a trunk illustrates the accounting beautifully. She applies 100 N over the first 10 m, then tires so that her force falls linearly to 50 N over the next 10 m, while friction supplies a constant 50 N opposing the motion throughout the 20 m journey.

A force-displacement graph: applied force 100 N constant for the first 10 m, then sloping linearly down to 50 N at 20 m; friction shown as a constant -50 N below the axis over the full 20 m.
Force-displacement graph of the woman pushing the trunk over 20 m, with applied force and friction.Programmatically generated contextual illustration.

Her work is the area of a rectangle plus a trapezium: ##W_F = (100 \times 10) + \tfrac{1}{2}(100 + 50)\times 10 = 1000 + 750 = 1750\ \text{J}##. Friction does ##W_f = (-50)\times 20 = -1000\ \text{J}##, the negative sign arising because the frictional force points opposite to the displacement. The net work is therefore 750 J, and by the theorem the trunk's kinetic energy increases by exactly that amount. If the trunk began at rest, its final speed follows from ##\tfrac{1}{2}mv^2 = 750\ \text{J}##.

Constructing the Graph from a Description

When a problem describes a force in words, the first task is to translate the description into a piecewise function. A constant force becomes a horizontal segment; a force that "reduces linearly" becomes a sloping segment; a force that vanishes at a boundary becomes a segment ending on the axis. Each segment contributes a simple geometric area, and the total work is their sum. Sketching the graph before computing anything is not decoration; it exposes the geometry that makes the integral trivial and catches sign errors before they propagate.

Pay attention to the endpoints. In the trunk example the applied force at ##x = 20\ \text{m}## is 50 N, not zero, so the trapezium's parallel sides are 100 N and 50 N rather than 100 N and 0 N. A careless reading would give 500 J for the second stage instead of 750 J. The graph makes the correct geometry visible and turns a potential misreading into an obvious one.

Sign Conventions and the Net Work

The sign of work is determined by the angle between force and displacement, not by whether the force is "driving" or "resisting" in some informal sense. A force with a component along the displacement does positive work; a component opposed to it does negative work; a force perpendicular to the displacement does none. Friction almost always does negative work on a sliding body, gravity does negative work on a rising body and positive work on a falling one, and the normal force on a horizontal surface does no work at all because it is perpendicular to the motion.

The theorem refers to the net work, the sum over all forces. Computing the work of a single force and equating it to the change in kinetic energy is a frequent and serious error. In the trunk problem, the woman's 1750 J is not the change in kinetic energy; the net 750 J is. The distinction matters whenever more than one force acts, which is to say in almost every real problem.

Worked Examples with Variable Forces

The theorem earns its keep when the force is a known function of position but the motion is difficult to describe directly. Three families of force recur throughout mechanics: the linear restoring force of a spring, the inverse-square force of gravitation or electrostatics, and the inverse-linear force that appears in certain logarithmic potentials. In each case the work integral can be evaluated in closed form, and the resulting kinetic energy change follows immediately. The examples below are chosen to display the technique rather than to exhaust it.

Before evaluating any integral, identify the limits. The lower limit is the initial position, the upper limit the final position, and the integrand is the component of force along the direction of motion. If the force opposes the displacement, the integrand carries a negative sign and the work comes out negative, which is physically correct. Keeping the limits in the correct order prevents the most common sign error in the entire subject.

A Particle Under a Linear Restoring Force

Consider a particle moving along the ##x##-axis under the force ##F = -kx##, the Hooke's-law force exerted by an ideal spring of stiffness ##k##. The work done as the particle moves from ##x_i## to ##x_f## is

###W = \int_{x_i}^{x_f} (-kx)\,dx = -\tfrac{1}{2}k x_f^2 + \tfrac{1}{2}k x_i^2###

If the particle starts at rest at a stretched position ##x_i = A## and moves to ##x_f = 0##, the work is ##\tfrac{1}{2}kA^2##, positive because the spring pulls the particle in the direction it moves. The kinetic energy at the centre is therefore ##\tfrac{1}{2}kA^2##, and the speed is ##v = A\sqrt{k/m}##. This is the first appearance of the quantity ##\tfrac{1}{2}kx^2##, which the next lesson will identify as elastic potential energy; for now it is simply the work stored in the spring's deformation.

An Inverse-Square Force

Now consider a force ##F = -\dfrac{k}{x^2}## directed toward the origin, the form taken by Newtonian gravity and Coulomb's law in one dimension. The work done as the particle moves from ##x_i## to ##x_f## is

###W = \int_{x_i}^{x_f} \left(-\dfrac{k}{x^2}\right)dx = k\left(\dfrac{1}{x_f} - \dfrac{1}{x_i}\right)###

For a particle falling from a large distance ##x_i \to \infty## to a finite ##x_f = r##, the work is ##\dfrac{k}{r}##, finite despite the infinite path. This is the energetic reason gravitational and electrostatic influences have unlimited range: the work accumulated over an infinite fall converges to a finite value. Conversely, escaping from ##r## to infinity requires work ##-\dfrac{k}{r}##, the origin of the escape-velocity concept in celestial mechanics.

A curve of force magnitude falling as one over x squared, with the tail from large x to a finite r marked, showing that the total accumulated work converges to a finite value.
The force −k/x² weakens with distance, yet the area accumulated from infinity to r stays finite, equal to k/r.Programmatically generated contextual illustration.

Operational Meaning and the Three-Dimensional Extension

The theorem does more than solve problems; it supplies an operational definition of kinetic energy. Kinetic energy is the quantity whose change equals the work done by the net force, measured by the area under the force-displacement curve. This is how the concept is calibrated in practice: a known force acting over a known distance produces a measurable change in speed, and the combination ##\tfrac{1}{2}mv^2## is the bookkeeping device that makes the two sides balance. Energy is thus not an abstract posit but a measurable currency exchanged between force and motion.

The same logic extends to three dimensions without modification in spirit. The work becomes a line integral along the actual path, ##W = \int_{\vec{r}_i}^{\vec{r}_f} \vec{F}\cdot d\vec{r}##, and the theorem reads ##K_f - K_i = W## exactly as before. The path dependence of the line integral is the subtle point: for some forces the value depends only on the endpoints, for others it depends on the route taken. That distinction, between conservative and non-conservative forces, is the subject of the next lesson.

Line Integrals Along a Path

In three dimensions the infinitesimal displacement is ##d\vec{r} = dx\,\hat{i} + dy\,\hat{j} + dz\,\hat{k}##, and the work element is the dot product ##\vec{F}\cdot d\vec{r} = F_x\,dx + F_y\,dy + F_z\,dz##. The total work is the integral of this scalar along the path. For a force that depends only on position, the integral can often be evaluated by parameterising the path, but for conservative forces a shortcut exists: the work depends only on the endpoints, so any convenient path may be chosen.

A concrete illustration is a block sliding down a curved frictionless track. Gravity does work ##mgh## regardless of the track's shape, because the vertical displacement is the same for every path between the same heights. Friction, by contrast, does work proportional to the path length, so a longer winding track dissipates more energy. The line integral makes this contrast precise: the integrand for gravity is a perfect differential, while the integrand for friction is not.

A block descending from height h to the ground along a straight ramp and along a curved track, with the vertical drop h labelled on both and the path lengths marked as different.
Two different tracks between the same two heights give the same gravitational work mgh, while friction's work depends on the path length.Programmatically generated contextual illustration.
A block on a curved frictionless track descending from an upper point to a lower point, with the vertical height difference h marked between the two levels and the curved path shown.
A block sliding down a curved frictionless track between two heights, with the vertical drop marked.Programmatically generated contextual illustration.

When the Theorem Is the Fastest Route

The theorem is most valuable when the forces are complicated but the speeds and positions are known or sought. A roller-coaster car descending a twisting track, a charged particle drifting through a non-uniform field, a spring launching a projectile: in each case the detailed acceleration is a nightmare, but the work integral is tractable and the speed follows at once. The theorem converts a dynamical problem into a geometric one, replacing the equation of motion with an area calculation.

It is less useful when the force depends on time rather than position, or when the direction of motion is the unknown. In those cases the impulse-momentum theorem or direct integration of Newton's second law is preferable. Knowing which tool to reach for is the mark of a fluent problem-solver, and the work-energy theorem is the tool of choice whenever the question is "how fast" rather than "which way" or "when".

Reference Card

Force Laws and Their Work Integrals

Closed-form work done between positions ##x_i## and ##x_f## for common variable forces.

Force Law Work Integral
Constant ##F## ##F(x_f - x_i)##
Spring ##-kx## ##\tfrac{1}{2}k(x_i^2 - x_f^2)##
Inverse square ##-k/x^2## ##k(1/x_f - 1/x_i)##
Linear drag ##-bv## Path-dependent; use ##\int F\,dx##
Note:
  • Signs follow the direction of the force relative to displacement.
  • Only the first three are conservative; drag depends on the path.

Common Mistakes and How to Avoid Them

The most persistent error is equating the work of a single force to the change in kinetic energy. The theorem speaks of the net work, the algebraic sum over every force acting on the body. A block sliding down a rough incline experiences gravity doing positive work and friction doing negative work; the change in kinetic energy is the difference, not either term alone. Students who forget friction systematically overestimate final speeds, and students who forget gravity underestimate them. The remedy is a disciplined free-body inventory before any integral is written.

A second error is mishandling the limits of integration. Reversing the limits changes the sign of the work, which is physically meaningful: work done by the force as the particle moves from ##x_f## back to ##x_i## is the negative of the forward work. A third error is treating a force that depends on velocity as if it depended on position, which invalidates the simple integral. Drag forces of the form ##-bv## or ##-cv^2## require the equation of motion to be solved before the work can be evaluated, and the theorem then serves as a check rather than a shortcut.

Diagnosing Sign and Limit Errors

A reliable diagnostic is to ask whether the force assists or opposes the motion at each stage. If it assists, its work should come out positive; if it opposes, negative. A result with the wrong sign almost always traces to a reversed limit or a dropped minus sign in the integrand. Sketching the force-displacement graph and shading the signed areas provides an independent check that catches such errors before they contaminate the final answer.

Another diagnostic is dimensional analysis. Work has units of joules, ##\text{kg}\,\text{m}^2\,\text{s}^{-2}##, and every term in a work expression must carry those units. A spring work ##\tfrac{1}{2}kx^2## has units of ##(\text{N/m})(\text{m}^2) = \text{N}\,\text{m} = \text{J}##, as required. An inverse-square work ##k/x## has units of ##(\text{N}\,\text{m}^2)/\text{m} = \text{N}\,\text{m} = \text{J}##, also correct. Checking units is a five-second habit that eliminates a surprising fraction of errors.

Recognising When the Theorem Does Not Apply Directly

The theorem always applies to the net work, but it is not always the most convenient tool. When the force is given as a function of time, integrating over displacement requires knowing ##x(t)##, which defeats the purpose. When the question asks for the time of flight or the direction of motion, the theorem is silent. When the system is deformable, with internal degrees of freedom, the simple form ##K_f - K_i = W## must be applied to each particle separately or replaced by a more general energy balance.

Recognising these boundaries is part of understanding the theorem rather than merely memorising it. The theorem is a projection of Newton's second law onto the direction of motion, integrated over distance. It is exact within its domain and silent outside it. A physicist who knows both what a tool does and what it does not do is far better equipped than one who applies it indiscriminately.

Worked Example

Trunk Problem Work Ledger

Signed work contributions over the full 20 m displacement.

Stage Work (J)
Applied, first 10 m ##+1000##
Applied, second 10 m ##+750##
Friction, full 20 m ##-1000##
Net work ##+750##
Note:
  • Net work equals the change in kinetic energy.
  • Friction's negative sign reflects its opposition to motion.

Applications Across Physics and Engineering

The theorem's reach extends far beyond textbook blocks. In ballistics, the work done by a variable drag force determines the terminal speed of a projectile and the energy it retains on impact. In accelerator physics, the work done by electric fields on charged particles over a path sets the beam energy, and the theorem connects the accelerating voltage to the final kinetic energy without requiring a detailed trajectory. In biomechanics, the work done by muscles over a stride is computed from force-platform data and equated to the change in the body's kinetic energy, a technique used in sports science and rehabilitation.

Engineering design leans on the theorem whenever a force profile is known but the resulting motion is complex. A vehicle's braking distance follows from the work done by friction over the stopping distance, equated to the initial kinetic energy. A spring-loaded mechanism's launch speed follows from the work stored in the spring. A pile driver's penetration depth follows from the work done by the resisting soil. In each case the theorem replaces a differential equation with an area, and the area is what the engineer can measure.

From Force Curves to Design Decisions

Because the theorem equates kinetic energy change to the area under a force-displacement curve, it allows designers to reason about energy budgets without solving the motion. A safety engineer sizing a crumple zone wants the force to rise gradually so that the area under the curve accumulates over a long distance, reducing the peak force for a given energy absorption. The same logic governs the design of shock absorbers, landing gear, and protective packaging. The theorem makes the trade-off between force and distance explicit and quantitative.

In materials testing, the area under a load-displacement curve is the work of fracture, a measure of toughness. In electrical machines, the mechanical work done by a variable magnetic force can be computed from the force-displacement characteristic and compared with the electrical energy input, revealing losses. The theorem is thus not confined to mechanics; it is a general accounting principle for any system in which a force acts over a displacement.

Connecting to the Next Lesson

The work done by a spring, ##-\tfrac{1}{2}k x_f^2 + \tfrac{1}{2}k x_i^2##, depends only on the endpoints and not on the path taken between them. The same is true of gravity and of the inverse-square force. Forces with this property are called conservative, and the work they do can be stored as a function of position called potential energy. The next lesson develops this idea systematically, showing how the work-energy theorem becomes the conservation of mechanical energy when only conservative forces act.

For now, notice the seed of that idea in the integrals above. The quantity ##\tfrac{1}{2}kx^2## appeared as a bookkeeping term in the spring work; it will reappear as elastic potential energy. The quantity ##k/x## appeared in the inverse-square work; it will reappear as gravitational or electrostatic potential. The work-energy theorem for a variable force is thus the doorway to the energy landscape that the rest of the course will explore.

Comparison

Theorem Versus Newton's Second Law

How the integral form differs from the instantaneous law.

Feature Work-Energy Theorem
Mathematical form Scalar integral over displacement
Information retained Endpoint speeds and net work
Information lost Instantaneous acceleration and direction
Best used when Forces are complex, speeds and positions known
Note:
  • The theorem is derived from, not independent of, the second law.
  • Impulse-momentum is the parallel time-integrated form.

Advanced Perspectives and Problem-Solving Strategy

Beyond the standard curriculum, the theorem connects to deeper structures. In Lagrangian mechanics, the work-energy relation emerges as a consequence of the Euler-Lagrange equations when the Lagrangian has no explicit time dependence, and the conserved quantity is the Hamiltonian. In thermodynamics, the first law is the work-energy theorem generalised to include heat, with the work term becoming a path integral over pressure and volume. The same mathematical architecture, an integral of a force-like quantity over a displacement-like variable, recurs throughout physics.

For problem-solving, a reliable strategy is to classify the problem before computing. If the force is given as a function of position and the question concerns speeds, the work-energy theorem is the natural tool. If the force is given as a function of time and the question concerns velocities, the impulse-momentum theorem is preferable. If the force is given as a function of velocity, the equation of motion must be solved first, and the theorem serves as a consistency check. This triage saves time and prevents the frustration of forcing an unsuitable method.

Numerical Evaluation of the Work Integral

When the force is known only as data, the integral is evaluated numerically. The trapezoidal rule approximates the area under the curve by summing the areas of trapezia between successive data points, and Simpson's rule improves the accuracy by fitting parabolas. A short Python routine makes the computation transparent and allows the student to experiment with different force profiles.


import numpy as np

def work_trapezoid(x, F):
    """Work done by force F(x) sampled at positions x."""
    x = np.asarray(x, dtype=float)
    F = np.asarray(F, dtype=float)
    return np.trapz(F, x)

# Example: spring force F = -k x from x=0.2 m to x=0
k = 200.0
x = np.linspace(0.2, 0.0, 101)
F = -k * x
W = work_trapezoid(x, F)
print(f"Work done by spring: {W:.3f} J")
print(f"Expected 0.5*k*A^2: {0.5 * k * 0.2**2:.3f} J")

The output confirms the analytic result ##\tfrac{1}{2}kA^2 = 4.000\ \text{J}## to within the discretisation error, which shrinks as the number of sample points increases. Numerical evaluation is not a substitute for understanding the integral, but it is a powerful way to build intuition for how the area accumulates and how the sign of the force controls whether kinetic energy rises or falls.

Checking Answers with Limiting Cases

A final habit worth cultivating is to test any result against limiting cases. If the force is constant, the general integral must reduce to ##F\Delta x##. If the displacement is zero, the work must vanish. If the force is reversed, the work must change sign. If the spring stiffness tends to zero, the spring work must vanish. These checks are quick, require no additional computation, and catch a large fraction of algebraic slips. They also deepen understanding by showing how the general formula contains the special cases as limits.

The work-energy theorem for a variable force is thus both a computational tool and a conceptual lens. It shows that energy is the integral of force over distance, that kinetic energy is the quantity that balances this integral, and that the vector law of Newton, when projected onto the path and integrated, yields a scalar statement of remarkable generality. Mastery of this theorem is the foundation on which the rest of the course, from potential energy to collisions, is built.

Strategy

Problem Triage Guide

Choosing the right tool for the force description given.

Given Recommended Tool
##F(x)##, ask speed Work-energy theorem
##F(t)##, ask velocity Impulse-momentum theorem
##F(v)##, ask distance Solve equation of motion first
Force data table Numerical integration
Note:
  • Always inventory all forces before integrating.
  • Check signs and units as a final step.
Glossary

Key Symbols and Units

Symbols used throughout the lesson with their SI units.

Symbol Meaning and Unit
##K## Kinetic energy, joules (J)
##W## Work done by net force, joules (J)
##k## Spring stiffness, ##\text{N}\,\text{m}^{-1}##
##x## Position along path, metres (m)
Note:
  • All quantities are scalars in the theorem.
  • Work and energy share the same unit, the joule.
Course Map

Lesson Roadmap

Where this lesson sits in the Work, Energy and Power course.

Lesson Focus
Lesson 5 Work done by a variable force
Lesson 6 Work-energy theorem for a variable force
Lesson 7 Potential energy and conservative forces
Note:
  • This lesson builds directly on the variable-force work integral.
  • It prepares the ground for potential energy next.

RESOURCES