For real , defineThe integrand is positive and at most , so and the improper integral converges. Substituting also gives in terms of the exponential integral; the original representation makes positivity and the large- behavior transparent.
Apply the exact finite geometric series identity inside the integral, without assuming that an infinite series can be integrated term by term:The Gamma integral gives . Therefore, with retained terms,This remainder formula proves the asymptotic expansion at every fixed order: as . Its sign also gives alternating bounds: an odd overestimates , and an even underestimates it.
At , an independent evaluation of the integral gives . Three retained terms giveFive retained terms give with error bounded by . The actual errors are about and , respectively. The error bound is conservative, but established without relying on the numerical integral evaluation.
Nevertheless, the formal infinite series diverges at every fixed . The magnitudes satisfy , so they eventually increase without bound. In particular, the terms fail the necessary zero-term condition for a convergent series. The finite remainder identity remains valid after convergence has failed; this is precisely what makes the example useful.
Change of variables formula Created 2026-09-24 Updated 2026-10-14
The change of variables formula expresses an integral in coordinates that make its integrand or its region simpler. Three ingredients change together: the region, the function being integrated, and the element of area or volume. The last change is measured by the absolute Jacobian determinant; forgetting it amounts to counting transformed cells as though their sizes had stayed the same.
In one dimension, substitution is the integrated chain rule. If is continuously differentiable on and is continuous on its image, thenThese are directed definite integrals: if decreases, the transformed endpoints reverse. This identity does not require to be injective, because an antiderivative composed with already accounts for any backtracking.[ref]
For a concrete computation, set , so . The endpoints become :The numerator is precisely the derivative of the expression in the denominator. Substitution reveals the familiar natural logarithm hidden inside this rational function. Keeping the original endpoints after changing the integrand would describe a different integral.
For the elementary two-dimensional theorem, let be a diffeomorphism between open sets in the plane, let be a bounded region with piecewise smooth boundary, and let be continuous on , with the displayed integrals finite. ThenHere is the Jacobian matrix. The diffeomorphism assumption means a bijection with a continuously differentiable inverse, and ensures a nonzero Jacobian determinant. This excludes overlapping sheets; the more general area formula handles multiplicity.[ref]
Take and the linear mapIts inverse is . The square becomes a parallelogram with vertices : base two, height one, area two. Consequently . A nonconstant integrand changes too: .
The direction of the map matters when selecting the factor. Here goes from the new coordinates to the original coordinates, so the factor is two. Its inverse has Jacobian determinant , appropriate for converting area in the opposite direction. Writing down the map before computing its Jacobian matrix prevents a reciprocal-factor error.
A unit square becomes a parallelogram of area two; reflection changes the determinant sign but preserves area
. Details. Now reflect the image vertically: has Jacobian determinant , but still produces area two. The sign records reversal of the orientation of a vector space; ordinary area uses its absolute value. For oriented differential forms, the pullback of a differential form instead retains the signed determinant.[ref]
https://math.mit.edu/classes/18.952/spring2013/docs/book.pdf. MIT 18.952 notes: Integration of forms, Chapter 3
The geometric beauty is that a nonlinear differentiable map has a local linear approximation: tiny rectangles behave approximately like these parallelograms. Summing their scaled contributions gives the change of variables formula. In polar coordinates this factor is , explaining ; equal angular steps cover more area farther from the origin. Choosing suitable coordinates can simplify both the boundary and the integrand.[ref]
Definite integral 2026-10-14
A definite integral accumulates an integrand between specified endpoints, retaining the sign of each contribution. For a real-valued function on a finite real interval, a finite definite integral is a scalar; an indefinite integral describes a family of antiderivatives. The lower and upper limits of integration specify where accumulation starts and ends. The integration variable is a placeholder: .
This is useful whenever a varying rate must be converted into a total change. For motion along a straight line with continuous velocity and position satisfying , the fundamental theorem of calculus gives displacement, while accumulating speed gives the distance traveled from velocity:Negative velocity reduces displacement while adding to the distance traveled from velocity. The physical dimension of a definite integral is the product of the integrand's physical dimension and the integration variable's physical dimension: here . An area on a rate graph need not be a spatial area.[ref]
5.4 Integration Formulas and the Net Change Theorem. Theorem 5.6 and the displacement and total-distance discussion
As an explicitly synthetic motion model, let for , with . Using numerical values in seconds and metres, an antiderivative gives . The velocity changes sign at : the model first moves m in the negative direction, then m in the positive direction. Its displacement is m, and its distance traveled from velocity is m. The initial position fixes the constant of integration, but does not change either accumulated quantity.
Synthetic variable velocity model with displacement 3 metres and distance traveled 5 metres over three seconds
. Details. Orientation matters independently of whether the integrand is positive or negative. For a function integrable on the interval containing the endpoints, use the conventionsFor the preceding velocity model, accumulation from seconds back to seconds gives m. Reversing the bounds of the speed integral gives m, which is an oriented integral, not a negative distance traveled from velocity; physical elapsed-time totals use the earlier endpoint first. The splitting rule holds even when is outside the interval between and , provided integrability holds on the interval containing all three endpoints.[ref]
Existence needs hypotheses. For a bounded function on with , a finite Riemann integral exists when every tagged Riemann sum approaches the same value as the largest cell width tends to zero:The limit must be independent of both the partition of an interval and the tags. Merely making the number of cells large can leave a wide cell unresolved. On a finite closed interval, every continuous function, and every bounded function that is continuous except at finitely many points, is Riemann integrable.[ref] Boundedness alone is insufficient: the Dirichlet function on is on the rational numbers and on the irrational numbers. Tags can all be chosen rational or all irrational, giving Riemann sums of or at arbitrarily small cell widths.[ref]
For a finite signed Lebesgue integral, the condition is instead that be a measurable function for Lebesgue measure and . A measurable function for Lebesgue measure that is also a bounded function on a finite interval satisfies this condition since gives . The Dirichlet function therefore has Lebesgue integral zero: the rational numbers form a null set, so it equals zero Lebesgue almost everywhere. The Riemann integral and Lebesgue integral agree for the continuous functions used in the diagrams.[ref]
Lecture 12: Lebesgue Integrable Functions, the Lebesgue Integral and the Dominated Convergence Theorem. Definition 120, Proposition 123(2), Remark 124 and Theorem 126
An unbounded integrand or infinite endpoint requires further analysis, for example the limits defining an improper integral; the notation alone does not establish convergence. Error function Created 2026-09-24 Updated 2026-10-14
The error function records the signed area under a Gaussian function between zero and a variable endpoint:For a negative real number , reversing the integration limits makes this integral negative. The normalization uses the Gaussian integral: the full area of is , so its positive half contributes one after multiplication by . The same definition extends to a complex number along any path from zero to , giving an entire function.[ref]
For example, , , and . A finite positive endpoint captures only part of the positive Gaussian integral; approaches one as but never reaches it at a finite real .
The useful idea is to name a recurring integral once instead of carrying it through every calculation. The error function and the normal distribution express probabilities and quantiles through this area, while an error-function diffusion front describes how diffusion smooths a sharp jump. The complementary error function retains the small area left in the tail.
The fundamental theorem of calculus givesThus the real-axis error function is strictly increasing, with values in . Its integrand is an even function, so the error function is an odd function, . The derivative also gives : the curve is concave for and convex for . These real-axis properties do not imply boundedness throughout the complex plane; the existing quadrant asymptotics of the error function describe a different behavior in other directions.
For any finite set of quadrature nodes in , , consider the polynomialEvery sample is zero, so every quadrature rule at these quadrature nodes gives . Yet is nonnegative and strictly positive away from its finitely many polynomial roots; its continuity makes the integral positive. Consequently the smooth functions and have identical samples but definite integrals and . Multiplying by any positive constant makes the difference arbitrarily large. This is an information limit, even with exact arithmetic; merely assuming smoothness without quantitative bounds does not remove it. The related degree ceiling for quadrature exactness uses the same squared nodal polynomial to limit polynomial exactness.
For example, the endpoint quadrature nodes give , , and . Both the zero function and produce zero under the one-panel trapezoidal rule, although . More generally, any estimate based only on their shared samples has absolute error at least for one of these two integrands, by the triangle inequality.
The obstruction also applies to a deterministic adaptive procedure that terminates after finitely many evaluations on the zero function: form using every quadrature node it visited. On , the same zero responses lead to the same choices and answer. Certified quadrature error control therefore needs additional information, such as a known bound on relevant derivatives, rather than agreement among sampled approximations alone.
Gamma integral Created 2026-09-28 Updated 2026-10-14
For real and , the change of variables in the defining improper integral for the Gamma function givesThe improper integral converges absolutely: near zero its absolute integrand behaves like , and at infinity the exponential function overcomes every fixed power.[ref]
For real and , the integrands are , , and , with total areas , , and . The third integrand is taller and has six times the area of the first, although the exponential function makes each tail decay.
Gamma integral kernels for shapes 1, 2, and 4 have total areas 1, 1, and 6 before probability normalization
. Details. For real , the kernel becomes the probability density function of a Gamma distribution with shape and unit rate only after division by its normalizing constant . In particular, the shape-four probability density function is . More generally, the Gamma integral verifies that integrates to one for shape and rate .
For the half-integer evaluation, the change of variables reduces the Gamma integral to the Gaussian integral:Consequently, for real ,
Integrand 2026-10-14
In , the function is the integrand. It is distinct from the integration variable, the bounds and the resulting integral. In contour integration, the transformed integrand includes the parametrization derivative.
Midpoint quadrature rule Created 2026-10-03 Updated 2026-10-14
The midpoint quadrature rule replaces the integrand on , , by its value halfway across the interval:Geometrically, is the signed area of a rectangle with width and height . Its single quadrature node is and its quadrature weight is . Sampling in the interior is useful when endpoint evaluation is inconvenient, although an endpoint singularity can invalidate the quadrature error estimates below.
The midpoint quadrature rule is exact for every affine function : the average height over an interval equals its midpoint height. For example, on , gives and . Positive and negative area discrepancies cancel for a sloping straight line. For the polynomial on , however, and , giving approximation error . Thus its degree of precision of a quadrature rule is exactly one.[ref]
5.8 Numerical Integration. §5.8, printed p. 223: midpoint rectangles, linear exactness and signed quadratic errors
For the polynomial on , four panels give composite midpoint quadrature rule value and composite trapezoidal rule value , bracketing the exact integral . Individual midpoint rectangles can cross the curve; it is their total signed area that underestimates the integral.
For , meaning that its first two derivatives exist and are continuous functions on the closed interval, the signed approximation error has the formHence a convex function with is underestimated, and a concave function with is overestimated. A short justification uses the Taylor formula with integral remainder: writing , it gives , where for and for . This nonnegative Peano kernel has integral , so the weighted mean value theorem for integrals gives the stated sign and coefficient.
Numerical integration Created 2026-10-03 Updated 2026-10-14
Numerical integration approximates a definite integral using finitely many sampled function values. For an integrand on a finite interval , , a quadrature rule has the formThe quadrature nodes tell us where to evaluate ; the quadrature weights turn those values into an approximation to the accumulated signed area. The exact definite integral depends on the integrand throughout the interval, whereas the quadrature rule sees only these samples. Integrating a chosen interpolant exactly still generally approximates the original integrand's integral.[ref]
5.6 Numerical integration. Definition 5.6.1 and §5.6.1, equations 5.6.2–5.6.5: weighted samples and integration of an interpolant
The fundamental theorem of calculus evaluates as when an antiderivative is available. Numerical integration is useful when no convenient antiderivative is known, or each evaluation of the integrand requires an expensive computation. The task then becomes choosing informative quadrature nodes and controlling the quadrature error with as few evaluations as possible. Fixed data also permit a quadrature rule, but refinement cannot supply new information between observations.[ref]
5.6 Numerical integration. Opening discussion, Example 5.6.1 and the paragraph following Definition 5.6.1: antiderivatives, numerical evaluation and fixed data
For an exact comparison, take the polynomial on . Its antiderivative gives . On a partition of an interval into equal panels, the composite midpoint quadrature rule uses midpoint samples, each with quadrature weight ; the composite trapezoidal rule uses endpoint samples, with outer quadrature weights and interior quadrature weights . The existing derivations under these two quadrature rules giveIn particular, and already bracket ; two panels give and . The convex function explains the opposite signs. A midpoint rectangle can cross the curve within its panel, so its total signed area, rather than pointwise ordering, determines the underestimate.
One and two panels for numerical integration of : midpoint and endpoint samples with their quadrature weights
. Details. Define the signed approximation error as . In this example the absolute errors are and : doubling reduces each by exactly four. A plot with both axes on a logarithmic scale therefore has slope , expressing order two with respect to panel refinement. This is an exact calculation for this polynomial, including , rather than an observed rate extrapolated from a few computed answers.
Exact absolute errors for midpoint and trapezoidal numerical integration of : slope and a factor-four reduction
. Details. For a general integrand, the composite midpoint quadrature rule and composite trapezoidal rule give second-order quadrature error bounds when has two continuous derivatives on and a known bound on . These hypotheses describe behavior between samples. A formal error formula containing an unknown derivative is not a numerical accuracy certificate or a justified sample count. Finite samples do not certify quadrature accuracy makes the missing information explicit. Errors in the evaluations and roundoff error must also be considered; noise sensitivity of a quadrature rule treats the former.
More elaborate choices exploit other information: Gaussian quadrature obtains high polynomial exactness from carefully chosen quadrature nodes, and Simpson's rule uses a quadratic interpolant. Adaptive numerical integration compares approximations and concentrates samples where they disagree, often saving evaluations. Such a difference is an error estimate, not a certified bound without further assumptions: both approximations can miss the same feature.[ref]
5.7 Adaptive integration. Fundamentals of Numerical Computation by Tobin A. Driscoll and others; §5.7.1, equation 5.7.4: a difference-based error estimate; §5.7.2: interval bisection; Example 5.7.2 and concluding discussion: requested accuracy is not guaranteed







