# 7.1: Work

- Page ID
- 19406

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\id}{\mathrm{id}}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\kernel}{\mathrm{null}\,}\)

\( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\)

\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\)

\( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)

\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)

\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vectorC}[1]{\textbf{#1}} \)

\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)## Review Exercises

- Section A1.3 on the scalar product.
- Section A2.3 on integrals.

We introduce the concept of work as the starting point for building models using energy instead of forces. Work is a scalar quantity that is meant to represent how a force exerted on an object over a given distance results in a change in speed of that object. We will first introduce the concept of work done by a force on an object, and then look at how work can change the kinematics of the object. This is analogous to how we first defined the concept of force, and then looked at how force affects motion (by using Newton's Second Law, which connected the concept of force to the acceleration of the object).

The work done by a force, \(\vec F\), on an object over a displacement, \(\vec d\), is defined to be:

\[W = \vec F \cdot \vec d = Fd\cos\theta = F_xd_x+F_yd_y+F_zd_z\]

where \(\theta\) is the angle between the vectors when they are placed tail to tail, as in* Figure 7.1.1*. The dimension of work, force times displacement, is also called "energy''. The S.I. unit for energy is the Joule (abbreviated \(\text{J}\)) which is equivalent to \(\text{Nm}\) or \(\text{kg m}^{2}/\text{s}^{2}\) in base units.

The work "done'' by the force is the scalar product of the force vector and the displacement vector of the object. We say that the force "does work'' if it is exerted while the object moves (has a displacement vector) and in such a way that the scalar product of the force and displacement vectors is non-zero. A force that is perpendicular to the displacement vector of an object does no work (since the scalar product of two perpendicular vectors is zero). A force exerted in the same direction as the displacement will do positive work (\(\cos\theta \) positive), and a force in the opposite direction of the displacement will do negative work (\(\cos\theta \) negative). As we will see, positive work corresponds to increasing the speed of the object, whereas negative work corresponds to decreasing its speed. No work corresponds to no change in speed (but could corresponds to a change in velocity).

A pendulum of length \(R\) consists of a mass connected to a string (Figure \(\PageIndex{2}\)). The string exerts a force of tension \(\vec F_T\) on the mass. What is the work done by tension when the pendulum swings through an angle \(\theta \)?

- \(W=F_{T}R\theta\)
- \(W=F_{T}R(1-\cos\theta)\)
- Tension does no work on the mass.

**Answer**- 3.

You may be tempted to ask, "Why work? Why not something else? Why that scalar product in particular? How could we possibly have thought of that?''. In general, it seems arbitrary that we introduce the quantity "work'' and then find that it leads to a convenient way of building models. However, we did not just pull this quantity out of thin air! Many theorists, over many years, tried all sorts of quantities and ways to rephrase Newton's Theory that were not helpful. The quantities that make it into textbooks are the ones that turned out to be useful. You should also keep in mind that, just like force, work is a "made-up'' mathematical tool that is helpful in describing the world around us. There is no such thing as work or energy; they are just useful mathematical tools.

## Work in one dimension.

Work involves vectors, so we can first examine the concept in one dimension, before extending this to two and three dimensions. We can choose \(x\) as the coordinate in one dimension, so that all vectors only have an \(x\) component. We can write a force vector as \(\vec F=F\hat x\), where \(F\) is the \(x\) component of the force (which could be positive or negative). A displacement vector can be written as \(\vec d = d \hat x\), where again, \(d\) is the \(x\) component of the displacement, and can be positive or negative. In one dimension, work is thus:

\( W = \vec F \cdot \vec d = (F\hat x) \cdot ( d\hat x ) = Fd (\hat x\cdot\hat x)=Fd\)

where \(\hat x \cdot \hat x = 1\). Consider, for example, the work done by a force, \(\vec F\), on a box, as the box moves along the \(x\) axis from position \(x=x_0\) to position \(x=x_1\), as shown in Figure \(\PageIndex{3}\).

We can write the length of the displacement vector as \(||\vec d|| =d= \Delta x = x_1-x_0\). The work done by the force is given by:

\(W = \vec F \cdot \vec d = F\hat x\cdot \Delta x\hat x =F\Delta x =F(x_1-x_0)\)

which is a positive quantity, since \(x_1 > x_0\), with our choice of coordinate system.

A constant force in the positive \(x\) direction, \(\vec F\), acts on a box, as in* Figure \(\PageIndex{3}\)*. Consider the work done by \(\vec F\) as the box moves from \(x_1\) to \(x_0\). How does it compare to the work done by \(\vec F\) when moving from \(x_0\) to \(x_1\) (that we calculated above)?

- \(\vec F\) does no work on the box when it moves from \(x_0\) to \(x_1\).
- The work has the same magnitude as before, but the work is now negative.
- The work done by \(\vec F\) is the same in both cases.

**Answer**- B.

## Work in one dimension - varying force

Suppose that instead of a constant force, \(\vec F\), we have a force that changes with position, \(\vec F(x)\), and can take on three different values between \(x=x_0\) and \(x=x_3\):

\begin{align*} \vec F (x)= \begin{cases} F_1\hat x & x<\Delta x \\[4pt] F_2\hat x & \Delta x \leq x< 2\Delta x \\[4pt] F_3\hat x & 2\Delta x \leq x \end{cases} \end{align*}

as illustrated in Figure \(\PageIndex{3}\), which shows the force on an object as it moves from position \(x=x_0\) to position \(x=x_3$\), along three (equal) displacement vectors, \(\vec d_1=\vec d_2=\vec d_3=\Delta x \hat x\)

The total work done by the force over the three separate displacements is the sum of the work done over each displacement:

\begin{align*} W^{tot}&=W_1+W_2+W_3\\[4pt] &=\vec F_1\cdot \vec d_2+\vec F_2\cdot \vec d_2+\vec F_3\cdot \vec d_3\\[4pt] &= F_1\Delta x +F_2\Delta x + F_3\Delta x \end{align*}

If instead of \(3\) segments we had \(N\) segments and the \(x\) component of the force had the \(N\) corresponding values \(F_i\) in the \(N\) segments, the total work done by the force would be:

\begin{align*} W^{tot} = \sum_{i=0}^N\vec F_i \cdot \Delta \vec x \end{align*}

where we introduced a vector \(\Delta \vec x\) to be the vector of length \(\Delta x\) pointing in the positive \(x\) direction. In the limit where \(\vec F(x)\) changes continuously as a function of position, we take the limit of an infinite number of infinitely small segments of length \(dx\), and the sum becomes an integral:

\begin{align} W^{tot} = \int_{x_0}^{x_f}\vec F(x) \cdot d\vec x \end{align}

where the work was calculated in going from \(x=x_0\) to \(x=x_f\), and \(d\vec x=dx\hat x\) is an infinitely small displacement vector (of length \(dx\)) in the positive \(x\) direction.

A block is pressed against the free end of a horizontal spring with spring constant, \(k\), so as to compress the spring by a distance \(D\) relative to its rest length, as shown in* Figure \(\PageIndex{5}\)*. The other end of the spring is fixed to a wall. What is the work done by the spring force on the block in going from \(x=-D\) to \(x=0\)? What is the work done by the block on the spring over the same displacement?

###### Solution

The force exerted by the spring on the block changes continuously with position, according to Hooke's law: \begin{align*} \vec F(x) = -kx \hat x \end{align*}

and points in the positive \(x\) direction when the end of the spring has a negative $x$ position (with our coordinate choice illustrated in Figure \(\PageIndex{5}\), where the origin is located at the rest length of the spring). To calculate the work done by the force, we sum the work done by the force over many infinitesimally small displacements \(d\vec x\) (using an integral):

\begin{align*} W &= \int_{-D}^0 \vec F(x) \cdot d\vec x\\[4pt] &=\int_{-D}^0 (-kx \hat x) \cdot (dx \hat x)\\[4pt] &=\int_{-D}^0 -kxdx (\hat x \cdot \hat x)\\[4pt] &=-\int_{-D}^0 kx dx\\[4pt] &=-\left[\frac{1}{2}kx^2 \right]_{-D}^0\\[4pt] &=\frac{1}{2}kD^2 \end{align*}

In order to determine the work that was done by the block on the spring, we need to determine the force, \(\vec F'(x)\), exerted by the block on the spring. By Newton's Third Law, this is equal in magnitude but opposite in direction to the force exerted by the spring on the block:

\begin{align*} \vec F'(x) = -\vec F(x) = kx \hat x \end{align*}

The work done by the block on the spring over the same displacement is:

\begin{align*} W' &= \int_{-D}^0 \vec F'(x) \cdot d\vec x\\[4pt] &=\int_{-D}^0 (kx \hat x) \cdot (dx \hat x)\\[4pt] &=\int_{-D}^0 kx dx=-\frac{1}{2}kD^2\\[4pt] \end{align*}

which is negative. This makes sense because the force exerted by the block on the spring is in the direction opposite to the direction of displacement, so the work should be negative.

## Work in multiple dimensions

First, consider the work done by a force \(\vec F\) in pulling a crate over a displacement \(\vec d\), in the case where the force is directed at an angle \(\theta\) above the horizontal, as shown in Figure \(\PageIndex{6}\), and the displacement is along the \(x\) axis (or rather, we chose the \(x\) axis to be parallel to the displacement).

The work done by the force is given by:

\begin{align*} W = \vec F \cdot \vec d &= Fd\cos\theta\\[4pt] &= F_{\parallel}d\\[4pt] &= Fd_{\parallel}\\[4pt] \end{align*}

where we highlighted the fact that the scalar product "picks out'' components of vectors that are parallel to each other. \(F_{\parallel} = F\cos\theta\) is the component of \(\vec F\) that is parallel to \(\vec d\), and \(d_{\parallel}=d\cos\theta\) is the component of \(\vec d\) that is parallel to \(\vec F\). These are also shown in Figure \(\PageIndex{6}\).

Brent and Dean pull two crates by using ropes that make the same angle above the horizontal and with the same force. The magnitude of the crates' displacement is the same, but Dean's crate moves horizontally on the ground while Brent's crate moves up a frictionless ramp that is parallel to the rope used to pull the crate. Who did more work on the crate?

- Dean because there is friction between his crate and the ground.
- Brent.
- They did the same amount of work.

**Answer**- B.

In general, if an object is moving along an arbitrary path, we cannot choose the $x$ axis to be parallel to the displacement or to the force. If the path can be sub-divided into straight segments over which the force is constant, as in Figure \(\PageIndex{7}\), we can calculate the work done by the force over each segment and add the work done in each segment together to obtain the total work done by the force. Note that, in general, the work done by a force as an object moves from one position to another depends on the particular path that was taken between the two positions, since different paths will have difference lengths.

Compare the work done by the force of kinetic friction in sliding a crate along a horizontal surface from position \(A\) (coordinates \(x_A, y_A\)) to position \(B\) (coordinates \(x_B, y_B\)) using the two different paths depicted in Figure \(\PageIndex{8}\). Assume that the mass of the crate is \(m\) and that the coefficient of kinetic friction between the crate and the ground is \(\mu_k\).

###### Solution

The force of kinetic friction is always in the direction opposite to that of motion. Thus, regardless of the path taken, the force of friction will do negative work.

Let us first calculate the work done by the force of kinetic friction along the first path (the straight line). The force of kinetic friction will have a magnitude: \begin{align*} f_k = \mu_k N = \mu_k mg \end{align*}

The normal force will have the same magnitude as the weight because the crate is not moving (accelerating) in the direction perpendicular to the \(xy\) plane. The displacement vector from \(A\) to \(B\) can be written as: \begin{align*} \vec d &= (x_B-x_A)\hat x + (y_B-y_A) \hat y\\[4pt] \therefore ||\vec d|| &=d= \sqrt{(x_B-x_A)^2 - (y_B-y_A)^2} \end{align*}

The force of kinetic friction will be in the opposite direction of the displacement vector, so the angle between the two vectors is \(180^{\circ}(\cos\theta=-1)\). The work done by the force of kinetic friction is thus: \begin{align*} W = \vec f_k \cdot\vec d = f_k d \cos\theta = -\mu_k mg\sqrt{(x_B-x_A)^2 - (y_B-y_A)^2} \end{align*} and is negative, as expected.

For path 2, we break up the motion into two segments, with displacements vectors \(\vec d_1\) (along \(y\)) and \(\vec d_2\) (along \(x\)). We can write the two displacement vectors as:

\begin{align*} \vec d_1 &= 0\hat x + (y_B-y_A) \hat y\\[4pt] \therefore ||\vec d_1||&=d_1=(y_B-y_A)\\[4pt] \vec d_2 &= (x_B-x_A)\hat x + 0 \hat y\\[4pt] \therefore ||\vec d_2||&=d_2=(x_B-x_A)\\[4pt] \end{align*}

Along each segment, the force of kinetic friction is anti-parallel to the displacement (note that the force of friction changes direction over the two segments), but the magnitude is \(f_k=\mu_kmg\). The work done along the first segment is thus: \begin{align*} W_1 = \vec f_k \cdot \vec d_1 = f_k d_1 \cos\theta = -\mu_k mg(y_B-y_A) \end{align*} The work done along the second segment is: \begin{align*} W_2 = \vec f_k \cdot \vec d_2 = f_k d_2 \cos\theta = -\mu_k mg(x_B-x_A) \end{align*} And the total work done by the force of kinetic friction over the second path is: \begin{align*} W^{tot} = W_1 + W_2 = -\mu_k mg \left((x_B-x_A) + (y_B-y_A)\right) \end{align*} which is more work than was done along path 1. This makes sense because for both paths, the force of friction has the same magnitude and is always in the opposite direction of motion; thus, the longer the path, the more work will be done by the force.

A box of mass \(m\) is moved from the floor onto a table using two different paths, as shown in Figure \(\PageIndex{9}\). The table is a horizontal distance \(L\) away from where the box starts and a height \(H\) above the floor. Compare the work done by the weight of the box along the two possible paths.

###### Solution

We can use a coordinate system such that the origin coincides with the initial position of the box. \(x\) is horizontal and \(y\) is vertical, as shown in Figure \(\PageIndex{9}\). The weight of the box can be written as:

\begin{align*} \vec F_g = -mg \hat y \end{align*}

and points in the negative \(y\) direction with a magnitude of \(mg\). To calculate the work done by the weight along the first path, we first determine the corresponding displacement vector, \(\vec d\):

\begin{align*} \vec d = L\hat x + H\hat y \end{align*}

and we can then determine the work:

\begin{align*} W &= \vec F_g \cdot \vec d = (-mg \hat y) \cdot (L\hat x + H\hat y)\\[4pt] &=F_xd_x+F_yd_y= (0)(L) + (-mg)(H)\\[4pt] &= -mgH \end{align*}

Along path 1, the work done by the weight is negative, and does not depend on the horizontal distance \(L\). Let us now calculate the work done along the second path, which we break up into two segments with displacement vectors \(\vec d_1\) (vertical) and \(\vec d_2\) (horizontal). The displacement vectors are:

\begin{align*} \vec d_1 &= H\hat y\\[4pt] \vec d_2 &= L\hat x \end{align*}

The work done along the vertical segment is:

\begin{align*} W_1 &= \vec F_g \cdot \vec d_1 = (-mg \hat y) \cdot (H\hat y)\\[4pt] &=-mgH \end{align*}

The work done along the horizontal segment is:

\begin{align*} W_2 &= \vec F_g \cdot \vec d_2 = (-mg \hat y) \cdot (L\hat x)\\[4pt] &=0 \end{align*}

which is zero, because the force of gravity is always vertical and thus perpendicular to the displacement vector of the horizontal segment. The total work done by the weight along the second path is:

\begin{align*} W^{tot} = W_1 + W_2 = -mgH \end{align*}

which is the same as the work done along path 1. As we will see, when a force is constant in magnitude and direction, the work that it does on an object in going from one position to another is independent of the path taken. This was not the case in *Example 7.1.2*, because the direction of the force of kinetic friction depends on the direction of the displacement.

Clare and Amelia go down two different slides, as shown in Figure \(\PageIndex{10}\). Clare and Amelia have the same mass and the slides have the same non-zero coefficients of friction.

For each of the following forces, decide whether the force: does more work on Clare, does more work on Amelia, or does the same amount of work on both.

- The force of gravity...
- The force of friction...
- The normal force from the slide...

**Answer**-
Gravity does the same amount of work on both, friction does more work on Amelia, and the normal force does the same amount of work on both (the normal force does zero work, since it is always perpendicular to the displacement).

The most general case for which we can calculate the work done by a force is the case when the force changes continuously along a path where the displacement also changes direction continuously. This is illustrated in Figure \(\PageIndex{11}\) which shows an arbitrary path between two points \(A\) and \(B\), and a force, \(\vec F(\vec r)\), that depends on position (\(\vec r\)). In general, the work done by the force on an object that goes from \(A\) to \(B\) will depend on the actual path that was taken.

The strategy for calculating the work in the general case is the same: we break up the path into small straight segments with displacement vectors \(d\vec l\) (Figure \(\PageIndex{12}\)) where we assume that the force is constant over the segment. The total work is the sum of the work over each segment:

\begin{align} W = \int_A^B \vec F(\vec r) \cdot d\vec l \end{align}

As usual, we use the integral symbol to indicate that you need to take an infinite number of infinitely small segments \(d\vec l\) in order to calculate the sum.

You should note that this is not an integral like any other that we have seen so far: the integral is not over a single integration variable (usually we use \(x\)), but it is the integral (the sum!) over the specific path that we have chosen in going from \(A\) to \(B\). This is called a "path integral'', and is generally difficult to evaluate.

A force, \(\vec F(\vec r) = \vec F(x,y) = F_x\hat x + F_y \hat y\), is exerted on an object. The object starts at position \(A\) and ends at position \(B\), along a parabolic path, \(y(x) = a+bx^2\), as depicted in Figure \(\PageIndex{13}\). What is the work done by the force, \(\vec F\), along this trajectory?

###### Solution

In this case, the force can change with position (if \(F_x\) and \(F_y\) are not constant), and the direction of the path changes continuously. When we break up the path into small segments \(d\vec l\), we need to incorporate the equation of the parabola to include the fact that \(d\vec l\)$ must always be tangent to the parabola. Consider one small segment along the trajectory and the infinitesimal displacement vector \(d\vec l\) at that point, as in Figure \(\PageIndex{14}\).

We can write the \(x\) and \(y\) components of the vector as infinitesimal distances, \(dx\) and \(dy\), along the \(x\) and \(y\) axes, respectively. The vector \(d\vec l\) can thus be written:

\begin{align*} d\vec l = dx \hat x + dy \hat y \end{align*}

The total work done by the force is then:

\begin{align*} W &= \int_A^B \vec F(\vec r) \cdot d\vec l\\[4pt] &=\int_A^B (F_x\hat x + F_y \hat y) \cdot (dx \hat x + dy \hat y)\\[4pt] &=\int_A^B (F_x dx + F_ydy)\\[4pt] \therefore W&= \int_A^B F_x dx + \int_A^B F_ydy \end{align*}

where in the last line, we simply used the property that the integral of a sum is the sum of the corresponding integrals. At this point, we have two integrals over integration variables (\(x\) and \(y\)) that are meaningful. However, we have not yet used the fact that our path is a parabola, and in general, we expect that the shape of the path is important. By saying that we are integrating (or calculating the work) over a specific path, we are really saying that \(x\) and \(y\) are not independent; that is, if we know the value of \(x\) at some point on the path, we know the corresponding value of \(y\) (\(y = a+bx^2\)).

Since \(x\) and \(y\) are not independent, we can use a "substitution of variables'' in order to express \(y\) in terms of \(x\), and \(dy\) in terms of \(dx\)$:

\begin{align*} y(x) &= a + bx^2\\[4pt] \frac{dy}{dx} &= 2bx\\[4pt] \therefore dy &= 2bxdx \end{align*}

This allows us to convert the integral over \(y\) to an integral over \(x\), which also allows us to be explicit for the limits of the integral (in our example, the integral goes from \(x=0\) to \(x=x_1\)):

\begin{align*} W&= \int_A^B F_x dx + \int_A^B F_ydy\\[4pt] &=\int_0^{x_1} F_x dx + \int_0^{x_1} F_y(2bxdx)\\[4pt] &=\int_0^{x_1} (F_x + 2bxF_y)dx \end{align*}

where we would need to know how \(F_x\) and \(F_y\) depends on \(x\) and \(y\) in order to actually evaluate the integral.

For example, if the force were constant (\(F_x\) and \(F_y\) constant), then the work done along the parabolic path would be:

\begin{align*} W &= \int_0^{x_1} (F_x + 2bxF_y)dx\\[4pt] &=\left[F_x x + bF_yx^2 \right]_0^{x_1}\\[4pt] &=F_x x_0 + bF_yx_0^2 \end{align*}

As we mentioned earlier, **if the force is constant in magnitude and direction**, then the work done is independent of path. We can easily check this, using the displacement vector \(\vec d = x_1\hat x + bx_1^2 \hat y\):

\begin{align*} W &= \vec F \cdot \vec d = (F_x\hat x+ F_y\hat y) \cdot (x_1\hat x + bx_1^2 \hat y)\\[4pt] &=F_x x_1 + bF_yx_1^2 \end{align*}

as we found above.

## Net work done

So far, we have considered the work done on an object by a single force. If more than one force is exerted on an object, then each force can do work on the object, and we can calculate the "net work'' done on the object by adding together the work done by each force. We will show that this is equivalent to first calculating the net force on the object, \(F^{net}\) (i.e. the vector sum of the forces on the object), and then calculating the work done by the net force.

Suppose that three forces, \(\vec F_1\), \(\vec F_2\), and \(\vec F_3\) are exerted on an object as it moves such that its displacement vector is \(\vec d\). The net work done on the object is easily shown to be equivalent to the work done by the net force::

\begin{align*} W^{net} &= W_1 + W_2 + W_3 \\[4pt] &= \vec F_1 \cdot \vec d + \vec F_2 \cdot \vec d + \vec F_3 \cdot \vec d \\[4pt] &=(F_{1x}d_x+F_{1y}d_y+F_{1z}d_z)+ (F_{2x}d_x+F_{2y}d_y+F_{2z}d_z) + (F_{3x}d_x+F_{3y}d_y+F_{3z}d_z)\\[4pt] &=(F_{1x} + F_{2x} + F_{3x})d_x+(F_{1y} + F_{2y} + F_{3y})d_y+(F_{1z} + F_{2z} + F_{3z})d_z\\[4pt] &=\vec F^{net} \cdot \vec d \end{align*}

where \(\vec F^{net} = \vec F_1 + \vec F_2 + \vec F_3\) is the net force. The result is easily generalized to any number of forces, including if those forces change as a function of position:

\begin{align*} W^{net} = \int_A^B F^{net}(\vec r) \cdot d\vec l \end{align*}

You push with an unknown horizontal force, \(\vec F\), against a crate of mass \(m\) that is located on an inclined plane that makes an angle $\theta$ with respect to the horizontal, as shown in Figure \(\PageIndex{15}\). The coefficient of kinetic friction between the crate and the incline is \(\mu_k\). You push in such a way that that crates moves at a constant speed up the incline. What is the net work done on the crate if it moves up the incline by a distance \(d\)?

###### Solution

Although the answer may be obvious, let's go the long way about it and calculate the work done by each force, and then sum them together to get the total work done. We start by identifying the forces exerted on the crate:

- \(\vec F\), the applied force, of unknown magnitude, \(\vec F\).
- \(\vec F_g\), the weight of the crate, with magnitude \(mg\).
- \(\vec N\), a normal force exerted by the incline.
- \(\vec f_k\), a force of kinetic friction, with magnitude \(\mu_k N\), that points in the direction opposite of \(\vec d\).

These are shown in the free-body diagram in Figure \(\PageIndex{16}\), along with our choice of coordinate system, and the displacement vector.

With our choice of coordinate system, the displacement vector is given by:

\begin{align*} \vec d = d (\cos\theta \hat x + \sin\theta \hat y) \end{align*}

Before calculating the work done by each force, we need to determine the magnitude of the normal force (and thus of the force of kinetic friction). Since the crate is moving at a constant velocity, its **acceleration is zero**, so the sum of the forces must be zero. Writing out the \(y\) component of Newton's Second Law allows us to find the magnitude of the normal force:

\begin{align*} \sum F_y &= N\cos\theta -F_g - f_k\sin\theta = 0\\[4pt] \therefore mg &= N\cos\theta-\mu_kN\sin\theta = N(\cos\theta-\mu_k\sin\theta)\\[4pt] \therefore N &= \frac{mg}{\cos\theta-\mu_k\sin\theta} \end{align*}

Writing out the \(x\) component of Newton's Second Law allows us to find the magnitude of the unknown force \(F\):

\begin{align*} \sum F_x &= F - N\sin\theta - f_k\cos\theta = 0\\[4pt] \therefore F &= N\sin\theta+\mu_kN\cos\theta = N(\sin\theta+\mu_k\cos\theta)\\[4pt] &=mg\frac{\sin\theta+\mu_k\cos\theta}{\cos\theta-\mu_k\sin\theta} \end{align*}

We now proceed to calculate the work done by each force. The work done by the normal force is identically zero, since it is perpendicular to the displacement vector. The work done by the applied force, \(\vec F = F\hat x\), is:

\begin{align*} W_F &= \vec F \cdot \vec d = (F\hat x)\cdot(d (\cos\theta \hat x + \sin\theta \hat y))\\[4pt] &=Fd\cos\theta=mg\frac{\sin\theta+\mu_k\cos\theta}{\cos\theta-\mu_k\sin\theta}d\cos\theta \end{align*}

The work done by the force of gravity, \(\vec F_g = -mg \hat y\), is:

\begin{align*} W_g &= \vec F_g \cdot \vec d = (-mg \hat y)\cdot(d (\cos\theta \hat x + \sin\theta \hat y))\\[4pt] &=-mgd\sin\theta \end{align*}

The work done by the force of friction, \(\vec f_k\), noting that \(\vec f_k\) and \(\vec d\) are antiparallel:

\begin{align*} W_f &= \vec f_k \cdot \vec d = -f_kd = -\mu_kNd\\[4pt] &=-\mu_k\frac{mg}{\cos\theta-\mu_k\sin\theta}d \end{align*}

The net work done on the crate is thus:

\begin{align*} W^{net}&=W_F + W_g + W_f\\[4pt] &=mg\frac{\sin\theta+\mu_k\cos\theta}{\cos\theta-\mu_k\sin\theta}d\cos\theta-mgd\sin\theta -\mu_k\frac{mg}{\cos\theta-\mu_k\sin\theta}d\\[4pt] &=mgd \left( \frac{\sin\theta+\mu_k\cos\theta}{\cos\theta-\mu_k\sin\theta}\cos\theta - \sin\theta - \mu_k\frac{1}{\cos\theta-\mu_k\sin\theta} \right)\\[4pt] &=mgd \left( \frac{(\sin\theta+\mu_k\cos\theta)\cos\theta - \sin\theta(\cos\theta-\mu_k\sin\theta) - \mu_k}{\cos\theta-\mu_k\sin\theta} \right)\\[4pt] &=mgd \left( \frac{\sin\theta\cos\theta+\mu_k\cos^2\theta - \sin\theta\cos\theta+\mu_k\sin^2\theta - \mu_k}{\cos\theta-\mu_k\sin\theta} \right)\\[4pt] &=mgd \left( \frac{\mu_k(\cos^2\theta+\sin^2\theta) - \mu_k}{\cos\theta-\mu_k\sin\theta} \right)\\[4pt] &=0 \end{align*}

where we used the fact that \(\cos^2\theta+\sin^2\theta=1\). Thus we find that the net work done on the crate is zero!

###### Discussion

Of course, this makes sense, because the net force on the crate is zero, since it is not accelerating, so the net work done is also zero. As a consequence, or rather, by construction, we have the condition that if the net work done on an object is zero, then that object does not accelerate. We thus have a scalar quantity (work) that can tell us something about whether an object is changing speed. In the next section, we introduce a new quantity, "kinetic energy'', to describe how an object's speed changes when the net work done is not zero. \end{example}

Pay close attention to the words "on'' and "by.'' There are a few things about this that can be tricky:

- In
*Example 7.1.5*, we were asked to find the**net work**done**on**the crate. Sometimes, the question won't specify that it wants you to find the net work, and will just say "What is the work done**on**the crate?'' When you are just asked for the work done "on'' an object, the question is implicitly asking for the*net*work done on the object. - Just because the net work done
**on**an object is zero doesn't mean that the work done**by**each of the forces is zero. This may seem obvious, but it's easy to get tripped up on a test or exam. If you are reading a question about work and it says that the object is moving at a constant speed, it's tempting to just jump ahead and say that the work must be equal to zero. However, you can only say this if it's asking you for the net work done on the object. For instance, in*Example 7.1.5*, we concluded that since the crate was moving at a constant speed, the net work was equal to zero. But if the question asked you to find the work done on the crate**by gravity,**that would mean something different. The work done**by gravity**in this case is not equal to zero (it's actually negative). - The work done "on'' an object is not the same as the net work done "by'' that object. For example, say you are in a tug-of-war and you pull the other team towards you, but you yourself do not move. The net work done
**on**you is zero, but the work done**by**you is not zero. So, when you are talking about work, you should always state explicitly whether the work is being done "on'' the object or "by'' the object.

**Note**: The wording won't always be like this - sometimes it will say "How much work do you do on the box?'' instead of "How much work is done** by** you on the box,'' so always be careful. Still, looking for key words like "by'' and "on'' is a good place to start.

A \(2\text{kg}\) box sits on a horizontal surface. A constant horizontal force of \(6\text{N}\) is applied to the box. The box moves with a constant acceleration of \(2\text{m/s}^{2}\). Which of the following has the greatest magnitude?

- The work done by the applied force.
- The work done by friction.
- The net work done on the box.

**Answer**- A.