Let I=[a,b]⊂RI=\left[a,b\right]\subset \mathbb{R} be a closed bounded interval. A partition of II is a finite set of bounded intervals contained in II such that every x∈Ix \in I lies in exactly one of the intervals. The intervals may be open, closed or half-open, and may be single points [x,x]={x}.[x,x]=\{x\}. For example, {[0,12),[12,1]}\{[0,\tfrac{1}{2}),[\tfrac{1}{2},1]\} is a partition of [0,1][0,1] whereas {[0,12],[12,1]}\{[0,\tfrac{1}{2}],[\tfrac{1}{2},1]\} is not, because 12\tfrac{1}{2} lies in both intervals. The lengths of the intervals in a partition of [a,b][a,b] sum to b−a.b-a.

Let I=[a,b]I=\left[a,b\right] be a closed bounded interval and PP and P′P' be partitions of I.I. The partition P′P' is a refinement of PP if and only if every interval in P′P' is contained in some interval in P.P.

Let I=[a,b]I=\left[a,b\right] be a closed bounded interval and PP and P′P' be partitions of I.I. The common refinement of PP and P′P' is the partition formed from the non-empty intersections J∩J′J\cap J' of intervals J∈PJ\in P and J′∈P′.J'\in P'. The common refinement is a refinement of both PP and P′.P'.

Let I=[a,b]I=\left[a,b\right] be a closed bounded interval, f:I→Rf:I\rightarrow\mathbb{R} be bounded and PP be a partition of I.I. The upper sum of ff with respect to PP is the sum over the non-empty intervals of PP of the supremum of ff on each interval weighted by the length of the interval. The lower sum of ff with respect to PP is the corresponding sum with the infimum in place of the supremum.

U(f,P):=∑J∈P, J≠∅(sup⁡x∈Jf(x))∣J∣U(f,P):=\sum_{J\in P,\,J\neq\varnothing}\left(\sup_{x\in J}f(x)\right)\lvert J\rvert L(f,P):=∑J∈P, J≠∅(inf⁡x∈Jf(x))∣J∣L(f,P):=\sum_{J\in P,\,J\neq\varnothing}\left(\inf_{x\in J}f(x)\right)\lvert J\rvert

Upper and lower sums have the following properties:

  • L(f,P)≤U(f,P)L(f,P)\leq U(f,P) for every partition P;P;
  • refining PP cannot increase the upper sum or decrease the lower sum;
  • by passing to a common refinement, L(f,P)≤U(f,P′)L(f,P)\leq U(f,P') for any two partitions PP and P′.P'.

Let I=[a,b]I=\left[a,b\right] be a closed bounded interval and f:I→Rf:I\rightarrow\mathbb{R} be bounded. The upper integral of ff on II is the infimum of the upper sums over all partitions of I,I, and the lower integral of ff on II is the supremum of the lower sums over all partitions of I.I.

∫ab‾f(x) dx:=inf⁡PU(f,P),∫ab‾f(x) dx:=sup⁡PL(f,P)\overline{\int_a^b}f(x)\,dx:=\inf_P U(f,P),\qquad\underline{\int_a^b}f(x)\,dx:=\sup_P L(f,P)

Let I=[a,b]I=\left[a,b\right] be a closed bounded interval and f:I→Rf:I\rightarrow\mathbb{R} be bounded. The function ff is Riemann integrable on II if and only if its upper and lower integrals are equal. Equivalently, ff is Riemann integrable on II if and only if for every ε>0\varepsilon>0 there exists a partition PP with U(f,P)−L(f,P)≤ε.U(f,P)-L(f,P)\leq\varepsilon. The set of Riemann integrable functions on [a,b][a,b] is written R[a,b].\mathcal{R}[a,b].

Let I=[a,b]I=\left[a,b\right] be a closed bounded interval and f∈R[a,b].f\in\mathcal{R}[a,b]. The Riemann integral of ff over II is the common value of the upper and lower integrals.

∫abf(x) dx:=∫ab‾f(x) dx=∫ab‾f(x) dx\int_a^b f(x)\,dx:=\overline{\int_a^b}f(x)\,dx=\underline{\int_a^b}f(x)\,dx

The function ff is the integrand, the numbers aa and bb are the limits of integration and xx is a dummy variable.

Let I=[a,b]I=\left[a,b\right] be a closed bounded interval and PP be a partition of I.I. A tagged partition is the partition PP together with a point ξJ∈J\xi_J\in J for each non-empty J∈P.J\in P.

Let I=[a,b]I=\left[a,b\right] be a closed bounded interval, f:I→Rf:I\rightarrow\mathbb{R} be bounded and PP be a tagged partition of I.I. The Riemann sum of ff with respect to PP is the sum of the values of ff at the tags weighted by the lengths of the intervals.

∑J∈P, J≠∅f(ξJ)∣J∣\sum_{J\in P,\,J\neq\varnothing}f\left(\xi_J\right)\lvert J\rvert

Every Riemann sum lies between L(f,P)L(f,P) and U(f,P),U(f,P), so if f∈R[a,b]f\in\mathcal{R}[a,b] then the Riemann sums converge to ∫abf(x) dx\int_a^b f(x)\,dx as the length of the longest interval in PP tends to 0.0.

Riemann integrable functions have the following properties:

  • if f:[a,b]→Rf:[a,b]\rightarrow\mathbb{R} is continuous, or bounded and monotonic, or bounded with finitely many discontinuities, then f∈R[a,b];f\in\mathcal{R}[a,b];
  • not every bounded function is Riemann integrable: the function on [0,1][0,1] equal to 11 at rational numbers and 00 at irrational numbers has lower integral 00 and upper integral 1.1.

Let f,g∈R[a,b],f,g\in\mathcal{R}[a,b], c∈Rc\in\mathbb{R} and a<d<b.a<d<b. The Riemann integral has the following properties:

∫ab(f(x)+g(x))dx=∫abf(x) dx+∫abg(x) dx,∫abc f(x) dx=c∫abf(x) dx\int_a^b\left(f(x)+g(x)\right)dx=\int_a^b f(x)\,dx+\int_a^b g(x)\,dx,\qquad\int_a^b c\,f(x)\,dx=c\int_a^b f(x)\,dx if  f(x)≤g(x)  ∀ x∈[a,b]  then  ∫abf(x) dx≤∫abg(x) dx\mathrm{if}\,\,f(x)\leq g(x)\,\,\forall\,x\in[a,b]\,\,\mathrm{then}\,\,\int_a^b f(x)\,dx\leq\int_a^b g(x)\,dx ∣∫abf(x) dx∣≤∫ab∣f(x)∣ dx\left\lvert\int_a^b f(x)\,dx\right\rvert\leq\int_a^b\lvert f(x)\rvert\,dx ∫abf(x) dx=∫adf(x) dx+∫dbf(x) dx\int_a^b f(x)\,dx=\int_a^d f(x)\,dx+\int_d^b f(x)\,dx (b−a)inf⁡x∈[a,b]f(x)≤∫abf(x) dx≤(b−a)sup⁡x∈[a,b]f(x)\left(b-a\right)\inf_{x\in[a,b]}f(x)\leq\int_a^b f(x)\,dx\leq\left(b-a\right)\sup_{x\in[a,b]}f(x)

The functions f g,f\,g, ∣f∣\lvert f\rvert and max⁡{f,g}\max\{f,g\} are also in R[a,b].\mathcal{R}[a,b]. By convention ∫aaf(x) dx=0\int_a^a f(x)\,dx=0 and ∫baf(x) dx=−∫abf(x) dx,\int_b^a f(x)\,dx=-\int_a^b f(x)\,dx, so that the additivity property holds for any ordering of a,a, bb and d.d.

Let fn∈R[a,b]f_n\in\mathcal{R}[a,b] be a sequence of functions that converges uniformly to ff on [a,b].[a,b]. Then f∈R[a,b]f\in\mathcal{R}[a,b] and the integrals converge.

∫abfn(x) dx→∫abf(x) dx\int_a^b f_n(x)\,dx\rightarrow\int_a^b f(x)\,dx

A uniformly convergent series of integrable functions may therefore be integrated term by term. In particular a power series may be integrated term by term over any closed interval inside its interval of convergence.

Let f:[a,b]→Rf:[a,b]\rightarrow\mathbb{R} be continuous. The mean value theorem for integrals states that ff equals its average value at some point of [a,b].[a,b].

∃ c∈[a,b]:f(c)=1b−a∫abf(x) dx\exists\,c\in[a,b] : f(c)=\frac{1}{b-a}\int_a^b f(x)\,dx

Let f∈R[a,b].f\in\mathcal{R}[a,b]. The integral function of ff is the function F:[a,b]→RF:[a,b]\rightarrow\mathbb{R} obtained by integrating ff up to a variable upper limit.

F(x):=∫axf(t) dtF(x):=\int_a^x f(t)\,dt

Let f∈R[a,b]f\in\mathcal{R}[a,b] with integral function F.F. The first fundamental theorem of calculus states that FF is Lipschitz continuous on [a,b][a,b] and that FF is differentiable at every x0∈[a,b]x_0\in[a,b] at which ff is continuous, with derivative f(x0).f(x_0).

F′(x0)=f(x0)F'(x_0)=f(x_0)

Let f:[a,b]→Rf:[a,b]\rightarrow\mathbb{R} be a function. An antiderivative or primitive of ff on [a,b][a,b] is a function F:[a,b]→RF:[a,b]\rightarrow\mathbb{R} that is differentiable on [a,b][a,b] with F′=f.F'=f. Antiderivatives have the following properties:

  • by the mean value theorem, any two antiderivatives of ff on [a,b][a,b] differ by a constant;
  • by the first fundamental theorem of calculus, every continuous function on [a,b][a,b] has an antiderivative.

Let f:[a,b]→Rf:[a,b]\rightarrow\mathbb{R} be a function with an antiderivative F.F. The indefinite integral of f,f, written ∫f(x) dx=F(x)+C,\int f(x)\,dx=F(x)+C, is the family of all antiderivatives of f.f. The number C∈RC\in\mathbb{R} is the constant of integration.

Let f∈R[a,b]f\in\mathcal{R}[a,b] and FF be an antiderivative of ff on [a,b].[a,b]. The second fundamental theorem of calculus states that the integral of ff is the net change in F.F.

∫abf(x) dx=F(b)−F(a)=:[F(x)]ab\int_a^b f(x)\,dx=F(b)-F(a)=:\Big[F(x)\Big]_a^b

Together the two fundamental theorems state that differentiation and integration are inverse operations, up to a constant. The following common antiderivatives are valid on any interval where the integrand is defined:

∫xn dx=xn+1n+1+C  (n≠−1),∫1x dx=log⁡e∣x∣+C,∫ex dx=ex+C\int x^n\,dx=\frac{x^{n+1}}{n+1}+C\,\,\left(n\neq -1\right),\qquad\int\frac{1}{x}\,dx=\log_e\lvert x\rvert+C,\qquad\int e^x\,dx=e^x+C ∫sin⁡x dx=−cos⁡x+C,∫cos⁡x dx=sin⁡x+C\int\sin x\,dx=-\cos x+C,\qquad\int\cos x\,dx=\sin x+C

Let f,g∈C1[a,b].f,g\in C^1[a,b]. Integration by parts is the product rule in integral form.

∫abf(x) g′(x) dx=[f(x) g(x)]ab−∫abf′(x) g(x) dx\int_a^b f(x)\,g'(x)\,dx=\Big[f(x)\,g(x)\Big]_a^b-\int_a^b f'(x)\,g(x)\,dx

Let φ∈C1[α,β]\varphi\in C^1[\alpha,\beta] have image φ([α,β])⊆[a,b]\varphi([\alpha,\beta])\subseteq[a,b] and ff be continuous on [a,b].[a,b]. Integration by substitution is the chain rule in integral form.

∫αβf(φ(t))φ′(t) dt=∫φ(α)φ(β)f(x) dx\int_{\alpha}^{\beta}f\left(\varphi(t)\right)\varphi'(t)\,dt=\int_{\varphi(\alpha)}^{\varphi(\beta)}f(x)\,dx

Let g:[a,∞)→Rg:[a,\infty)\rightarrow\mathbb{R} be a function and L∈R.L\in\mathbb{R}. The function gg has the limit LL as c→∞,c\rightarrow\infty, written lim⁡c→∞g(c)=L,\lim_{c\rightarrow\infty}g(c)=L, if and only if for every ε>0\varepsilon>0 there exists MM such that ∣g(c)−L∣≤ε\lvert g(c)-L\rvert\leq\varepsilon for all c>M.c>M.

Let f:[a,∞)→Rf:[a,\infty)\rightarrow\mathbb{R} be a function with f∈R[a,c]f\in\mathcal{R}[a,c] for every c>a.c>a. The improper integral of ff over [a,∞)[a,\infty) is the limit of the integrals over [a,c][a,c] as c→∞.c\rightarrow\infty.

∫a∞f(x) dx:=lim⁡c→∞∫acf(x) dx\int_a^{\infty}f(x)\,dx:=\lim_{c\rightarrow\infty}\int_a^c f(x)\,dx

The improper integral converges if and only if this limit exists, and diverges otherwise. The improper integral ∫−∞bf(x) dx\int_{-\infty}^b f(x)\,dx is defined in the same way. The improper integral ∫−∞∞f(x) dx=∫−∞df(x) dx+∫d∞f(x) dx\int_{-\infty}^{\infty}f(x)\,dx=\int_{-\infty}^d f(x)\,dx+\int_d^{\infty}f(x)\,dx converges if and only if both integrals on the right converge for some, and hence every, d∈R.d\in\mathbb{R}.

Let f:(a,b]→Rf:(a,b]\rightarrow\mathbb{R} be a function with f∈R[c,b]f\in\mathcal{R}[c,b] for every c∈(a,b),c\in(a,b), which allows ff to be unbounded near a.a. The improper integral of ff over (a,b](a,b] is the limit of the integrals over [c,b][c,b] as cc decreases to a.a.

∫abf(x) dx:=lim⁡c→a, c>a∫cbf(x) dx\int_a^b f(x)\,dx:=\lim_{c\rightarrow a,\,c>a}\int_c^b f(x)\,dx

The improper integral of a function unbounded near bb is defined in the same way. For example,

∫1∞1xp dx=1p−1  converges  if and only if  p>1\int_1^{\infty}\frac{1}{x^p}\,dx=\frac{1}{p-1}\,\,\mathrm{converges}\,\,\mathrm{if}\,\mathrm{and}\,\mathrm{only}\,\mathrm{if}\,\,p>1 ∫011xp dx=11−p  converges  if and only if  p<1.\int_0^1\frac{1}{x^p}\,dx=\frac{1}{1-p}\,\,\mathrm{converges}\,\,\mathrm{if}\,\mathrm{and}\,\mathrm{only}\,\mathrm{if}\,\,p<1.

Let ∫f(x) dx\int f(x)\,dx be an improper integral. The improper integral is absolutely convergent if and only if ∫∣f(x)∣ dx\int\lvert f(x)\rvert\,dx converges. An absolutely convergent improper integral converges.

Let ff and gg be functions on the same range of integration. The comparison test for integrals states that if ∣f(x)∣≤g(x)\lvert f(x)\rvert\leq g(x) on the range of integration and ∫g(x) dx\int g(x)\,dx converges then ∫f(x) dx\int f(x)\,dx is absolutely convergent.

The Gaussian integral is the improper integral of e−x2e^{-x^2} over R.\mathbb{R}.

∫−∞∞e−x2 dx=π\int_{-\infty}^{\infty}e^{-x^2}\,dx=\sqrt{\pi}

A rectangle in Rn\mathbb{R}^n is a Cartesian product R=[a1,b1]×⋯×[an,bn]R=\left[a_1,b_1\right]\times\cdots\times\left[a_n,b_n\right] of nn closed bounded intervals. The volume of RR is the product of the lengths of its sides.

∣R∣:=∏i=1n(bi−ai)\lvert R\rvert:=\prod_{i=1}^{n}\left(b_i-a_i\right)

Let R=[a1,b1]×⋯×[an,bn]R=\left[a_1,b_1\right]\times\cdots\times\left[a_n,b_n\right] be a rectangle. A grid partition of RR is a set of rectangles of the form J1×⋯×JnJ_1\times\cdots\times J_n where JiJ_i ranges over the intervals of a partition of [ai,bi]\left[a_i,b_i\right] for each i.i.

Let R⊂RnR\subset\mathbb{R}^n be a rectangle and f:R→Rf:R\rightarrow\mathbb{R} be bounded. The upper and lower sums of ff with respect to a grid partition, the upper and lower integrals of ff and the multiple integral of ff over R,R, written ∫Rf(x‾) dx‾,\int_R f(\underline{x})\,d\underline{x}, are defined exactly as in the univariate case with lengths of intervals replaced by volumes of rectangles. The multiple integral has the following properties:

  • continuous functions on RR are integrable;
  • the multiple integral is linear and monotonic;
  • the multiple integral is additive over rectangles that overlap only on their boundaries.

Let D⊆Rn.D\subseteq\mathbb{R}^n. The indicator function of DD is the function 1D:Rn→{0,1}\mathbf{1}_D:\mathbb{R}^n\rightarrow\{0,1\} that is 11 on DD and 00 elsewhere.

Let D⊆RnD\subseteq\mathbb{R}^n be a bounded set, RR be a rectangle containing DD and f:D→Rf:D\rightarrow\mathbb{R} be a function. The integral of ff over DD is the integral over RR of ff multiplied by the indicator function of D,D, whenever this integral exists.

∫Df(x‾) dx‾:=∫Rf(x‾) 1D(x‾) dx‾\int_D f(\underline{x})\,d\underline{x}:=\int_R f(\underline{x})\,\mathbf{1}_D(\underline{x})\,d\underline{x}

The volume of DD is ∫D1 dx‾.\int_D 1\,d\underline{x}.

Let R=[a,b]×[c,d]R=[a,b]\times[c,d] be a rectangle in R2\mathbb{R}^2 and f:R→Rf:R\rightarrow\mathbb{R} be continuous. The iterated integrals of ff over RR are the integrals obtained by integrating one variable at a time in either order. Fubini’s theorem states that the multiple integral of ff equals both iterated integrals.

∫Rf(x,y) d(x,y)=∫ab(∫cdf(x,y) dy)dx=∫cd(∫abf(x,y) dx)dy\int_R f(x,y)\,d(x,y)=\int_a^b\left(\int_c^d f(x,y)\,dy\right)dx=\int_c^d\left(\int_a^b f(x,y)\,dx\right)dy

Fubini’s theorem extends to continuous functions on rectangles in Rn,\mathbb{R}^n, which can be integrated one coordinate at a time in any order, and to integrable functions whose iterated integrals exist. On a non-rectangular region the limits of the inner integral depend on the outer variable. For example, if D={(x,y):a≤x≤b, g1(x)≤y≤g2(x)}D=\{(x,y):a\leq x\leq b,\,g_1(x)\leq y\leq g_2(x)\} for continuous g1≤g2g_1\leq g_2 then ∫Df(x,y) d(x,y)=∫ab∫g1(x)g2(x)f(x,y) dy dx.\int_D f(x,y)\,d(x,y)=\int_a^b\int_{g_1(x)}^{g_2(x)}f(x,y)\,dy\,dx.

Let U,V⊆RnU,V\subseteq\mathbb{R}^n be open sets, φ‾:U→V\underline{\varphi}:U\rightarrow V be a bijection such that φ‾\underline{\varphi} and φ‾−1\underline{\varphi}^{-1} are both continuously differentiable and f:V→Rf:V\rightarrow\mathbb{R} be integrable. The change of variables theorem states that

∫Vf(y‾) dy‾=∫Uf(φ‾(x‾))∣det⁡Jφ‾(x‾)∣ dx‾.\int_V f(\underline{y})\,d\underline{y}=\int_U f\left(\underline{\varphi}(\underline{x})\right)\left\lvert\det J_{\underline{\varphi}}(\underline{x})\right\rvert\,d\underline{x}.

The factor ∣det⁡Jφ‾(x‾)∣,\left\lvert\det J_{\underline{\varphi}}(\underline{x})\right\rvert, the absolute value of the determinant of the Jacobian matrix of φ‾,\underline{\varphi}, is the factor by which φ‾\underline{\varphi} scales volume near x‾.\underline{x}. In two dimensions this factor is

∣det⁡Jφ‾(x‾)∣=∣∂φ1∂x1∂φ2∂x2−∂φ1∂x2∂φ2∂x1∣.\left\lvert\det J_{\underline{\varphi}}(\underline{x})\right\rvert=\left\lvert\frac{\partial\varphi_1}{\partial x_1}\frac{\partial\varphi_2}{\partial x_2}-\frac{\partial\varphi_1}{\partial x_2}\frac{\partial\varphi_2}{\partial x_1}\right\rvert.

Polar coordinates are the change of variables φ‾(r,θ)=(rcos⁡θ,rsin⁡θ)\underline{\varphi}(r,\theta)=\left(r\cos\theta,r\sin\theta\right) on R2,\mathbb{R}^2, which has ∣det⁡Jφ‾(r,θ)∣=r,\left\lvert\det J_{\underline{\varphi}}(r,\theta)\right\rvert=r, so that

∫R2f(x,y) d(x,y)=∫02π∫0∞f(rcos⁡θ,rsin⁡θ)r dr dθ.\int_{\mathbb{R}^2}f(x,y)\,d(x,y)=\int_0^{2\pi}\int_0^{\infty}f\left(r\cos\theta,r\sin\theta\right)r\,dr\,d\theta.

Applied to f(x,y)=e−x2−y2,f(x,y)=e^{-x^2-y^2}, polar coordinates evaluate the Gaussian integral.