Work by a Variable Force and the Dot Product
AP Physics C: Mechanics · Unit 3 — Work, Energy, and Power
The general definition of work
In Physics C the formula $W=Fd\cos\theta$ is only a special case. The definition that always holds is an integral of a dot product along the path:
$$W=\int_{i}^{f}\vec{F}\cdot d\vec{r}$$For one-dimensional motion along $x$ this collapses to
$$W=\int_{x_i}^{x_f}F(x)\,dx$$which is the signed area under the graph of $F$ versus $x$ — area below the axis counts as negative work.
The dot product
$$\vec{F}\cdot d\vec{r}=F_x\,dx+F_y\,dy+F_z\,dz=|\vec{F}|\,|d\vec{r}|\cos\theta$$Work is a scalar. A force component perpendicular to the displacement contributes nothing, which is why the normal force and any centripetal force never do work.
Work-energy theorem, derived
Start from Newton's second law and change the variable of integration:
$$W_{\text{net}}=\int F\,dx=\int m\frac{dv}{dt}\,dx=\int m\,v\,dv=\tfrac12mv_f^2-\tfrac12mv_i^2=\Delta K$$The step $\dfrac{dv}{dt}dx=\dfrac{dv}{dt}\dfrac{dx}{dt}dt=v\,dv$ is the whole trick, and readers are expected to reproduce it.
Worked example: force increasing with position
A force along the $x$ axis has magnitude $F(x)=(4x+2)$ N, with $x$ in meters. Compute the work this force does as the object moves from $x=0$ to $x=3$ m, and compare it with the incorrect result obtained by taking the force at the end point times the distance.
Solution
The force varies with position, so we must integrate:
$$W=\int_{0}^{3}(4x+2)\,dx=\Big[2x^2+2x\Big]_{0}^{3}=(18+6)-0=24\ \text{J}$$If someone takes the force at the end point, $F(3)=14$ N, and multiplies by the distance of $3$ m, they get $42$ J — nearly double the truth, because that multiplication measures the area of a rectangle $14$ N tall rather than the true trapezoid.
Check another way: the graph of $F$ versus $x$ is a straight line, so the trapezoid’s area is $\dfrac{F(0)+F(3)}{2}\times3=\dfrac{2+14}{2}\times3=24$ J. It matches. Note that this method works only because $F$ is linear; for $F(x)=3x^2$ it would be wrong.