TactivergeLite

Lite / Engineering Complex Systems / Week 6

Definite integrals, exactly

A thousand thin strips give 14.666 m. A million give 14.6666… Is there a way to get the exact answer without adding forever?

About 40 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Exact integrals are the benchmark for every numerical method and the fast route to totals when the rate is a formula: the distance a planned motion covers, the charge in a pulse, the work to stretch a spring.

Predict

What is ∫₀² 3t² dt?

  1. 6
  2. 8
  3. 12
  4. 24
Guess first, then reveal

An antiderivative of 3t² is t³ (check: d/dt t³ = 3t²). So the integral is 2³ − 0³ = 8.

Discover

Choose the spring force F(x) = 200x and the midpoint rule: compare the estimate with the exact value even for n = 1. Why is it exact? Then choose the drone climb rate with n = 64 and compare with the exact 14.667 m from the antiderivative x³/6 + x.

What the interactive shows (text version)

The accumulator shows sums converging to the exact integral. For the spring force 200x the midpoint rule is exact at any n because the curve is a straight line. For the drone, 64 midpoint strips give 14.6657 m against the exact 14.6667 m.

You can also open the interactive on the full site when you have a faster connection.

Understand

Antiderivatives

F is an antiderivative of f if F′ = f. Reverse the power rule: ∫tⁿ dt = tⁿ⁺¹/(n + 1) + C for n ≠ −1. Constants and sums carry through: ∫(4t³ + 2t + 5) dt = t⁴ + t² + 5t + C. Also ∫e^(kt) dt = e^(kt)/k and ∫cos t dt = sin t.

Evaluating F(b) − F(a)

∫ₐᵇ f(t) dt = F(b) − F(a), written [F(t)]ₐᵇ. The constant C cancels. For the drone: ∫₀⁴ (0.5t² + 1) dt = [t³/6 + t]₀⁴ = 64/6 + 4 = 14.667 m, the exact limit of last lesson's sums.

Signed area

Area below the axis counts as negative. ∫ of a velocity that goes negative gives displacement (net change in position), not total distance travelled. For distance, integrate |v| by splitting at the zeros. Units still multiply: A × s = C, W × s = J.

Explain it another way

Intuitive

Integrating undoes differentiating. If you know how fast something changes, the antiderivative is the 'total so far' function, and subtracting its value at the start from its value at the end gives what accumulated in between.

Technical

∫ₐᵇ f dt = F(b) − F(a) for any antiderivative F of a continuous f. ∫ₐᵇ = −∫ᵇₐ, and ∫ₐᵃ = 0.

Mathematical

Simpson's rule ((b − a)/6)·[f(a) + 4f((a + b)/2) + f(b)] is exact for every cubic, which makes it a handy independent check on polynomial integrals.

Applied

Motion profiles for robots are often planned as polynomials precisely because their integrals (distance) and derivatives (velocity, acceleration) are exact and cheap to evaluate on a microcontroller.

Derivation: ∫₀ᴮ t² dt from a Riemann sum
  1. Right sum with n strips: Δt = B/n and tᵢ = iB/n for i = 1 … n.

  2. Sum: Σ (iB/n)²·(B/n) = (B³/n³)·Σ i².

  3. Use the formula Σᵢ₌₁ⁿ i² = n(n + 1)(2n + 1)/6.

  4. So the sum = (B³/6)·(n + 1)(2n + 1)/n² = (B³/6)·(2 + 3/n + 1/n²).

  5. As n → ∞ the 1/n terms vanish: ∫₀ᴮ t² dt = B³/3. That matches the antiderivative t³/3 evaluated from 0 to B.

Worked example 1

A current I(t) = 2t + 1 A flows from t = 1 s to t = 3 s. How much charge passes?

Q = ∫₁³ (2t + 1) dt = [t² + t]₁³ = (9 + 3) − (1 + 1) = 10 C.

Worked example 2

v(t) = 4 − 2t m/s from 0 to 3 s. Find the displacement and the distance travelled.

Displacement = [4t − t²]₀³ = 12 − 9 = 3 m. v changes sign at t = 2: 0–2 s gives 4 m forward, 2–3 s gives −1 m. Distance = 4 + 1 = 5 m.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

m

m

Practice 4. ∫₀⁶ v(t) dt = 0 for a robot's velocity. What can you conclude?

m

Apply it

A planned joint motion has angular velocity ω(t) = 6t − 3t² rad/s for 0 ≤ t ≤ 2 s. How far does the joint turn? Check with the Riemann lab idea (midpoint, 4 strips) by hand.

Reflect

Why does the constant C disappear in a definite integral?

Write your answer on paper or in your own notes. Lite never stores what you write.

Go further

← Riemann sums: adding up thin stripsThe fundamental theorem: slope of the total →