Why the Angle Matters
A force does work on an object when it acts along the object’s displacement. If the force is not parallel to the motion, only part of its magnitude contributes to the work. That part can change as the object moves: a rope may become steeper as it is pulled, or a pushing force may gradually tilt downward.
For straight-line motion, the essential calculation is to find the force component in the direction of motion at each position and integrate that component over the distance traveled. The force’s perpendicular component does not contribute directly to work because it acts across, rather than along, the displacement.
Definition for Straight-Line Motion
Suppose an object moves along a straight line in the positive \(x\)-direction, from \(x=a\) to \(x=b\), where \(a\le b\). Let \(F(x)\) be the magnitude of a force acting on the object at position \(x\), and let \(\theta(x)\) be the angle between the force and the positive direction of motion. The angle is measured from \(0\) to \(\pi\): angles below \(\pi/2\) have a forward component, while angles above \(\pi/2\) have a backward component.
The formula also applies when the force magnitude is constant but its angle changes, or when both magnitude and angle vary. Continuity is a convenient sufficient condition for the integral to exist; more generally, the parallel component need only be integrable. In each case, \(\theta(x)\) must describe the angle at the object’s current position.
Why the Formula Works
Over a small displacement \(\Delta x\) in the positive direction, the displacement vector points along the line of motion. The force can be split into a parallel component of magnitude \(F(x)\cos\theta(x)\) and a perpendicular component. The perpendicular component is at a right angle to the displacement, so it contributes no work over that small step. The small work is therefore approximately \(F(x)\cos\theta(x)\Delta x\).
Adding those contributions over a partition of the path gives a sum of the form \(\sum F(x_i)\cos\theta(x_i)\Delta x_i\). As the partition intervals shrink, these sums approach the definite integral of the parallel component. This yields the work formula.
Write its magnitude \(F(x)\) and its angle \(\theta(x)\) relative to the direction of motion.
Calculate \(F(x)\cos\theta(x)\), keeping its sign.
Evaluate \(\int_a^b F(x)\cos\theta(x)\,dx\), then report the result with work units.
Worked Examples
Worked Example: Pulling an Object with a Changing Rope Angle
An object moves horizontally from \(x=0\,\mathrm{m}\) to \(x=4\,\mathrm{m}\). A rope pulls it toward a fixed point at \((4\,\mathrm{m},3\,\mathrm{m})\), and the rope’s force has constant magnitude \(10\,\mathrm{N}\). Find the work done by the rope.
At position \(x\), the rope points along the vector \((4-x,3)\), with lengths measured in metres. Its length is \(\sqrt{(4-x)^2+9}\,\mathrm{m}\). The horizontal, forward component of the force is therefore
Thus the work is
To check the antiderivative, differentiate it: \(\frac{d}{dx}\left[-\sqrt{(4-x)^2+9}\right]=(4-x)/\sqrt{(4-x)^2+9}\), which is the required integrand apart from the constant factor \(10\). At the endpoint \(x=4\,\mathrm{m}\), the rope is vertical and its horizontal component is zero, as the formula also shows.
Worked Example: Pushing with Increasing Magnitude and Angle
An object moves from \(x=0\,\mathrm{m}\) to \(x=5\,\mathrm{m}\). A push has magnitude \(F(x)=(10+2x)\,\mathrm{N}\), where the numerical value of \(x\) is measured in metres. The push tilts progressively below the forward direction, with \(\cos\theta(x)=1-x/10\) on this interval. Find the work done by the push.
The angle grows from \(0\) to \(\pi/3\), since \(\cos\theta(0)=1\) and \(\cos\theta(5)=1/2\). Its parallel component is
Integrating over the five-metre path gives
The antiderivative checks because its derivative is \(10+x-x^2/5\), the parallel component in newtons. The work is positive: throughout the interval the push has a forward component. The downward tilt reduces that component, but never reverses it.
Worked Example: A Force That Turns from Forward to Backward
A constant-magnitude force of \(6\,\mathrm{N}\) acts on an object moving from \(x=0\,\mathrm{m}\) to \(x=2\,\mathrm{m}\). Its angle changes so that \(\cos\theta(x)=1-x\), where the numerical value of \(x\) is measured in metres. Find the net work and interpret its sign.
The parallel component is \(6(1-x)\,\mathrm{N}\). It is forward for \(0\le x<1\,\mathrm{m}\), zero at \(x=1\,\mathrm{m}\), and backward for \(1\,\mathrm{m}<x\le2\,\mathrm{m}\). Therefore,
To see how the zero arises, calculate each part separately:
The positive and negative contributions cancel. The antiderivative \(6(x-x^2/2)\,\mathrm{J}\) differentiates to \(6(1-x)\,\mathrm{J/m}\), the parallel force component, confirming the calculation.
Sign, Units, and a Common Error
The sign of the work comes from the parallel component. When \(\theta(x)<\pi/2\), \(\cos\theta(x)>0\), so the force contributes positive work. At \(\theta(x)=\pi/2\), its parallel component is zero. When \(\theta(x)>\pi/2\), the component points opposite the motion and contributes negative work. If the angle crosses \(\pi/2\), different parts of the path can contribute work with different signs, as in the third example.
A frequent error is to integrate the force magnitude alone, as though all of the force were parallel to the motion. In the rope example, that incorrect calculation would be
This assumes a horizontal force of \(10\,\mathrm{N}\) throughout the path. But the rope is angled for most of the motion, so its horizontal component is smaller than \(10\,\mathrm{N}\). The correct calculation integrates that component and gives \(20\,\mathrm{J}\). Always check that the integrand represents force along the displacement and that multiplying by distance produces joules.
When This Method Is Useful
Many real forces do not act exactly along a path. A person may pull a load by a rope whose angle changes as the load moves. A person pushing an object may alter the direction of the push during the motion. In such situations, the magnitude alone does not determine the work: the angle matters at every position.
The same reasoning applies to any force acting during straight-line motion, provided its parallel component can be described as a function of position and integrated over the interval. If more than one force is being considered, this calculation gives the work done by the specified force; other forces require their own parallel components and work calculations.
Check Your Understanding
Use the parallel component of the force in each question. Keep track of the sign and units.
- A \(20\,\mathrm{N}\) force acts at a constant angle of \(60^\circ\) to a straight displacement of \(3\,\mathrm{m}\). What work does it do?
- Why does a force component perpendicular to the displacement contribute no work?
- A force of magnitude \(8\,\mathrm{N}\) acts with \(\cos\theta(x)=1-x/4\) as an object moves from \(x=0\) to \(x=2\,\mathrm{m}\), with \(x\) measured in metres. Set up and evaluate the work integral.
- What is the sign of the parallel force component when the force makes an angle greater than \(\pi/2\) with the direction of motion?
- Explain why integrating \(F(x)\) without multiplying by \(\cos\theta(x)\) gives the wrong work when the force is angled.