PHY1001 · Week 10 · Work and Energy : Work Done by a Constant Force, Work Done by a varying Force

Work: constant and variable force

Work by a constant force, work with the scalar product, the area under the F-x graph and the work of a spring force. The first step of every question in the energy section is here.

workconstant forcescalar (dot) productjoulevarying forceHooke's lawspring constantnet work

The energy section opens with this concept. Work is the energy a force transfers to an object while displacing it. If there is a force but the object does not move, there is no work. If the object moves but the force is perpendicular to the motion, there is again no work. The questions from this section on the exam are usually of four types: work by an angled force, work with the scalar product, the area under a graph and spring work.

First know these four rules:

  1. Only the component in the direction of the displacement does work. W=Fdcos⁡θW = Fd\cos\theta.
  2. Work is a scalar, it has a sign: positive, negative or zero. It has no direction.
  3. If the force varies, the work is the area under the F-x graph: W=∫F dxW = \int F\,dx.
  4. Spring work is 12kx2\tfrac12 kx^2, not kx⋅xkx \cdot x. Because the spring force increases as it stretches.

Work by a constant force

A constant force F⃗\vec F is applied to an object and the object is displaced by d⃗\vec d. If the angle between them is θ\theta:

W=Fdcos⁡θ[W]=N⋅m=J (joule)W = Fd\cos\theta \qquad [W] = \text{N}\cdot\text{m} = \text{J (joule)}

Fcos⁡θF\cos\theta is the component of the force in the direction of motion. The perpendicular component Fsin⁡θF\sin\theta tries to lift or press the object but does no work because there is no motion in that direction.

Anglecos⁡θ\cos\thetaSign of the workExample
0∘0^\circ1positive, largesthorizontal push, the object goes in the same direction
0∘<θ<90∘0^\circ < \theta < 90^\circpositivepositivepulling at an angle with a rope
90∘90^\circ0zeronormal force, centripetal force
90∘<θ<180∘90^\circ < \theta < 180^\circnegativenegativegravity on a ball thrown upward
180∘180^\circ−1-1negative, largestkinetic friction on a sliding object

Positive work gives energy to the object (tries to speed it up), negative work takes energy from the object (tries to slow it down).

PITFALL · work and “getting tired” are not the same thing. If you walk horizontally holding a 20 kg bag, the force your hand exerts on the bag (upward) is perpendicular to the displacement (horizontal). The work in physics is zero. If you push on a wall and cannot move it, the work is zero too.

Net work

If more than one force acts on the object, you calculate the work of each force separately and add them. The same result also comes from the work of the net force:

Wnet=∑Wi=Fnet dcos⁡θW_{net} = \sum W_i = F_{net}\, d\cos\theta

Worked example 1. A 15.0 kg crate is pulled 12.0 m by a 50.0 N rope that makes an angle of 30.0∘30.0^\circ above the horizontal. μk=0.200\mu_k = 0.200. Find the work of each force and the net work.

Work of the rope:  W_F = F d cos30 = 50.0 · 12.0 · 0.866 = 520 J
Normal force:      vertical balance  N + F sin30 - mg = 0
                   N = 15.0·9.80 - 50.0·0.500 = 147 - 25.0 = 122 N
Friction:          f = mu_k N = 0.200 · 122 = 24.4 N
                   W_f = -f d = -24.4 · 12.0 = -293 J
Gravity, N:        perpendicular to the motion → 0 J
Net work:          520 - 293 = 227 J

Pulling upward at an angle makes the object lighter, NN gets smaller, and friction is reduced. If you take N=mgN = mg, you find too much friction.

Work with the scalar product

If the force and the displacement are given in components, there is no need to find the angle. Work is the scalar product (dot product) of the two vectors:

W=F⃗⋅d⃗=Fxdx+Fydy+FzdzW = \vec F\cdot\vec d = F_xd_x + F_yd_y + F_zd_z

This is exactly the dot product of week 2. Unit vector rules: i^⋅i^=1\hat i\cdot\hat i = 1, i^⋅j^=0\hat i\cdot\hat j = 0.

Worked example 2. F⃗=(5i^+2j^) N\vec F = (5\hat i + 2\hat j)\ \text{N}, d⃗=(3i^−4j^) m\vec d = (3\hat i - 4\hat j)\ \text{m}. What are the work and the angle?

W=(5)(3)+(2)(−4)=15−8=7 JW = (5)(3) + (2)(-4) = 15 - 8 = 7\ \text{J}

cos⁡θ=W∣F⃗∣∣d⃗∣=729⋅5=0.260  ⇒  θ=74.9∘\cos\theta = \frac{W}{|\vec F||\vec d|} = \frac{7}{\sqrt{29}\cdot 5} = 0.260 \;\Rightarrow\; \theta = 74.9^\circ

PITFALL · negative components. Whoever drops the minus in the (2)(−4)(2)(-4) term finds W=23W = 23 J. When multiplying, write each component with its sign.

Work by a variable force

If the force varies with position, you cannot use W=FdW = Fd. Divide the path into very small Δx\Delta x pieces; in each piece the force is almost constant, and add the works. In the limit this becomes an integral:

W=∫xixfFx(x) dx=the area under the F-x graphW = \int_{x_i}^{x_f} F_x(x)\,dx = \text{the area under the F-x graph}

It comes in two forms on the exam:

  • A formula is given: take the integral. If F=2x+1F = 2x + 1, from x=1x = 1 to 33: W=[x2+x]13=12−2=10 JW = \left[x^2 + x\right]_1^3 = 12 - 2 = 10\ \text{J}.
  • A graph is given: divide the area into triangle, rectangle and trapezoid pieces. Area below the axis is negative work.

TIP · check the units. If F is in newtons and x in meters in the graph, the area is directly in joules. If x is in centimeters, divide the area by 100.

Spring force and Hooke’s law

If you stretch or compress an ideal spring by xx from its equilibrium position, the spring pulls you back. Hooke’s law:

Fs=−kxF_s = -kx

kk is the spring constant, with the unit N/m. A stiff spring has a large kk. The minus sign says that the force is always toward the equilibrium position: if you stretch it, it pulls back; if you compress it, it pushes.

Since the force increases linearly with xx, the F-x graph is a line and the area under it is a triangle:

Wext=∫0xkx′ dx′=12kx2W_{\text{ext}} = \int_0^x kx'\,dx' = \tfrac12 kx^2

This is the work done by you to stretch the spring. The work of the spring’s own force is the negative of this (the spring opposes your motion). For a general interval:

Wext=12k(xf2−xi2)Wspring=−12k(xf2−xi2)W_{\text{ext}} = \tfrac12 k\left(x_f^2 - x_i^2\right) \qquad W_{\text{spring}} = -\tfrac12 k\left(x_f^2 - x_i^2\right)

Worked example 3. A spring with k=300 N/mk = 300\ \text{N/m} is already stretched 4.00 cm. What work is needed to stretch it to 10.0 cm?

x_i = 0.0400 m, x_f = 0.100 m   (first convert to meters)
W = ½ k (x_f² - x_i²) = ½ · 300 · (0.0100 - 0.00160)
W = 150 · 0.00840 = 1.26 J
The work done by the spring: -1.26 J

PITFALL · 12k(Δx)2\tfrac12 k(\Delta x)^2 is wrong. If you write 12k(0.06)2\tfrac12 k(0.06)^2 when the spring is already stretched, you assume the spring is being stretched from the start. Square separately, then subtract: xf2−xi2x_f^2 - x_i^2, not (xf−xi)2(x_f - x_i)^2.

Measuring the spring constant

If a mass mm is hung on a spring and the spring stretches by xx and stays in equilibrium, the spring force balances the weight: kx=mgkx = mg, k=mg/xk = mg/x. This comes up often in lab questions. The extension is given in centimeters; do not forget to convert to meters.

Which method in which case

GivenMethod
Magnitude and angleW=Fdcos⁡θW = Fd\cos\theta
Components (i^,j^,k^\hat i, \hat j, \hat k)W=F⃗⋅d⃗W = \vec F\cdot\vec d
A formula F(x)F(x)W=∫F dxW = \int F\,dx
An F-x graphArea (below the axis is negative)
A spring, kk and extensionW=12k(xf2−xi2)W = \tfrac12 k(x_f^2 - x_i^2)
More than one forceAdd the work of each or use FnetF_{net}

Mixed exam examples

Worked example 4 (inclined plane). A 3.00 kg block is pulled 5.00 m up a 20.0∘20.0^\circ incline by a 40.0 N force directed up along the incline. μk=0.150\mu_k = 0.150. What are the work of each force and the net work?

First the free-body diagram: the pulling force FF (up, along the incline), the weight mgmg (vertically downward), the normal force NN (perpendicular to the surface), friction fkf_k (down, along the incline, because the block is sliding up).

Pull:       W_F = 40.0 · 5.00 = 200 J               (theta = 0)
Gravity:    W_g = -m g d sin20 = -3.00·9.80·5.00·0.342 = -50.3 J
            (rise h = d sin20 = 1.71 m, W_g = -m g h)
Normal:     N = m g cos20 = 27.6 N,  W_N = 0        (perpendicular)
Friction:   W_f = -0.150 · 27.6 · 5.00 = -20.7 J
Net work:   200 - 50.3 - 20.7 = 129 J

You can find the work of gravity in two ways. Either you multiply the component of the weight along the incline (mgsin⁡θmg\sin\theta) by the path, or you multiply the weight by the vertical rise. Both give the same result. This is the first hint of the idea you will see in week 12, “the work of gravity is independent of the path”.

Worked example 5 (a graph that goes below the axis). A force is a constant +6.00+6.00 N from x=0x = 0 to 2.002.00 m, then decreases linearly to −6.00-6.00 N at x=4.00x = 4.00 m and stays at −6.00-6.00 N until x=5.00x = 5.00 m. What is the total work between 0 and 5.00 m?

0-2 m   rectangle:  6.00 · 2.00          = +12.0 J
2-3 m   triangle (above): ½ · 1.00 · 6.00    =  +3.0 J   (F = 0 at x = 3)
3-4 m   triangle (below): ½ · 1.00 · (-6.00) =  -3.0 J
4-5 m   rectangle:  1.00 · (-6.00)       =  -6.0 J
Total:                                      +6.0 J

It is essential to find the point where the force crosses zero. Whoever adds all the areas as positive finds 24 J.

TIP · the place of this topic on the exam. Work questions are usually the first step of an energy question. Even in a question that ends with “What is the speed?”, you first need to write the work of each force correctly. The work-energy theorem of week 11 is built on top of this calculation.

Common mistakes

Wrong ideaThe truth
W=FdW = Fd alwaysIf there is an angle, Fdcos⁡θFd\cos\theta; a perpendicular force does no work
The angle is given from the horizontal, I used sin⁡\sinIf the displacement is horizontal, the horizontal component is Fcos⁡θF\cos\theta
Calculator in RAD modecos⁡37\cos 37 radians gives 0.765, degrees 0.799. Use DEG
The normal force also does workPerpendicular to the surface, zero work
Work of gravity when lifting is +mgh+mghThe force is downward, the motion upward: −mgh-mgh
N=mgN = mg in an angled pullN=mg−Fsin⁡θN = mg - F\sin\theta (pulling upward)
Spring work kx2kx^2 or kxkx12kx2\tfrac12 kx^2; kxkx is a force
Continuing from a stretched spring: 12k(Δx)2\tfrac12 k(\Delta x)^212k(xf2−xi2)\tfrac12 k(x_f^2 - x_i^2)
The extension in cm went into the formulaFirst convert to meters; after squaring the error is 10⁴ times
I dropped the minus in the scalar productFxdx+FydyF_xd_x + F_yd_y, each component with its sign

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

A 25.0 N force directed 37.0∘37.0^\circ above the horizontal drags a box 8.00 m8.00\ \text{m} across a level floor. How much work does this force do on the box?

  1. 200 J
  2. 120 J
  3. 160 J
  4. 153 J
  5. 0 J
Show answer
C) 160 J

W=Fdcos⁡θ=(25.0)(8.00)cos⁡37.0∘=159.7≈160 JW = Fd\cos\theta = (25.0)(8.00)\cos 37.0^\circ = 159.7 \approx 160\ \text{J}. A: cos forgotten (FdFd). B: sin instead of cos. D: the calculator is in RAD mode (cos⁡37\cos 37 radians). E: thinking the work is zero because the force is not horizontal.

Question 2easy

A student lifts a 3.00 kg book straight up by 1.50 m1.50\ \text{m} at constant speed. What is the work done on the book by gravity?

  1. -44.1 J
  2. +44.1 J
  3. 0 J
  4. -29.4 J
  5. -4.50 J
Show answer
A) -44.1 J

Gravity is downward and the displacement is upward: θ=180∘\theta = 180^\circ. Wg=−mgh=−(3.00)(9.80)(1.50)=−44.1 JW_g = -mgh = -(3.00)(9.80)(1.50) = -44.1\ \text{J}. B: the work done by the student (sign mix-up). C: the net work is zero, but the question asks for the work of gravity. D: hh forgotten (−mg-mg). E: gg forgotten.

Question 3easy

A constant force F⃗=(4i^−3j^) N\vec F = (4\hat i - 3\hat j)\ \text{N} acts on a particle while it undergoes a displacement d⃗=(2i^+5j^) m\vec d = (2\hat i + 5\hat j)\ \text{m}. What work does the force do?

  1. 23 J
  2. 26.9 J
  3. 8 J
  4. -7 J
  5. -15 J
Show answer
D) -7 J

W=F⃗⋅d⃗=Fxdx+Fydy=(4)(2)+(−3)(5)=8−15=−7 JW = \vec F\cdot\vec d = F_xd_x + F_yd_y = (4)(2) + (-3)(5) = 8 - 15 = -7\ \text{J}. A: dropped the minus of FyF_y. B: ∣F⃗∣∣d⃗∣|\vec F||\vec d|, ignoring the angle. C: only the x term. E: only the y term.

Question 4easy

A block slides down a rough incline. Which force does zero work on the block?

  1. Gravity
  2. The normal force
  3. Kinetic friction
  4. The net force
  5. None of them; every force does work
Show answer
B) The normal force

The normal force is perpendicular to the surface and the displacement is along the surface: cos⁡90∘=0\cos 90^\circ = 0. Gravity does positive work (it is going down), friction does negative work. The net work does not have to be zero; if the block is speeding up it is positive.

Question 5easy

A spring with k=400 N/mk = 400\ \text{N/m} is stretched from its natural length by 5.00 cm5.00\ \text{cm}. How much work does the person stretching it do?

  1. 1.00 J
  2. 10.0 J
  3. 5.00 × 10³ J
  4. 20.0 J
  5. 0.500 J
Show answer
E) 0.500 J

W=12kx2=12(400)(0.0500)2=0.500 JW = \tfrac12 kx^2 = \tfrac12(400)(0.0500)^2 = 0.500\ \text{J}. A: 12\tfrac12 forgotten. B: 12kx\tfrac12 kx (square forgotten). C: x=5x = 5 cm was not converted to meters. D: kxkx, this is a force (N), not work.

Question 6medium

A spring (k=200 N/mk = 200\ \text{N/m}) is already stretched 0.100 m0.100\ \text{m}. How much work is needed to stretch it further, to 0.200 m0.200\ \text{m}?

  1. 1.00 J
  2. 3.00 J
  3. 4.00 J
  4. 5.00 J
  5. 2.00 J
Show answer
B) 3.00 J

W=12k(x22−x12)=12(200)(0.0400−0.0100)=3.00 JW = \tfrac12 k(x_2^2 - x_1^2) = \tfrac12(200)(0.0400 - 0.0100) = 3.00\ \text{J}. A: 12k(Δx)2\tfrac12 k(\Delta x)^2, as if the spring were being stretched from the very start. C: only 12kx22\tfrac12 kx_2^2. D: the squares were added. E: k(Δx)2k(\Delta x)^2.

Question 7medium

A force along the x axis varies as F(x)=3x2F(x) = 3x^2 (F in newtons, x in meters). How much work does it do as the particle moves from x=0x = 0 to x=2.00 mx = 2.00\ \text{m}?

  1. 24.0 J
  2. 12.0 J
  3. 2.67 J
  4. 8.00 J
  5. 16.0 J
Show answer
D) 8.00 J

Variable force: W=∫023x2 dx=[x3]02=8.00 JW = \int_0^2 3x^2\,dx = \left[x^3\right]_0^2 = 8.00\ \text{J}. A: F(2)⋅d=12⋅2F(2)\cdot d = 12 \cdot 2, as if the force were constant. B: 12F(2) d\tfrac12 F(2)\,d, a triangle area as if the force were linear. C: the coefficient 3 forgotten (∫x2dx\int x^2dx). E: the integral wrongly taken as 2x32x^3.

Question 8medium

A force on an object increases linearly from 0 to 10 N as x goes from 0 to 4.0 m, stays at 10 N from x = 4.0 m to 7.0 m, then decreases linearly to 0 at x = 9.0 m. What is the total work done by the force?

  1. 90 J
  2. 50 J
  3. 60 J
  4. 70 J
  5. 30 J
Show answer
C) 60 J

Work = the area under the F-x graph. Triangle 12(4)(10)=20\tfrac12(4)(10) = 20, rectangle 3⋅10=303 \cdot 10 = 30, triangle 12(2)(10)=10\tfrac12(2)(10) = 10. Total 60 J60\ \text{J}. A: taking it all as a rectangle (10⋅910 \cdot 9). B: forgot the last triangle. D: counted the first triangle as a rectangle and forgot the last triangle. E: only the middle rectangle.

Question 9easy

A 1.20 kg mass hung from a vertical spring stretches it by 3.00 cm and hangs at rest. What is the spring constant (in N/m)?

Show answer
392 N/m

In equilibrium the spring force equals the weight: kx=mgkx = mg. k=(1.20)(9.80)0.0300=392 N/mk = \dfrac{(1.20)(9.80)}{0.0300} = 392\ \text{N/m}. Someone who does not convert centimeters gets 3.92, and someone who forgets gg gets 40.

Question 10medium

A 15.0 kg crate is pushed 6.00 m6.00\ \text{m} across a floor by a horizontal 80.0 N force. The coefficient of kinetic friction is 0.3500.350. What is the net work done on the crate (in J)?

Show answer
171 J

WF=(80.0)(6.00)=480 JW_F = (80.0)(6.00) = 480\ \text{J}. Friction: fk=μkmg=(0.350)(15.0)(9.80)=51.45 Nf_k = \mu_k mg = (0.350)(15.0)(9.80) = 51.45\ \text{N}, Wf=−(51.45)(6.00)=−308.7 JW_f = -(51.45)(6.00) = -308.7\ \text{J}. The normal force and gravity do no work. Wnet=480−308.7=171 JW_{net} = 480 - 308.7 = 171\ \text{J}.

Question 11hard

A force F⃗=(2i^+3j^+k^) N\vec F = (2\hat i + 3\hat j + \hat k)\ \text{N} acts during a displacement d⃗=(i^−j^+4k^) m\vec d = (\hat i - \hat j + 4\hat k)\ \text{m}. What is the angle between F⃗\vec F and d⃗\vec d?

  1. 10.9°
  2. 55.5°
  3. 1.38°
  4. 90.0°
  5. 79.1°
Show answer
E) 79.1°

F⃗⋅d⃗=2−3+4=3 J\vec F\cdot\vec d = 2 - 3 + 4 = 3\ \text{J}. ∣F⃗∣=14|\vec F| = \sqrt{14}, ∣d⃗∣=18|\vec d| = \sqrt{18}. cos⁡θ=31418=0.189\cos\theta = \dfrac{3}{\sqrt{14}\sqrt{18}} = 0.189, θ=79.1∘\theta = 79.1^\circ. A: arcsin instead of arccos. B: dropped the minus of −3-3 (product 9). C: writing the radian result as degrees (1.38 rad = 79.1°). D: thinking it is zero because the product is small.

Question 12hard

For a spring with k=250 N/mk = 250\ \text{N/m}, how much work does it take to stretch it from x=6.00 cmx = 6.00\ \text{cm} to x=12.0 cmx = 12.0\ \text{cm} (in J)? Compare with the work for the first 6.00 cm.

Show answer
1.35 J

W=12(250)(0.1202−0.06002)=1.35 JW = \tfrac12(250)(0.120^2 - 0.0600^2) = 1.35\ \text{J}. For the first 6 cm it is 12(250)(0.0600)2=0.450 J\tfrac12(250)(0.0600)^2 = 0.450\ \text{J}. The same extension but three times the work: as the spring is stretched the force grows, and the area in the F-x graph widens.

Verification: All numerical answers and distractors were computed with node (verify/PHY1001/10.mjs), integrals were checked with numerical midpoint sums, g = 9.80 m/s².

Review card

Constant force: W = F d cos(theta) unit J = N·m With components: W = F·d = Fx dx + Fy dy + Fz dz theta < 90 → W > 0 theta = 90 → W = 0 theta > 90 → W < 0 The normal force and the centripetal force do no work (perpendicular to the displacement) Gravity: up by h → Wg = -mgh down by h → +mgh Friction (sliding): Wf = -mu_k N d N is not always mg! Net work = the sum of the works of all forces = F_net · d Variable force: W = ∫ F(x) dx = the area under the F-x graph Hooke: F_spring = -k x (k: N/m, restoring) Work to stretch a spring: W = ½ k (x2² - x1²) the spring's own work is its negative From x = 0: W = ½ k x² convert cm → m! Calculator in DEG mode