School/□ Systems Engineer/Week 7
Work, charge and energy as integrals
Stretching a spring gets harder the further you go. How much energy have you stored when it is 30 cm long? Force times distance fails: the force keeps changing.
About 35 min · 3 goals · Checked by automated tests
1.Why should I care?
Product formulas (W = F·d, Q = I·t, E = P·t) only work when the rate is constant. Real springs, discharging capacitors and varying motor loads need the integral, and the integral is what sizing a battery, a spring or a fuse actually rests on.
- ◇ Compute work as W = ∫F dx for a varying force.
- ◇ Compute charge as Q = ∫I dt and energy as E = ∫P dt, with units.
- ◇ Recognise when a simple product suffices and when an integral is needed.
2.Predict
A spring with k = 200 N/m is stretched from 0 to 0.3 m. The final force is 60 N. How much work is done?
Guess first. Being wrong here is how the surprise works.
3.Discover
Choose the spring force with the trapezoid rule and n = 1: why is even one trapezoid exact? Then choose the discharge current I = 3e^(−t/2) and slide b to the end: how much charge has flowed by 6 s, and how close is it to the 6 C total for all time?
Loading the interactive…
Can't use the interactive? Read a description instead
In the accumulator, the spring force 200x is a straight line, so one trapezoid gives the exact work of 9 J at 0.3 m. For the discharge current 3e^(−t/2), the running charge total rises steeply then levels off towards 6 C, reaching about 5.70 C by 6 s.
4.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
A spring with k = 200 N/m is stretched from 0 to 0.3 m. How much work is done, in joules?
5.Understand
Work from a varying force
W = ∫ F dx: force times a small displacement, added up. For a spring F = kx, W = ½kx², the energy stored. A product W = F·d is only right if F is constant; otherwise use the area under the force–displacement graph, in N × m = J.
Charge from a varying current
Q = ∫ I dt. A discharging capacitor's current I = I₀e^(−t/τ) delivers Q = I₀τ(1 − e^(−t/τ)), approaching I₀τ in total. For I₀ = 3 A and τ = 2 s that is 6 C, of which 95% has flowed by t = 3τ = 6 s.
Energy from a varying power
E = ∫ P dt. A motor drawing 20 + 15·sin t watts for 6 s uses [20t − 15cos t]₀⁶ = 120 − 15cos 6 + 15 ≈ 120.6 J. Units: W × s = J; W × h = Wh = 3600 J. Battery capacities are given in Wh or mAh (charge, which becomes energy when multiplied by voltage).
Explain it another way
Anything whose rate changes is totalled the same way: chop into small pieces where the rate is nearly constant, multiply, add. Spring work, battery drain and water through a meter are one idea.
W = ∫F·dx, Q = ∫I dt, E = ∫P dt = ∫V·I dt. For exponentials, ∫₀ᵗ e^(−s/τ) ds = τ(1 − e^(−t/τ)).
Spring: ∫₀ˣ ks ds = ½kx². The quadratic grows faster than the force, which is why doubling a spring's stretch stores four times the energy.
A catapult or bow is a spring energy store: ½kx² at full draw. Robot designers use the same integral to size the spring in a jumping robot's legs.
Worked example 1
A capacitor current I = 3e^(−t/2) A. How much charge flows in the first 2 s?
Q = ∫₀² 3e^(−t/2) dt = 3 × 2 × (1 − e⁻¹) = 6 × 0.632 = 3.79 C.
Common mix-ups
- Work = final force × distance.
✓ Only for a constant force. A varying force needs the area under its graph. - mAh measures energy.
✓ mAh measures charge. Multiply by the voltage to get energy in mWh.
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
I(t) = 3e^(−t/2) A flows for all time from t = 0. What total charge passes, in coulombs?
Practice 3
A motor draws a steady 20 W for 3 minutes. How much energy does it use, in joules?
Practice 4
What does the area under a force–displacement graph represent?
Practice 5 · a fresh version every time
Find the exact distance travelled (velocity in m/s) from t = 2 s to t = 5 s when v(t) = 1t² − 2t + 5.
7.Apply it
A robot's jumping leg uses a spring of k = 800 N/m compressed 0.1 m. How much energy is stored? If all of it lifted a 0.5 kg robot, how high could it jump (E = mgh)? Name two reasons the real jump will be lower.
8.Reflect
9.Go further
- OpenStax Calculus Volume 1 (free, open textbook) ↗A complete first-year calculus text with worked examples and exercises, free to read online.
Concepts: Integrals and accumulation · Electrical power and energy budgets