Lesson 2 · 35 min
Integrals: A Calculus Refresher
Integration undoes differentiation. If you know how fast something changes, integrating tells you how much it has changed: the velocity gives the position, and the acceleration gives the velocity. This lesson reviews antiderivatives and the constant of integration, definite integrals with limits, and the integrals of the basic functions, with the two techniques dynamics uses most: substitution and separating the variables.
Learning objectives
- Find antiderivatives of polynomials, powers, trigonometric, exponential and reciprocal functions.
- Explain the constant of integration, and fix it with an initial condition.
- Evaluate definite integrals with limits, and read them as signed areas.
- Integrate with limits from a known starting state, and separate the variables in a rate equation.
Antiderivatives and the constant of integration
A function \(F(t)\) is an antiderivative of \(f(t)\) if \(F\,'(t) = f(t)\). Since the derivative of a constant is zero, adding any constant \(C\) to \(F\) gives another antiderivative. The indefinite integral collects them all:
The indefinite integral
\[ \int f(t)\,dt = F(t) + C \qquad\text{where}\qquad F\,'(t) = f(t) \]\(C\) is the constant of integration. It is unknown until you know the value of \(F\) at one instant: an initial condition.
Every derivative in Lesson 1 gives an integral when you read it backward [2]. The table holds the ones you need; check any line by differentiating its right side.
| \(f(t)\) | \(\int f(t)\,dt\) | Note |
|---|---|---|
| \(t^n\) | \(\dfrac{t^{n+1}}{n + 1}\) | any \(n \ne -1\) |
| \(\dfrac{1}{t}\) | \(\ln\lvert t\rvert\) | the case \(n = -1\) |
| \(\dfrac{1}{a + bt}\) | \(\dfrac{1}{b}\ln\lvert a + bt\rvert\) | by substitution, \(u = a + bt\) |
| \(e^{kt}\) | \(\dfrac{1}{k}\,e^{kt}\) | |
| \(\sin kt\) | \(-\dfrac{1}{k}\cos kt\) | \(t\) in radians |
| \(\cos kt\) | \(\dfrac{1}{k}\sin kt\) | \(t\) in radians |
Integrals also work term by term, and constant factors come outside: \(\int (c\,f + g)\,dt = c\int f\,dt + \int g\,dt\). There is no product rule in reverse, so a product such as \(t\,e^{t}\) needs a technique (substitution below, or integration by parts in a calculus text).
Example 2.1 — Fixing the constant
A particle has velocity \(v = 6t^2 - 4\ \text{m/s}\). At \(t = 0\) it is at \(s = 2\ \text{m}\). Find its position at \(t = 3\ \text{s}\).
Show solution
Integrate term by term:
\[ s = \int (6t^2 - 4)\,dt = 2t^3 - 4t + C \]The initial condition fixes \(C\): at \(t = 0\), \(2 = 0 - 0 + C\), so \(C = 2\ \text{m}\). Then
\[ s = 2t^3 - 4t + 2 \qquad\Rightarrow\qquad s(3) = 54 - 12 + 2 = 44\ \text{m} \]Check: differentiating \(s\) gives back \(6t^2 - 4\).
Definite integrals and areas
A definite integral has limits. It adds up \(f(t)\,dt\) over every small step from \(t = a\) to \(t = b\), and the result is a number, with no constant:
The fundamental theorem of calculus
\[ \int_a^b f(t)\,dt = \Big[F(t)\Big]_a^b = F(b) - F(a) \]Any antiderivative \(F\) will do: the constant \(C\) cancels in the subtraction.
On a graph, the definite integral is the signed area between the curve and the \(t\)-axis: area above the axis counts as positive, and area below counts as negative. Figure 2.2 builds that area out of thin rectangles; as they become narrower, their total approaches the exact integral.
This is the key to the graphical method of Lesson 6. Because \(ds = v\,dt\), the area under a velocity–time graph between two instants is the change in position, the displacement. The distance traveled is the total area with every part counted as positive.
Example 2.2 — A definite integral
Evaluate \(\displaystyle\int_0^{\pi} 3\sin t\,dt\).
Show solution
The whole arch of \(3\sin t\) from 0 to \(\pi\) lies above the axis, so its area is \(6\). Choose the cosine in Figure 2.2 to see a curve that crosses the axis.
Example 2.3 — Displacement and distance
A particle moves with \(v = 12 - 3t\ \text{m/s}\) for \(6\ \text{s}\). Find its displacement and the distance it travels.
Show solution
The displacement is the definite integral of the velocity:
\[ \Delta s = \int_0^6 (12 - 3t)\,dt = \Big[12t - 1.5t^2\Big]_0^6 = 72 - 54 = 18\ \text{m} \]But \(v\) changes sign at \(t = 4\ \text{s}\), where the particle turns back. Integrate each part separately:
\[ \int_0^4 (12 - 3t)\,dt = 48 - 24 = 24\ \text{m} \qquad \int_4^6 (12 - 3t)\,dt = 18 - 24 = -6\ \text{m} \]It goes \(24\ \text{m}\) forward and \(6\ \text{m}\) back: the distance traveled is \(24 + 6 = 30\ \text{m}\), and the displacement \(24 - 6 = 18\ \text{m}\). This is the case drawn in Figure 2.2.
Integrating with limits from a known start
In dynamics you usually know the state at one instant, such as the position \(s_0\) at \(t = 0\). Instead of finding \(C\) separately, put the known state into the limits. From \(ds = v\,dt\), integrate the left side from \(s_0\) to \(s\) while the right side runs from \(0\) to \(t\):
Matching limits
\[ \int_{s_0}^{s} ds = \int_0^t v\,dt \qquad\Rightarrow\qquad s = s_0 + \int_0^t v\,dt \]The lower limits are a matching pair (\(s_0\) at \(t = 0\)), and so are the upper limits (\(s\) at \(t\)). Inside the integral, write the variable of integration as a dummy, \(\int_0^t v(\tau)\,d\tau\), if the letter \(t\) in the limit is confusing.
Example 2.4 — A coasting car
A car coasts with \(v = 20\,e^{-0.1t}\ \text{m/s}\), starting at \(s = 0\). How far has it gone after \(10\ \text{s}\), and how far will it ever go?
Show solution
At \(t = 10\ \text{s}\): \(s = 200(1 - e^{-1}) = 126\ \text{m}\). As \(t \to \infty\), \(e^{-0.1t} \to 0\), so the car approaches, but never passes, \(200\ \text{m}\).
Substitution and separating the variables
Substitution reverses the chain rule. When the integrand contains a function \(u(t)\) together with its derivative \(du/dt\), replace \(u'(t)\,dt\) by \(du\):
\[ \int t\cos(t^2)\,dt \;=\; \tfrac12\int \cos u\,du \;=\; \tfrac12\sin(t^2) + C \qquad (u = t^2,\ du = 2t\,dt) \]Separating the variables handles rate equations in which the rate depends on the quantity itself. A boat that has cut its engine slows at a rate proportional to its speed, \(dv/dt = -kv\). Move everything with \(v\) to one side and everything with \(t\) to the other, then integrate both sides with matching limits:
Separating the variables
\[ \frac{dv}{dt} = g(v) \quad\Rightarrow\quad \int_{v_0}^{v} \frac{dv}{g(v)} = \int_0^t dt = t \]Lesson 5 uses this for accelerations that depend on velocity or on position.
Example 2.5 — Separating the variables
A boat slows with \(dv/dt = -0.5v\) (in \(\text{m/s}^2\), with \(v\) in m/s) from \(v_0 = 10\ \text{m/s}\). Find \(v(t)\), and the time to slow to \(1\ \text{m/s}\).
Show solution
For \(v = 1\ \text{m/s}\): \(t = \ln(10)/0.5 = 2\ln 10 = 4.61\ \text{s}\).
Check your understanding
Key takeaways
- \(\int t^n\,dt = t^{n+1}/(n + 1) + C\) for \(n \ne -1\); \(\int dt/t = \ln\lvert t\rvert + C\); \(\int e^{kt}\,dt = e^{kt}/k + C\); \(\int \sin kt\,dt = -\cos(kt)/k + C\); \(\int \cos kt\,dt = \sin(kt)/k + C\).
- An indefinite integral has a constant \(C\); an initial condition fixes it.
- \(\int_a^b f\,dt = F(b) - F(a)\) is a signed area: above the axis counts positive, below negative.
- Displacement is the integral of the velocity; distance traveled counts every part as positive, so split the integral where \(v\) changes sign.
- Put a known start into the limits: \(s = s_0 + \int_0^t v\,dt\). Separate the variables when the rate depends on the quantity itself.
- Next, Lesson 3 applies all this to a particle moving along a line.