Skip to article frontmatterSkip to article content

Chapter 7 - Work and energy

7.1Overview

In this chapter, we introduce a new way to build models derived from Newton’s theory of classical physics. We will introduce the concepts of work and energy, which will allow us to model situations using scalar quantities, such as energy, instead of vector quantities, such as forces. It is important to remember that even when we are using energy and work, these tools are derived from Newton’s Laws; that is, we may not be using Newton’s Second Law explicitly, but the models that we develop are still based on the same theory of classical physics.

7.2Work

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, F\vec F, on an object over a displacement, d\vec d, is defined to be:

W=Fd=Fdcosθ=Fxdx+Fydy+Fzdz\boxed{W = \vec F \cdot \vec d = Fd\cos\theta = F_xd_x+F_yd_y+F_zd_z}

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

When determining the scalar product $\vec F\cdot \vec d = Fd\cos\theta$, $\theta$ is the angle between the vectors when they are placed tail to tail.

Figure 1:When determining the scalar product Fd=Fdcosθ\vec F\cdot \vec d = Fd\cos\theta, θ is the angle between the vectors when they are placed tail to tail.

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θ\cos\theta positive), and a force in the opposite direction of the displacement will do negative work (cosθ\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).

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.

7.2.1Work 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 xx as the coordinate in one dimension, so that all vectors only have an xx component. We can write a force vector as F=Fx^\vec F=F\hat x, where FF is the xx component of the force (which could be positive or negative). A displacement vector can be written as d=dx^\vec d = d \hat x, where again, dd is the xx component of the displacement, and can be positive or negative. In one dimension, work is thus:

W=Fd=(Fx^)(dx^)=Fd(x^x^)=FdW = \vec F \cdot \vec d = (F\hat x) \cdot ( d\hat x ) = Fd (\hat x\cdot\hat x)=Fd

where x^x^=1\hat x \cdot \hat x = 1. Consider, for example, the work done by a force, F\vec F, on a box, as the box moves along the xx axis from position x=x0x=x_0 to position x=x1x=x_1, as shown in Figure 3.

A force, $\vec F$, exerted on an object as it moves from position $x=x_0$ to position $x=x_1$.

Figure 3:A force, F\vec F, exerted on an object as it moves from position x=x0x=x_0 to position x=x1x=x_1.

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

W=Fd=Fx^Δxx^=FΔx=F(x1x0)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 x1>x0x_1 > x_0, with our choice of coordinate system.

7.2.2Work in one dimension - varying force

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

F(x)={F1x^x<ΔxF2x^Δxx<2ΔxF3x^2Δxx \vec F (x)= \begin{cases} F_1\hat x & x<\Delta x \\ F_2\hat x & \Delta x \leq x< 2\Delta x \\ F_3\hat x & 2\Delta x \leq x \end{cases}

as illustrated in Figure 3, which shows the force on an object as it moves from position x=x0x=x_0 to position x=x3x=x_3, along three (equal) displacement vectors, d1=d2=d3=Δxx^\vec d_1=\vec d_2=\vec d_3=\Delta x \hat x.

A varying force, $\vec F(x)$, exerted on an object as it moves from position $x=x_0$ to position $x=x_3$.

Figure 4:A varying force, F(x)\vec F(x), exerted on an object as it moves from position x=x0x=x_0 to position x=x3x=x_3.

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

Wtot=W1+W2+W3=F1d1+F2d2+F3d3=F1Δx+F2Δx+F3Δx\begin{align*} W^{tot}&=W_1+W_2+W_3\\ &=\vec F_1\cdot \vec d_1+\vec F_2\cdot \vec d_2+\vec F_3\cdot \vec d_3\\ &= F_1\Delta x +F_2\Delta x + F_3\Delta x \end{align*}

If instead of 3 segments we had NN segments and the xx component of the force had the NN corresponding values FiF_i in the NN segments, the total work done by the force would be:

Wtot=i=0NFiΔxW^{tot} = \sum_{i=0}^N\vec F_i \cdot \Delta \vec x

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

Wtot=x0xfF(x)dx\boxed{W^{tot} = \int_{x_0}^{x_f}\vec F(x) \cdot d\vec x}

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

7.2.3Work in multiple dimensions

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

A force, $\vec F$, exerted on an object as it moves from position $x=x_0$ to position $x=x_1$.

Figure 6:A force, F\vec F, exerted on an object as it moves from position x=x0x=x_0 to position x=x1x=x_1.

The work done by the force is given by:

W=Fd=Fdcosθ=Fd=Fd\begin{align*} W = \vec F \cdot \vec d &= Fd\cos\theta\\ &= F_{\parallel}d\\ &= Fd_{\parallel}\\ \end{align*}

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

In general, if an object is moving along an arbitrary path, we cannot choose the xx 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 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.

An arbitrary two dimensional path of an object from $A$ to $B$ broken into three straight segments.

Figure 7:An arbitrary two dimensional path of an object from AA to BB broken into three straight segments.

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 11 which shows an arbitrary path between two points AA and BB, and a force, F(r)\vec F(\vec r), that depends on position (r\vec r). In general, the work done by the force on an object that goes from AA to BB will depend on the actual path that was taken.

An arbitrary path between two points $A$ and $B$ with a force that depends on position, $\vec F(\vec r)$.

Figure 11:An arbitrary path between two points AA and BB with a force that depends on position, F(r)\vec F(\vec r).

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 dld\vec l (Figure 12) where we assume that the force is constant over the segment. The total work is the sum of the work over each segment:

W=ABF(r)dl\boxed{W = \int_A^B \vec F(\vec r) \cdot d\vec l}

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

We divide the path into infinitesimally small segments with displacement vectors $d\vec l$.

Figure 12:We divide the path into infinitesimally small segments with displacement vectors dld\vec l.

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 xx), but it is the integral (the sum!) over the specific path that we have chosen in going from AA to BB. This is called a “path integral”, and is generally difficult to evaluate.

7.2.4Net 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, FnetF^{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, F1\vec F_1, F2\vec F_2, and F3\vec F_3 are exerted on an object as it moves such that its displacement vector is d\vec d. The net work done on the object is easily shown to be equivalent to the work done by the net force::

Wnet=W1+W2+W3=F1d+F2d+F3d=(F1xdx+F1ydy+F1zdz)+(F2xdx+F2ydy+F2zdz)+(F3xdx+F3ydy+F3zdz)=(F1x+F2x+F3x)dx+(F1y+F2y+F3y)dy+(F1z+F2z+F3z)dz=Fnetd\begin{align*} W^{net} &= W_1 + W_2 + W_3 \\ &= \vec F_1 \cdot \vec d + \vec F_2 \cdot \vec d + \vec F_3 \cdot \vec d \\ &=(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)\\ &=(F_{1x} + F_{2x} + F_{3x})d_x+(F_{1y} + F_{2y} + F_{3y})d_y+(F_{1z} + F_{2z} + F_{3z})d_z\\ &=\vec F^{net} \cdot \vec d \end{align*}

where Fnet=F1+F2+F3\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:

Wnet=ABFnet(r)dlW^{net} = \int_A^B F^{net}(\vec r) \cdot d\vec l

7.3Kinetic energy and the work energy theorem

At this point, you should be comfortable calculating the net work done on an object upon which several forces are exerted. As we saw in the previous section, the net work done on an object is connected to the object’s acceleration; if the net force on the object is zero, then the net work done and acceleration are also zero. In this section, we derive a new quantity, kinetic energy, which allows us to connect the work done on an object with its change in speed. This will allow us to describe motion using only scalar quantities. Like the definition of work, the following derivation appears to “come out of thin air”. Remember, though, that theorists have tried all sorts of mathematical tricks to reformulate Newton’s Theory, and this is the one that worked.

Consider the most general case of an object of mass mm acted upon by a net force, Fnet(r)\vec F^{net}(\vec r), which can vary in magnitude and direction. We wish to calculate the net work done on the object as it moves along an arbitrary path between two points, AA and BB, in space, as shown in Figure 17. The instantaneous acceleration of the object, a\vec a, is shown along with an “element of the path”, dld\vec l.

An object moving along an arbitrary path between points $A$ and $B$ that is acted upon by a net force $\vec F^{net}$.

Figure 17:An object moving along an arbitrary path between points AA and BB that is acted upon by a net force Fnet\vec F^{net}.

The net work done on the object can be written:

Wnet=ABFnet(r)dlW^{net} = \int_A^B F^{net}(\vec r) \cdot d\vec l

and is in general a difficult integral to evaluate for an arbitrary path. Our goal is to find a way to evaluate this integral by finding a function, KK, with the property that:

ABFnet(r)dl=KBKA\int_A^B F^{net}(\vec r) \cdot d\vec l =K_B - K_A

That is, we will only have to evaluate KK at the end points of the path in order to determine the value of the integral. In this way, the function KK is akin to an anti-derivative.

In order to determine the form for the function KK, we start by noting that, by using Newton’s Second Law, we can write the integral for work in terms of the acceleration of the object:

F=Fnet=maABFnet(r)dl=ABmadl=mABadl\begin{align*} \sum \vec F &= \vec F^{net} = m\vec a\\ \therefore \int_A^B F^{net}(\vec r) \cdot d\vec l &= \int_A^B m\vec a\cdot d\vec l =m\int_A^B \vec a\cdot d\vec l \end{align*}

where we assumed that the mass of the object does not change along the path and can thus be factored out of the integral. Consider the scalar product of the acceleration, a\vec a, and the path element, dl=dxx^+dyy^+dzz^d\vec l=dx\hat x +dy\hat y + dz\hat z, written in terms of the velocity vector:

a=dvdtadl=dvdtdl=(dvxdtx^+dvydty^+dvzdtz^)(dxx^+dyy^+dzz^)=dvxdtdx+dvydtdy+dvzdtdz\begin{align*} \vec a & = \frac{d\vec v}{dt}\\ \therefore \vec a\cdot d\vec l &= \frac{d\vec v}{dt}\cdot d\vec l\\ &=\left(\frac{dv_x}{dt}\hat x+ \frac{dv_y}{dt}\hat y + \frac{dv_z}{dt}\hat z\right) \cdot (dx\hat x +dy\hat y + dz\hat z)\\ &=\frac{dv_x}{dt}dx+\frac{dv_y}{dt}dy+\frac{dv_z}{dt}dz \end{align*}

Any of the terms in the sum can be re-arranged so that the time derivative acts on the element of path (dxdx, dydy, or dzdz) instead of the velocity, for example:

dvxdtdx=dxdtdvx\frac{dv_x}{dt}dx = \frac{dx}{dt}dv_x

where we recognize that dxdt=vx\frac{dx}{dt} = v_x. We can thus write the scalar product between the acceleration vector and the path element as:

adl=dvxdtdx+dvydtdy+dvzdtdz=dxdtdvx+dydtdvy+dzdtdvz=vxdvx+vydvy+vzdvz\begin{align*} \vec a\cdot d\vec l&= \frac{dv_x}{dt}dx+\frac{dv_y}{dt}dy+\frac{dv_z}{dt}dz\\ &=\frac{dx}{dt}dv_x + \frac{dy}{dt}dv_y+\frac{dz}{dt}dv_z\\ &=v_xdv_x + v_ydv_y + v_zdv_z \end{align*}

The integral for the net work done can be written as:

Wnet=ABFnet(r)dl=mAB(vxdvx+vydvy+vzdvz)=mABvxdvx+mABvydvy+mABvzdvz\begin{align*} W^{net} &= \int_A^B F^{net}(\vec r) \cdot d\vec l =m \int_A^B (v_xdv_x + v_ydv_y + v_zdv_z)\\ &=m\int_A^B v_xdv_x +m\int_A^B v_ydv_y + m\int_A^B v_zdv_z \end{align*}

which corresponds to the sum of three integrals over the three independent components of the velocity vector. The components of the velocity vector are functions that change over the path and have fixed values at either end of the path. Let the velocity vector of the object at point AA be vA=(vAx,vAy,vAz)\vec v_A=(v_{Ax}, v_{Ay}, v_{Az}) and the velocity vector at point BB be vB=(vBx,vBy,vBz)\vec v_B=(v_{Bx}, v_{By}, v_{Bz}). The integral over, say, the xx component of velocity is then:

mABvxdvx=mvAxvBxvxdvx=m[12vx2]vAxvBx=12m(vBx2vAx2)\begin{align*} m\int_A^B v_xdv_x &= m\int_{v_{Ax}}^{v_{Bx}} v_xdv_x= m\left[\frac{1}{2}v_x^2 \right]_{v_{Ax}}^{v_{Bx}}\\ &=\frac{1}{2}m(v_{Bx}^2-v_{Ax}^2) \end{align*}

We can thus write the net work integral as:

Wnet=mABvxdvx+mABvydvy+mABvzdvz=12m(vBx2vAx2)+12m(vBy2vAy2)+12m(vBz2vAz2)=12m(vBx2+vBy2+vBz2)12m(vAx2+vAy2+vAz2)=12mvB212mvA2\begin{align*} W^{net} &=m\int_A^B v_xdv_x +m\int_A^B v_ydv_y + m\int_A^B v_zdv_z\\ &=\frac{1}{2}m(v_{Bx}^2-v_{Ax}^2) + \frac{1}{2}m(v_{By}^2-v_{Ay}^2) +\frac{1}{2}m(v_{Bz}^2-v_{Az}^2)\\ &=\frac{1}{2}m(v_{Bx}^2+v_{By}^2+v_{Bz}^2)-\frac{1}{2}m(v_{Ax}^2+v_{Ay}^2+v_{Az}^2)\\ &=\frac{1}{2}mv_B^2 - \frac{1}{2}mv_A^2 \end{align*}

where we recognized that the magnitude (squared) of the velocity is given by vA2=vAx2+vAy2+vAz2v_A^2 = v_{Ax}^2+v_{Ay}^2+v_{Az}^2. We have thus arrived at our desired result; namely, we have found a function of speed, K(v)K(v), that when evaluated at the endpoints of the path allows us to calculate the net work done on the object over that path:

K(v)=12mv2\boxed{K(v) = \frac{1}{2}mv^2}

That is, if you know the speed at the start of the path, vAv_A, and the speed at the end of the path, vBv_B, then the net work done on the object along the path between AA and BB is given by:

Wnet=ΔK=K(vB)K(va)\boxed{W^{net} = \Delta K = K(v_B) - K(v_a)}

We call K(v)K(v) the “kinetic energy” of the object. We can say that the net work done on an object in going from AA to BB is equal to its change in kinetic energy (final kinetic energy minus initial kinetic energy). It is important to note that we defined kinetic energy in a way that it is equal to the net work done. You may have already seen kinetic energy from past introductions to physics as a quantity that is just given; here, we instead derived a function that has the desired property of being equal to the net work done and called it “kinetic energy”.

The relation between the net work done and the change in kinetic energy is called the “Work-Energy Theorem” (or Work-Energy Principle). It is the connection that we were looking for between the dynamics (the forces from which we calculate work) and the kinematics (the change in kinetic energy). Unlike Newton’s Second Law, which relates two vector quantities (the vector sum of the forces and the acceleration vector), the Work-Energy Theorem relates two scalar quantities to each other (work and kinetic energy). Although we introduced the kinetic energy as a way to calculate the integral for the net work, if you know the value of the net work done on an object, then the Work-Energy Theorem can be used to calculate the change in speed of the object.

Most importantly, the Work-Energy theorem introduces the concept of “energy”. As we will see in later chapters, there are other forms of energy in addition to work and kinetic energy. The Work-Energy Theorem is the starting point for the idea that you can convert one form of energy into another. The Work-Energy Theorem tells us how a force, by doing work, can provide kinetic energy to an object or remove kinetic energy from an object.

7.4Using PhET to Study the Work-Energy Theorem

In the PhET simulation below, click on the “Measure” tab. Leave all of the default settings as they are. Place the skater at the top of the ramp and release them. They should continue to skate up and down the ramp endlessly since there is no friction. Place the measurement sensor at the top of the ramp. Attempt to adjust the sensor until the kinetic energy reads zero as the skater passes the sensor.

Does the sensor’s measurement of potential energy agree with the amount of work you calculated above? If the kinetic energy is not zero, does the sum of potential and kinetic energy sum to the calculated energy above?

Figure 20:A PhET simulation to explore work-energy.

Move the measurement sensor to the bottom of the ramp. Try to place it so that the potential energy is zero. How does the kinetic energy compare to the calculation of gravitational work from above?

Next, increase and decrease the skater’s mass. Notice their motion does not change. This is seemingly a contradiction. Can you explain why this scenario has mass independent motion?

Now, set the friction to a small value. What do you observe happening? Place the measuring sensor somewhere on the ramp. You should notice the thermal energy has a value when it did not when there was no friction. Where is the skater’s energy going?

7.5Calculating Work Numerically

It’s possible, many students in Physics 1 have not had Calculus 2, and integrals are not familiar. Let’s take a graphical look at the work. In Figure 21, a constant 10 N10~ {\rm N} net force is moving an object at constant velocity over a distance of 0.1 m0.1~ {\rm m}. The action is split into ten segments. Considering the relationship

W=FdW = \vec{F}\cdot\vec{d}

we can see that when the force and displacement are aligned, the work is W=Fd=FdW=\lvert\vec{F}\rvert\lvert\vec{d}\rvert = Fd. This is the height times width, or area, of the graph. We could break the graph into segments and add the segments. As described in the previous section, the area of the segments can be written FiΔx\vec F_i \cdot \Delta \vec x and summed to obtain the full area of the graph of FF vs. xx.

Wtot=i=0NFiΔxiW^{tot} = \sum_{i=0}^N\vec F_i \cdot \Delta \vec x_i

Next, let’s look at the spring example from Section 7.3. Instead of compressing the spring we will consider stretching the spring in the +x^+\hat{x}-direction. The force applied to stretching the spring is F=kxx^\vec{F}=kx \hat{x}. If we plot FF vs. xx for stretching a spring with spring constant k=10 N/mk=10~\text{N/m} from x=0x=0 to x=0.1x=0.1 meters, we get the graph shown in . We can see that the force increases linearly with displacement. When we divide the displacement into intervals, we no longer can fit rectangular areas to fully describe the area of the force vs. displacement. That is okay, we can approximate the area with these rectangular areas.

Force vs. displacement for stretching a spring with $k=10 {\rm N/m}$ a distance of $0.1 {\rm m}$. The graph is split into 10 segments.

Figure 22:Force vs. displacement for stretching a spring with k=10N/mk=10 {\rm N/m} a distance of 0.1m0.1 {\rm m}. The graph is split into 10 segments.

Let’s compare to the work computed from integration in the previous section.

Wtot=12kx2=1210(0.1)2=0.05 JW^{tot} = \frac{1}{2}kx^2 = \frac{1}{2}10\cdot\left(0.1\right)^2 = 0.05~\text{J}

So, our approximation is close. You might notice that the area of this graph is a triangle, and we could calculate

W=Atriangle=12base height=12Fx=12kxx=12kx2\begin{align*} W &= A_{triangle}\\ &= \frac{1}{2}\text{base} \cdot~\text{height} \\ &= \frac{1}{2}Fx \\ &= \frac{1}{2}kx \cdot x \\ &= \frac{1}{2}kx^2 \end{align*}

We could improve our approximation by dividing the FF vs. xx graph into smaller intervals as shown in . The calculation using a table would be tedious. Let’s see how a computer can help us solve this problem.

Force vs. displacement for stretching a spring with $k=10 {\rm N/m}$ a distance of $0.1 {\rm m}$. The graph is split into 50 segments.

Figure 23:Force vs. displacement for stretching a spring with k=10N/mk=10 {\rm N/m} a distance of 0.1m0.1 {\rm m}. The graph is split into 50 segments.

In the trinket below we will compute the spring force as a function of stretch distance. First, we should define some variables such as the spring constant kk, the total stretch distance xx, the intervals of stretch Δx\Delta x, and the work WW. The total distance and the work are going to be summed in a loop. So, we initialize them to zero. We’ll begin by repeating the calculation above to make sure we get the expected results.

k = 10 #spring constant in N/m
x = 0 #total stretch distance
dx = 0.01 #stretch interval
W = 0

Next, we will create a loop that continues while the stretch is less than 0.1 meters. This should make the last left edge be x=0.09x=0.09 and the last Δx=0.10.09\Delta x = 0.1-0.09. Inside that loop we want to calculate the force at the left side of the rectangle (this is xx. Then, add the work this force does over the increment of displacement FΔxF\Delta x to the work that has been done in previous increments of displacement. We’ll print the results that are in the table above, and we can’t forget to increment xx for the next loop.

while x < 0.1:
    rate(2)
    F = k*x #force at left side of interval
    W = W + F*dx
    print(x, F, W)
    x = x + dx

Run this code to see that it works to produce the values in the table above. If you want to create more intervals, you only need to decrease the value of Δx\Delta x or dx in your code. Try changing this value to dx=0.005 (20 intervals). Then, try dx = 0.001. Does this make the summation closer to the exact value of W=12kx2=0.05 JW=\frac{1}{2}kx^2=0.05~\text{J}? How small does dx need to be to be within 1% of the exact value?

Figure 24:An empty trinket.

For fun, we can graph and simulate the scenario of stretching a spring. To create a graph add the following two lines after the Web VPython 3.2 line. This will create a graph and f1 is the data that is displayed on the graph.

spring_graph = graph(xtitle='x (m)', ytitle='W (J)')
f1 = gdots(color=color.red) 

On the line after the calculation of work in the loop, add the following line to put position on the x-axis and work on the y-axis. This will add a single point to the graph each time the loop iterates.

f1.plot(x, W) #add this data point to a graph 

Check that this works properly in your trinket. Once that works, you can add an object simulation. After the line with f1, create a spring with the following code.

spring = helix(pos=vec(-0.125, 0, 0), axis=vec(0.25, 0, 0), radius=0.1, coils = 3)

After the line where the work is calculated, add the following line to extend the spring from its equilibrium length to the equilibrium length plus xx.

spring.axis=vec(0.25+x, 0, 0)

7.6Power

We finish the chapter by introducing the concept of “power”, which is the rate at which work is done on an object, or more generally, the rate at which energy is being converted from one form to another. If an amount of work, ΔW\Delta W, was done in a period of time Δt\Delta t, then the work was done at a rate of:

P=ΔWΔt\boxed{P = \frac{\Delta W}{\Delta t}}

where PP is called the power. The SI unit for power is the “Watt”, abbreviated W\text{W}, which corresponds to J/s=kgm2/s3{\rm J/s}={\rm kg m^2/s^3} in base SI units. If the rate at which work is being done changes with time, then the instantaneous power is defined as:

P=dWdt\boxed{P = \frac{dW}{dt}}

You have probably already encountered power in your everyday life. For example, your 1000W1000 {\rm W} hair dryer consumes “electrical energy” at a rate of 1000J1000 {\rm J} per second and converts it into the kinetic energy of the fan as well as the thermal energy to heat up the air. Horsepower (hp\text{hp}) is an imperial unit of power that is often used for vehicles, the conversion being 1hp=746W1 {\rm hp} = 746 {\rm W}. A 100hp100 {\rm hp} car thus has an engine that consumes the chemical energy released by burning gasoline at a rate of 7.46e4J7.46e4 {\rm J} per second and converts it into work done on the car as well as into heat.

7.7Summary

The work, WW, done on an object by a force, F\vec F, while the object has moved through a displacement, d\vec d, is defined as the scalar product:

W=Fd=Fdcosθ=Fxdx+Fydy+Fzdz\begin{align*} W = \vec F \cdot \vec d &= Fd\cos\theta\\ &= F_xd_x+F_yd_y+F_zd_z \end{align*}

If the force changes with position and/or the object moves along an arbitrary path in space, the work done by that force over the path is given by:

W=ABF(r)dlW =\int_A^B \vec F(\vec r) \cdot d\vec l

If multiple forces are exerted on an object, then one can calculate the net force on the object (the vector sum of the forces), and the net work done on the object will be equal to the work done by the net force:

Wnet=ABFnet(r)dlW^{net} = \int_A^B \vec F^{net}(\vec r) \cdot d\vec l

If the net work done on an object is zero, that object does not accelerate.

We can define the kinetic energy, K(v)K(v) of an object of mass mm that has speed vv as:

K(v)=12mv2K(v) = \frac{1}{2} mv^2

The Work-Energy Theorem states that the net work done on an object in going from position AA to position BB is equal to the object’s change in kinetic energy:

Wnet=ΔK=12mvB212mvA2W^{net} = \Delta K = \frac{1}{2} mv_B^2 - \frac{1}{2} mv_A^2

where vAv_A and vBv_B are the speed of the object at positions AA and BB, respectively.

The rate at which work is being done is called power and is defined as:

P=dWdtP = \frac{dW}{dt}

If a constant force F\vec F is exerted on an object that has a constant velocity v\vec v, then the power that corresponds to the work being done by that force is:

P=ddtW=ddt(Fd)=Fddtd=Fv\begin{align*} P &= \frac{d}{dt} W = \frac{d}{dt}(\vec F \cdot \vec d)\\ &= \vec F \cdot \frac{d}{dt}\vec d = \vec F \cdot \vec v \end{align*}

7.8Thinking about the material

7.9Sample problems and solutions

7.9.1Problems

7.9.2Solutions