Sub topic 9
Work Done by a Variable Force
Assume you know vector components, Newton’s second law, basic trigonometry, and definite integrals. This chapter focuses on motion along one coordinate, such as an object moving along the \(x\)-axis.
Why a variable force needs a new method
For a constant force parallel to a displacement, work is
\[ W = Fd. \]
A variable force changes as the object moves. The force may depend on position, time, or another quantity. When it depends on position, different parts of the path contribute different amounts of work.
Break the displacement into many small pieces. Over a very short distance \(dx\), the force is nearly constant, so the small amount of work is
\[ dW = F_x(x)\,dx. \]
Here, \(F_x(x)\) is the component of force along the direction of motion. Adding all the small contributions gives
\[ W = \int{xi}^{xf} Fx(x)\,dx. \]
This is the one-dimensional form of the work integral.
Work as area under a force-position graph
On a graph of \(F_x\) versus \(x\), the work is the signed area between the curve and the \(x\)-axis.
- Area above the axis represents positive work.
- Area below the axis represents negative work.
- Areas can cancel when the force changes direction.
- The unit of work is the joule, where \(1\text{ J}=1\text{ N}\cdot\text{m}\).
For a constant force, the graph is a horizontal line. Its area is a rectangle, so the integral becomes \(W=Fd\).
Consider a force that increases linearly from \(0\text{ N}\) at \(x=0\) to \(6\text{ N}\) at \(x=3\text{ m}\). The graph forms a triangle. Therefore,
\[ W=\frac12(3\text{ m})(6\text{ N})=9\text{ J}. \]
The same result comes from integration. The line has equation \(F_x(x)=2x\), so
\[ W=\int0^3 2x\,dx =\left[x^2\right]0^3 =9\text{ J}. \]
A general procedure
Use this process when the force is given as a function of position or as a graph.
- Choose the positive direction and identify the initial and final positions.
- Find the component of force parallel to the displacement.
- Write \(W=\int{xi}^{xf}Fx(x)\,dx\), or divide the graph into simple shapes.
- Keep the signs of the force and displacement.
- Check that the final unit is joules.
If the force has a perpendicular component, that component does no work for motion along the \(x\)-axis. More generally, work is calculated using the component of force in the direction of each small displacement:
\[ W=\int \mathbf F\cdot d\mathbf r. \]
The dot product automatically includes the angle between the force and the displacement.
Numerical work for a force with no simple formula
Sometimes a force is known only through measurements or a complicated function. A numerical approximation divides the interval into small pieces. The trapezoid rule estimates each piece as a trapezoid and adds the results.
def work_numeric(force_fn, a, b, n=1000):
"""Approximate work from x=a to x=b using the trapezoid rule."""
h = (b - a) / n
total = 0.0
for i in range(n):
x1 = a + i * h
x2 = x1 + h
total += (force_fn(x1) + force_fn(x2)) * h / 2
return total
# Force increases as F(x) = 2x newtons from x = 0 to x = 3 meters.
work = work_numeric(lambda x: 2 * x, 0.0, 3.0)
print(round(work, 3)) # 9.0Increasing n usually improves the approximation when the force curve is smooth. However, very large values can increase computation time and may expose floating-point rounding effects.
Connecting variable work to energy
The work-energy theorem uses the total work from all forces:
\[ W_{\text{net}}=\Delta K. \]
Therefore, a variable force can change an object’s speed by an amount determined by the integral of its force over position. This is especially useful when the force varies with position and acceleration is not constant.
Exercise
A force is F(x) = 5 - x newtons while an object moves from x = 1 m to x = 4 m. What work does the force do?
Show answer
W = ∫₁⁴ (5 - x) dx = [5x - x²/2]₁⁴ = 4.5 J.