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

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.

Integrals of the basic functions (add \(+\,C\) to each)
\(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).

Figure 2.1 One velocity, many positions. Integrating \(v(t)\) gives a whole family of position curves \(s = F(t) + C\) (gray), all with the same slope at every instant. The initial position \(s_0\) picks one of them (blue) and fixes \(C\). Change \(s_0\) and the bold curve slides up or down without changing shape.

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.

Figure 2.2 The definite integral as a signed area. The area between \(\colPos{f(t)}\) and the axis, from the lower limit \(a\) to the upper limit \(b\), is shaded green above the axis and red below. The midpoint rectangles approximate it; add more and their sum closes in on \(F(b) - F(a)\). For \(f(t) = 12 - 3t\) from 0 to 6, the integral is 18 but the total area is 30.

Example 2.2 — A definite integral

Evaluate \(\displaystyle\int_0^{\pi} 3\sin t\,dt\).

Show solution
\[ \int_0^{\pi} 3\sin t\,dt = \Big[-3\cos t\Big]_0^{\pi} = -3\cos\pi - (-3\cos 0) = 3 + 3 = 6 \]

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
\[ s = 0 + \int_0^t 20\,e^{-0.1\tau}\,d\tau = \Big[-200\,e^{-0.1\tau}\Big]_0^t = 200\,(1 - e^{-0.1t})\ \text{m} \]

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
\[ \int_{10}^{v} \frac{dv}{v} = \int_0^t -0.5\,dt \quad\Rightarrow\quad \ln\frac{v}{10} = -0.5t \quad\Rightarrow\quad v = 10\,e^{-0.5t}\ \text{m/s} \]

For \(v = 1\ \text{m/s}\): \(t = \ln(10)/0.5 = 2\ln 10 = 4.61\ \text{s}\).

Check your understanding

Key takeaways