Calculus · Chapter 5
Integrals
Where differential calculus grew from the tangent and velocity problems, integral calculus grows from the area and distance problems. Both lead to the same kind of limit — and the Fundamental Theorem of Calculus reveals that integration and differentiation are inverse operations.
This chapter develops the definite integral from approximating sums, defines it precisely, proves the two parts of the Fundamental Theorem, and finishes with two practical tools for evaluating integrals: the Net Change Theorem and the Substitution Rule.
This chapter is the conceptual backbone for everything in mechanical engineering that involves accumulation — work done by a force, fluid pressure on a surface, heat transfer, center of mass. Don't rush past 5.1. If you can explain why a Riemann sum converges to an area, the integral notation in later courses will feel obvious instead of memorized.
5.1Areas and Distances
Two seemingly unrelated questions — how much area lies under a curve, and how far a moving object travels — turn out to require the same special kind of limit. That shared limit is the seed of the integral.
The Area Problem
For a rectangle, triangle, or any polygon, area is easy: multiply, halve, or cut into triangles and add. A region with a curved boundary has no such formula. The strategy is the one used for tangents: approximate, then take a limit.
The Area Problem
Find the area of the region S bounded above by the graph of a continuous function \(y=f(x)\ge 0\), below by the \(x\)-axis, and on the sides by the vertical lines \(x=a\) and \(x=b\). The challenge is to turn our intuitive sense of "area" into an exact definition.
Approximating with Rectangles
Slice S into thin vertical strips and replace each strip with a rectangle. Using the right endpoint of each subinterval for the height gives an overestimate \(R_n\); using the left endpoint gives an underestimate \(L_n\). The true area is trapped between them, and the gap shrinks as the number of rectangles \(n\) grows.
Defining the Area
For a general region, divide \([a,b]\) into \(n\) subintervals each of width \(\Delta x=(b-a)/n\). The right endpoints are \(x_i=a+i\,\Delta x\). Summing rectangle areas and letting \(n\to\infty\) gives the definition.
The area \(A\) of the region \(S\) under the graph of a continuous function \(f\) is the limit of the sums of approximating rectangles:
\[ A=\lim_{n\to\infty}R_n=\lim_{n\to\infty}\bigl[f(x_1)\,\Delta x+f(x_2)\,\Delta x+\cdots+f(x_n)\,\Delta x\bigr]. \]This limit always exists for continuous \(f\), and gives the same value whether heights are taken at left endpoints, right endpoints, or any sample points \(x_i^{*}\) in each subinterval.
Sigma Notation
Sums with many terms are written compactly with the Greek capital sigma. The index below tells you where to start, the value above where to end.
Memorize the three power-sum formulas (for \(\sum i\), \(\sum i^2\), \(\sum i^3\)) now. They're the only algebra that makes the "limit of a Riemann sum" computable by hand, and they show up again in moment-of-inertia derivations.
The Distance Problem
If velocity is constant, distance is simply velocity times time. When velocity varies, split the trip into short intervals, assume velocity is roughly constant on each, and add up the pieces — exactly the rectangle idea again.
| Time (s) | 0 | 5 | 10 | 15 | 20 | 25 | 30 |
|---|---|---|---|---|---|---|---|
| v (ft/s) | 25 | 31 | 35 | 43 | 47 | 46 | 41 |
5.2The Definite Integral
The limit of sums that appeared in both the area and distance problems shows up everywhere — even when \(f\) is not positive. It deserves its own name and notation: the definite integral.
Definition of the Definite Integral
For \(f\) defined on \([a,b]\), divide the interval into \(n\) subintervals of equal width \(\Delta x=(b-a)/n\) with sample points \(x_i^{*}\). The definite integral is
\[ \int_a^b f(x)\,dx=\lim_{n\to\infty}\sum_{i=1}^{n}f(x_i^{*})\,\Delta x, \]provided the limit exists, in which case \(f\) is integrable on \([a,b]\).
Reading the notation
The sign \(\int\) — an elongated S chosen by Leibniz — recalls "sum." Here \(f(x)\) is the integrand, \(a\) and \(b\) are the limits of integration (lower and upper), and \(dx\) marks \(x\) as the variable. The whole symbol is one object; \(dx\) has no independent meaning. The integral is a number and does not depend on the variable name: \(\int_a^b f(x)\,dx=\int_a^b f(t)\,dt\).
Riemann Sums and Net Area
The approximating sum \(\sum f(x_i^{*})\,\Delta x\) is a Riemann sum, named for Bernhard Riemann (1826–1866). When \(f\) is positive it is a sum of rectangle areas. When \(f\) takes both signs, areas below the axis count as negative.
where \(A_1\) is the area above the \(x\)-axis and below the curve, and \(A_2\) is the area below the axis and above the curve.
If \(f\) is continuous on \([a,b]\), or has only finitely many jump discontinuities there, then \(f\) is integrable on \([a,b]\) — the definite integral exists.
If \(f\) is integrable on \([a,b]\), the integral may be computed with right endpoints:
\[ \int_a^b f(x)\,dx=\lim_{n\to\infty}\sum_{i=1}^{n}f(x_i)\,\Delta x,\quad \Delta x=\frac{b-a}{n},\ x_i=a+i\,\Delta x. \]The Midpoint Rule
Right endpoints are convenient for limits, but for numerical approximation the midpoint of each subinterval usually gives a much better estimate.
Properties of the Definite Integral
Reversing the limits flips the sign, and a zero-width interval gives zero:
If \(f(x)\ge 0\) on \([a,b]\), then \(\displaystyle\int_a^b f(x)\,dx\ge 0\).
If \(f(x)\ge g(x)\) on \([a,b]\), then \(\displaystyle\int_a^b f(x)\,dx\ge\int_a^b g(x)\,dx\).
If \(m\le f(x)\le M\) on \([a,b]\), then \(\displaystyle m(b-a)\le\int_a^b f(x)\,dx\le M(b-a)\).
The bounding property (Property 8) is your fastest sanity check on any numerical answer. Before trusting a computed integral, ask: does it sit between \(m(b-a)\) and \(M(b-a)\)? If not, you have a sign or setup error.
5.3The Fundamental Theorem of Calculus
Differential calculus came from the tangent problem; integral calculus from the area problem. Isaac Barrow saw they were connected; Newton and Leibniz turned that connection into a method. The Fundamental Theorem makes the link precise: differentiation and integration undo each other.
FTC, Part 1 — Integrals Define Antiderivatives
Define a new function as an integral with a variable upper limit, \(g(x)=\int_a^x f(t)\,dt\) — think of it as the "area so far." Its derivative recovers the original integrand.
If \(f\) is continuous on \([a,b]\), then the function
\[ g(x)=\int_a^x f(t)\,dt,\qquad a\le x\le b, \]is continuous on \([a,b]\), differentiable on \((a,b)\), and
\[ g'(x)=f(x). \]In Leibniz notation: \(\displaystyle \frac{d}{dx}\int_a^x f(t)\,dt=f(x).\) Differentiating an integral with respect to its upper limit returns the integrand evaluated there.
FTC, Part 2 — Evaluating with Antiderivatives
The second part is the workhorse: instead of computing a limit of Riemann sums, find any antiderivative and subtract its values at the endpoints.
If \(f\) is continuous on \([a,b]\), then
\[ \int_a^b f(x)\,dx=F(b)-F(a), \]where \(F\) is any antiderivative of \(f\) (a function with \(F'=f\)). Any single antiderivative will do — the constant cancels in the subtraction.
Differentiation and Integration as Inverse Processes
Suppose \(f\) is continuous on \([a,b]\).
1. If \(g(x)=\displaystyle\int_a^x f(t)\,dt\), then \(g'(x)=f(x)\).
2. \(\displaystyle\int_a^b f(x)\,dx=F(b)-F(a)\), where \(F\) is any antiderivative of \(f\).
This is the single most important result in the course. Before FTC, finding an area meant a brutal limit of sums (Roberval needed real ingenuity for \(\int_0^{\pi/2}\cos x\,dx\) in 1635). After FTC, it is one subtraction. When you reach for an antiderivative in dynamics or thermodynamics, you are using Part 2 — make sure the integrand is actually continuous on the interval first.
5.4Indefinite Integrals and the Net Change Theorem
Because FTC2 depends on antiderivatives, we need a clean notation for them and a ready supply of formulas. We also reframe FTC2 so it speaks directly to science and engineering: the integral of a rate of change is the net change.
Indefinite Integrals
Indefinite integral
The notation \(\int f(x)\,dx\) denotes an antiderivative of \(f\): \(\int f(x)\,dx=F(x)\) means \(F'(x)=f(x)\). It represents an entire family of functions differing by a constant \(C\). Distinguish it sharply from a definite integral: \(\int_a^b f(x)\,dx\) is a number, while \(\int f(x)\,dx\) is a function.
Table of Indefinite Integrals
Each formula is valid on an interval where the integrand is defined, and can be checked by differentiating the right side.
The Net Change Theorem
Since \(F'=f\), FTC2 can be read as a statement about rates: integrating a rate of change over an interval gives the total (net) change in the quantity.
If \(F'\) varies in sign, \(F(b)-F(a)\) is the net change — increases and decreases counted together.
Reading net change in context
The same theorem describes many engineering quantities: if \(V'(t)\) is flow rate, \(\int_{t_1}^{t_2}V'(t)\,dt\) is the change in volume; if \(\rho(x)=m'(x)\) is linear density, \(\int_a^b\rho(x)\,dx\) is the mass of a rod segment; if \(C'(x)\) is marginal cost, \(\int_{x_1}^{x_2}C'(x)\,dx\) is the added cost of producing more units.
The displacement-versus-distance trap catches students every term. Whenever a problem says "how far did it travel," reach for \(\int|v|\,dt\) and find the sign changes first. If it says "where does it end up," plain \(\int v\,dt\) is enough. Units follow the same rule as the integrand: \(\int_a^b f\,dx\) carries the units of \(f\) times the units of \(x\) (e.g., megawatts × hours = megawatt-hours).
5.5The Substitution Rule
The antidifferentiation table covers basic forms, but not integrals like \(\int 2x\sqrt{1+x^2}\,dx\). The Substitution Rule — the integral counterpart of the Chain Rule — handles these by introducing a new variable.
The Substitution Rule
If \(u=g(x)\) is differentiable with range an interval \(I\), and \(f\) is continuous on \(I\), then
\[ \int f\bigl(g(x)\bigr)g'(x)\,dx=\int f(u)\,du. \]Since \(du=g'(x)\,dx\), the rule says you may treat \(dx\) and \(du\) as differentials and operate on them after the integral sign.
Choosing the substitution
Pick \(u\) to be an inner function whose derivative also appears in the integrand (up to a constant factor). If the first guess doesn't simplify things, try another — finding the right \(u\) is part skill, part experiment.
Substitution in Definite Integrals
For a definite integral, the cleaner method is to change the limits of integration along with the variable — then there is no need to convert back.
If \(g'\) is continuous on \([a,b]\) and \(f\) is continuous on the range of \(u=g(x)\), then
\[ \int_a^b f\bigl(g(x)\bigr)g'(x)\,dx=\int_{g(a)}^{g(b)}f(u)\,du. \]Substitute the new variable everywhere — including the limits — and evaluate in \(u\) directly.
Symmetry
When a function is even or odd, symmetry simplifies integrals over intervals centered at the origin.
If \(f\) is even \(\bigl(f(-x)=f(x)\bigr)\): \(\displaystyle\int_{-a}^{a}f(x)\,dx=2\int_0^{a}f(x)\,dx.\)
If \(f\) is odd \(\bigl(f(-x)=-f(x)\bigr)\): \(\displaystyle\int_{-a}^{a}f(x)\,dx=0.\)
Always scan for symmetry before grinding through a substitution. Spotting an odd integrand on a symmetric interval turns a hard problem into "the answer is zero." This habit saves real time on exams and in Fourier-series work later.