Fiveable

🧠Thinking Like a Mathematician Unit 9 Review

QR code for Thinking Like a Mathematician practice questions

9.4 Integrals

9.4 Integrals

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🧠Thinking Like a Mathematician
Unit & Topic Study Guides

Definition of integrals

Integrals solve a fundamental problem: how do you find the total accumulated quantity when something is continuously changing? Think of calculating the area under a curve, the volume of an oddly shaped solid, or the total distance traveled when speed keeps varying. Integration gives you the tools to handle all of these.

This section covers Riemann sums, definite and indefinite integrals, the Fundamental Theorem of Calculus, a range of integration techniques, and applications from area calculations to integral transforms.

Riemann sums

Riemann sums are the conceptual foundation of integration. The idea is straightforward: approximate the area under a curve by chopping it into thin rectangles, then add up their areas.

  • Divide the interval [a,b][a, b] into nn subintervals of width Δx=ban\Delta x = \frac{b - a}{n}
  • For each subinterval, build a rectangle whose height is the function value at some chosen point in that subinterval
  • Sum all the rectangle areas: Sn=i=1nf(xi)ΔxS_n = \sum_{i=1}^{n} f(x_i^*) \Delta x

The "chosen point" determines which type of Riemann sum you're using:

  • Left Riemann sum: use the left endpoint of each subinterval
  • Right Riemann sum: use the right endpoint
  • Midpoint Riemann sum: use the midpoint (often the most accurate of the three for the same nn)

As nn \to \infty, the rectangles get thinner and the approximation converges to the exact area. That limit is precisely the definite integral.

Definite vs indefinite integrals

These two types of integrals look similar on paper but answer different questions.

Definite integrals calculate a specific numerical value representing the net area between a curve and the x-axis over an interval:

abf(x)dx\int_a^b f(x)\,dx

Here aa and bb are the lower and upper bounds. The result is a number, not a function. Note that area below the x-axis counts as negative.

Indefinite integrals find the general antiderivative of a function:

f(x)dx=F(x)+C\int f(x)\,dx = F(x) + C

The result is a family of functions differing by the constant CC. Why the constant? Because many different functions share the same derivative (for example, x2+5x^2 + 5 and x23x^2 - 3 both have derivative 2x2x). The +C+ C accounts for all of them.

Fundamental Theorem of Calculus

This theorem is the bridge between differentiation and integration. It has two parts, and both are essential.

Part 1 (Evaluation Theorem): If ff is continuous on [a,b][a, b] and FF is any antiderivative of ff, then:

abf(x)dx=F(b)F(a)\int_a^b f(x)\,dx = F(b) - F(a)

This is what makes definite integrals practical. Instead of computing a limit of Riemann sums, you just find an antiderivative and plug in the bounds.

Part 2 (Derivative of an Integral Function): If you define G(x)=axf(t)dtG(x) = \int_a^x f(t)\,dt, then G(x)=f(x)G'(x) = f(x). In other words, differentiation undoes integration.

Together, these two parts say that differentiation and integration are inverse operations. That single insight powers most of the computational techniques in this section.

Integration techniques

Not every integral yields to a direct antiderivative lookup. The techniques below give you systematic strategies for handling more complex integrands.

Integration by substitution

Substitution reverses the chain rule. When you spot a composite function and its inner derivative lurking in the integrand, substitution simplifies the whole expression.

Steps:

  1. Identify an inner function u=g(x)u = g(x) whose derivative g(x)g'(x) appears (or nearly appears) in the integrand
  2. Compute du=g(x)dxdu = g'(x)\,dx
  3. Rewrite the entire integral in terms of uu and dudu
  4. Integrate with respect to uu
  5. Substitute back to express the result in terms of xx

For definite integrals, you can either convert the bounds to uu-values or substitute back and then evaluate.

Example: To evaluate 2xcos(x2)dx\int 2x \cos(x^2)\,dx, let u=x2u = x^2, so du=2xdxdu = 2x\,dx. The integral becomes cos(u)du=sin(u)+C=sin(x2)+C\int \cos(u)\,du = \sin(u) + C = \sin(x^2) + C.

Integration by parts

Integration by parts reverses the product rule. Use it when the integrand is a product of two functions and substitution doesn't help.

Formula:

udv=uvvdu\int u\,dv = uv - \int v\,du

Steps:

  1. Choose uu and dvdv from the integrand. A common guideline is LIATE (Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential): pick uu from whichever category comes first in that list.
  2. Compute dudu by differentiating uu, and find vv by integrating dvdv
  3. Apply the formula
  4. If the resulting integral is still complex, apply integration by parts again

Example: For xsin(x)dx\int x\sin(x)\,dx, let u=xu = x and dv=sin(x)dxdv = \sin(x)\,dx. Then du=dxdu = dx and v=cos(x)v = -\cos(x). Applying the formula gives xcos(x)+cos(x)dx=xcos(x)+sin(x)+C-x\cos(x) + \int \cos(x)\,dx = -x\cos(x) + \sin(x) + C.

Partial fractions

Partial fraction decomposition breaks a rational function into simpler pieces that are each easy to integrate.

Steps:

  1. Make sure the degree of the numerator is less than the degree of the denominator (if not, do polynomial long division first)

  2. Factor the denominator completely

  3. Write the decomposition based on the factor types:

    • Distinct linear factors (xa)(x - a): use Axa\frac{A}{x - a}
    • Repeated linear factors (xa)n(x - a)^n: use A1xa+A2(xa)2+\frac{A_1}{x - a} + \frac{A_2}{(x - a)^2} + \cdots
    • Irreducible quadratic factors (ax2+bx+c)(ax^2 + bx + c): use Ax+Bax2+bx+c\frac{Ax + B}{ax^2 + bx + c}
  4. Solve for the unknown coefficients by equating numerators or plugging in strategic values of xx

  5. Integrate each simpler fraction separately

Trigonometric integrals

These integrals involve powers and products of trig functions. The strategy depends on the specific form.

  • For sinm(x)cosn(x)dx\int \sin^m(x)\cos^n(x)\,dx: if one exponent is odd, peel off one factor and use a Pythagorean identity to convert the rest. If both are even, use half-angle identities like sin2(x)=1cos(2x)2\sin^2(x) = \frac{1 - \cos(2x)}{2}.
  • For integrals involving tan(x)\tan(x) and sec(x)\sec(x), similar strategies apply using the identity sec2(x)=1+tan2(x)\sec^2(x) = 1 + \tan^2(x).
  • The Weierstrass substitution u=tan(x2)u = \tan(\frac{x}{2}) can handle rational expressions in sin(x)\sin(x) and cos(x)\cos(x), though it's often a last resort because the algebra gets heavy.

The key with trig integrals is pattern recognition: identify which identity or substitution converts the integrand into something you already know how to handle.

Applications of integrals

Area between curves

To find the area enclosed between two curves f(x)f(x) and g(x)g(x):

  1. Find the intersection points by solving f(x)=g(x)f(x) = g(x)
  2. Determine which function is on top over the interval
  3. Integrate the difference: A=ab[f(x)g(x)]dxA = \int_a^b [f(x) - g(x)]\,dx, where f(x)g(x)f(x) \geq g(x) on [a,b][a, b]

If the curves cross within the interval, split the integral at each crossing point and take absolute values so you don't accidentally subtract area.

Volume of solids

Integration can compute volumes of solids of revolution (shapes formed by rotating a region around an axis). Three common methods:

  • Disk method: When the solid has no hole, slice it into thin disks perpendicular to the axis of rotation. V=πab[f(x)]2dxV = \pi \int_a^b [f(x)]^2\,dx
  • Washer method: When there's a gap between the curve and the axis (creating a hollow center), subtract the inner radius from the outer: V=πab([R(x)]2[r(x)]2)dxV = \pi \int_a^b \left([R(x)]^2 - [r(x)]^2\right)dx
  • Shell method: Slice the solid into thin cylindrical shells parallel to the axis of rotation. V=2πabxf(x)dxV = 2\pi \int_a^b x \cdot f(x)\,dx. This is often easier when rotating around a vertical axis but integrating with respect to xx.

Choosing the right method depends on the axis of rotation and which variable is more convenient to integrate over.

Riemann sums, Reading: The Definite Integral Applied to Area | Business Calculus

Arc length

The length of a curve y=f(x)y = f(x) from x=ax = a to x=bx = b is:

L=ab1+[f(x)]2dxL = \int_a^b \sqrt{1 + [f'(x)]^2}\,dx

This formula comes from the Pythagorean theorem applied to infinitesimally small segments of the curve. For parametric curves x=x(t),y=y(t)x = x(t), y = y(t), the formula becomes:

L=αβ(dxdt)2+(dydt)2dtL = \int_\alpha^\beta \sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2}\,dt

These integrals are often difficult to evaluate analytically, which is one reason numerical methods matter.

Surface area

When you rotate a curve y=f(x)y = f(x) around the x-axis, the surface area of the resulting solid is:

S=2πabf(x)1+[f(x)]2dxS = 2\pi \int_a^b f(x)\sqrt{1 + [f'(x)]^2}\,dx

The 2πf(x)2\pi f(x) factor represents the circumference of each circular "ring" traced out by the rotation, and the square root factor accounts for the slant of the surface. Be careful about which axis you're rotating around, as the formula changes accordingly.

Improper integrals

Improper integrals extend integration to situations where the interval is infinite or the integrand blows up. They're defined through limits, which means the integral might or might not produce a finite answer.

Infinite limits

When an integration bound is infinite, replace it with a variable and take a limit:

af(x)dx=limtatf(x)dx\int_a^\infty f(x)\,dx = \lim_{t \to \infty} \int_a^t f(x)\,dx

If this limit exists and is finite, the integral converges. Otherwise, it diverges.

For doubly infinite integrals, split at any convenient point: f(x)dx=cf(x)dx+cf(x)dx\int_{-\infty}^\infty f(x)\,dx = \int_{-\infty}^c f(x)\,dx + \int_c^\infty f(x)\,dx. Both pieces must converge independently.

Classic example: 11xpdx\int_1^\infty \frac{1}{x^p}\,dx converges when p>1p > 1 and diverges when p1p \leq 1. This is the p-test for integrals.

Discontinuous integrands

If f(x)f(x) has a discontinuity at some point cc in [a,b][a, b], split the integral there and use limits:

abf(x)dx=limϵ0+acϵf(x)dx+limϵ0+c+ϵbf(x)dx\int_a^b f(x)\,dx = \lim_{\epsilon \to 0^+} \int_a^{c - \epsilon} f(x)\,dx + \lim_{\epsilon \to 0^+} \int_{c + \epsilon}^b f(x)\,dx

Both limits must exist for the integral to converge. A common mistake is integrating straight through a discontinuity without noticing it, which can give a wrong answer.

Convergence vs divergence

Several tests help determine whether an improper integral converges:

  • Direct comparison test: If 0f(x)g(x)0 \leq f(x) \leq g(x) and g(x)dx\int g(x)\,dx converges, then f(x)dx\int f(x)\,dx converges too. If f(x)dx\int f(x)\,dx diverges, so does g(x)dx\int g(x)\,dx.
  • Limit comparison test: If limxf(x)g(x)=L\lim_{x \to \infty} \frac{f(x)}{g(x)} = L where 0<L<0 < L < \infty, then both integrals converge or both diverge.
  • p-test: 11xpdx\int_1^\infty \frac{1}{x^p}\,dx converges for p>1p > 1, diverges for p1p \leq 1.

Absolute convergence (convergence of f(x)dx\int |f(x)|\,dx) implies convergence of f(x)dx\int f(x)\,dx, but the reverse isn't always true.

Numerical integration

When you can't find a closed-form antiderivative, numerical methods let you approximate the integral to any desired accuracy.

Trapezoidal rule

Instead of rectangles (Riemann sums), use trapezoids to approximate the area under the curve. This captures the slope of the function between sample points.

With nn subintervals of width h=banh = \frac{b - a}{n}:

abf(x)dxh2[f(a)+2f(x1)+2f(x2)++2f(xn1)+f(b)]\int_a^b f(x)\,dx \approx \frac{h}{2}\left[f(a) + 2f(x_1) + 2f(x_2) + \cdots + 2f(x_{n-1}) + f(b)\right]

The first and last function values get weight 1; all interior points get weight 2. The error is proportional to h2h^2, meaning doubling the number of subintervals cuts the error roughly by a factor of 4.

Simpson's rule

Simpson's rule fits parabolas through consecutive groups of three points, giving a much better approximation than straight-line segments. It requires an even number of subintervals.

abf(x)dxh3[f(a)+4f(x1)+2f(x2)+4f(x3)++4f(xn1)+f(b)]\int_a^b f(x)\,dx \approx \frac{h}{3}\left[f(a) + 4f(x_1) + 2f(x_2) + 4f(x_3) + \cdots + 4f(x_{n-1}) + f(b)\right]

Notice the alternating pattern of coefficients: 1, 4, 2, 4, 2, ..., 4, 1. The error is proportional to h4h^4, so Simpson's rule converges much faster than the trapezoidal rule for smooth functions. In fact, Simpson's rule gives exact results for any polynomial of degree 3 or less.

Error estimation

Knowing how accurate your approximation is matters as much as the approximation itself.

  • Trapezoidal rule error is bounded by (ba)312n2maxf(x)\frac{(b-a)^3}{12n^2} \max|f''(x)|
  • Simpson's rule error is bounded by (ba)5180n4maxf(4)(x)\frac{(b-a)^5}{180n^4} \max|f^{(4)}(x)|

These bounds tell you how many subintervals you need to guarantee a desired accuracy. Adaptive quadrature methods take this further by automatically using more subintervals where the function changes rapidly and fewer where it's smooth. Richardson extrapolation combines results from different step sizes to squeeze out extra accuracy without additional function evaluations.

Multivariable integrals

Multivariable integrals extend everything above to functions of two or more variables. Instead of finding area under a curve, you're now finding volume under a surface, or mass of a 3D region, and so on.

Riemann sums, Riemann sum - Wikipedia

Double integrals

A double integral Df(x,y)dA\iint_D f(x, y)\,dA integrates a function of two variables over a region DD in the xy-plane.

You evaluate it as an iterated integral, integrating one variable at a time:

Df(x,y)dA=abg1(x)g2(x)f(x,y)dydx\iint_D f(x,y)\,dA = \int_a^b \int_{g_1(x)}^{g_2(x)} f(x,y)\,dy\,dx

The order of integration (dydxdy\,dx vs dxdydx\,dy) can dramatically affect difficulty. Always sketch the region DD to determine the best order and correct limits.

For regions with circular symmetry, converting to polar coordinates (x=rcosθx = r\cos\theta, y=rsinθy = r\sin\theta, dA=rdrdθdA = r\,dr\,d\theta) often simplifies things considerably.

Triple integrals

Triple integrals Ef(x,y,z)dV\iiint_E f(x,y,z)\,dV work the same way but with three nested integrals. They compute quantities like volume, mass, and moments of inertia for 3D regions.

Coordinate system choice is critical:

  • Cartesian (x,y,z)(x, y, z): best for rectangular regions
  • Cylindrical (r,θ,z)(r, \theta, z): best for regions with circular cross-sections; dV=rdrdθdzdV = r\,dr\,d\theta\,dz
  • Spherical (ρ,θ,ϕ)(\rho, \theta, \phi): best for regions with spherical symmetry; dV=ρ2sinϕdρdϕdθdV = \rho^2 \sin\phi\,d\rho\,d\phi\,d\theta

Setting up the limits of integration correctly is usually the hardest part. Draw the region and project it onto coordinate planes to figure out the bounds.

Change of variables

When a region or integrand has a natural symmetry that doesn't align with Cartesian coordinates, a change of variables can transform a difficult integral into a straightforward one.

The key ingredient is the Jacobian determinant, which accounts for how the transformation stretches or compresses area (or volume). For a transformation (x,y)(u,v)(x, y) \to (u, v):

dA=(x,y)(u,v)dudvdA = \left|\frac{\partial(x,y)}{\partial(u,v)}\right| du\,dv

The polar coordinate substitution is the most common example: the Jacobian rr in dA=rdrdθdA = r\,dr\,d\theta comes from this calculation. Cylindrical and spherical coordinate Jacobians work the same way.

Line and surface integrals

These integrals generalize integration to curves and surfaces in space, connecting calculus with vector field analysis.

Vector fields

A vector field assigns a vector to every point in a region of space. In 3D:

F(x,y,z)=P(x,y,z)i+Q(x,y,z)j+R(x,y,z)k\mathbf{F}(x, y, z) = P(x,y,z)\,\mathbf{i} + Q(x,y,z)\,\mathbf{j} + R(x,y,z)\,\mathbf{k}

Physical examples include gravitational fields, electric fields, and fluid velocity fields. Two important properties of vector fields are:

  • Divergence F\nabla \cdot \mathbf{F}: measures how much the field "spreads out" from a point (a scalar quantity)
  • Curl ×F\nabla \times \mathbf{F}: measures the rotational tendency of the field around a point (a vector quantity)

A field is conservative if it's the gradient of some scalar potential function, which happens exactly when its curl is zero (in a simply connected domain).

Green's theorem

Green's theorem connects a line integral around a closed curve in the plane to a double integral over the enclosed region:

C(Pdx+Qdy)=D(QxPy)dA\oint_C (P\,dx + Q\,dy) = \iint_D \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right) dA

The curve CC must be simple (no self-intersections), closed, and traversed counterclockwise. This theorem is powerful because it lets you convert a potentially difficult line integral into a double integral, or vice versa, depending on which is easier to compute.

Stokes' theorem

Stokes' theorem generalizes Green's theorem to surfaces in 3D:

S(×F)dS=CFdr\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} = \oint_C \mathbf{F} \cdot d\mathbf{r}

It says the surface integral of the curl of a vector field equals the line integral of the field around the boundary of that surface. The surface must be orientable (it has a well-defined "inside" and "outside"), and the boundary curve's orientation must be consistent with the surface orientation via the right-hand rule.

Green's theorem is actually a special case of Stokes' theorem where the surface is flat and lies in the xy-plane.

Integral transforms

Integral transforms re-express functions in a different "domain" where certain operations become simpler. They're especially useful for solving differential equations.

Laplace transform

The Laplace transform converts a function of time f(t)f(t) into a function of complex frequency ss:

L{f(t)}=F(s)=0estf(t)dt\mathcal{L}\{f(t)\} = F(s) = \int_0^\infty e^{-st}f(t)\,dt

Its main use: it turns differential equations into algebraic equations. You transform the equation, solve the (easier) algebraic problem, then apply the inverse Laplace transform to get back to the time domain. This is particularly effective for linear systems with initial conditions, since initial values get built right into the transformed equation.

Fourier transform

The Fourier transform decomposes a function into its frequency components:

F{f(t)}=F(ω)=f(t)eiωtdt\mathcal{F}\{f(t)\} = F(\omega) = \int_{-\infty}^\infty f(t)e^{-i\omega t}\,dt

Where the Laplace transform works with one-sided (t0t \geq 0) signals and complex frequency, the Fourier transform handles signals defined over all of (,)(-\infty, \infty) and decomposes them into real frequencies. It's foundational in signal processing, image analysis, and quantum mechanics. The computational versions (DFT and FFT) make it practical for digital applications.

Applications in differential equations

Both transforms simplify differential equations by converting them to a domain where calculus operations become algebra:

  • Laplace transforms are ideal for initial value problems (ODEs). Derivatives become multiplication by ss, so a second-order ODE becomes a quadratic equation in ss.
  • Fourier transforms excel at boundary value problems and PDEs, especially those on infinite domains (like the heat equation on an infinite rod).
  • The convolution theorem states that convolution in the time domain corresponds to multiplication in the transform domain, which simplifies integral equations significantly.
  • Green's functions and transfer functions use these transforms to characterize how systems respond to inputs.