Salta al contenuto
Note per Studenti The Riemann Integral Report

The Riemann Integral

In questa pagina 9

Prerequisites: finite sums (summation notation), limits of sequences.

Goal: the area under a graph

The main purpose of the definite integral is to compute areas of plane regions bounded by curves.

Definition (trapezoid). Let f:[a,b]→Rf: [a, b] \to \mathbb{R} be bounded with f(x)≥0f(x) \ge 0 on [a,b][a, b]. The trapezoid of ff is the region between the graph and the xx-axis: T={(x,y)∈R2:x∈[a,b], 0≤y≤f(x)}T = \{(x, y) \in \mathbb{R}^2 : x \in [a, b],\ 0 \le y \le f(x)\}

Example. For f(x)=xf(x) = x on [0,2][0, 2] the trapezoid is the triangle with vertices (0,0)(0, 0), (2,0)(2, 0), (2,2)(2, 2), of area 2⋅22=2\frac{2\cdot2}{2} = 2.

We want to define and then compute its area ∣T∣|T|. The idea:

  1. split [a,b][a, b] into nn equal pieces;
  2. on each piece build a rectangle as tall as ff at a chosen point of the piece;
  3. the sum of the areas approximates ∣T∣|T|; as n→+∞n \to +\infty the rectangles get thinner and the approximation better: the limit is the area.

Definition (Cauchy-Riemann sums)

Let f:[a,b]→Rf: [a, b] \to \mathbb{R} be bounded (no longer necessarily ≥0\ge 0). For n∈N∗n \in \mathbb{N}^*:

1. Equal subdivision. Each piece has length h=b−anh = \frac{b - a}{n} and the division points are x0=a, x1=a+h, …, xi=a+ih, …, xn=a+nh=b.x_0 = a,\ x_1 = a + h,\ \dots,\ x_i = a + ih,\ \dots,\ x_n = a + nh = b.

2. Cauchy-Riemann sum. In each [xi−1,xi][x_{i-1}, x_i] choose a point cic_i arbitrarily and define Snf=∑i=1nf(ci)(xi−xi−1)=∑i=1nf(ci)b−an.S_n^f = \sum_{i=1}^n f(c_i)(x_i - x_{i-1}) = \sum_{i=1}^n f(c_i)\frac{b - a}{n}. If f≥0f \ge 0, each term is the area of the rectangle of base [xi−1,xi][x_{i-1}, x_i] and height f(ci)f(c_i).

3. The limit. There are many sequences (Snf)n(S_n^f)_n, one for each way of choosing the cic_i.

Definition (Riemann integral). If all the sequences (Snf)n(S_n^f)_n have a limit, and these limits are finite and equal (independent of the choice of the cic_i), ff is Riemann integrable on [a,b][a, b] and the common value is the definite integral: ∫abf(x) dx=lim⁡n→+∞Snf.\int_a^b f(x)\,dx = \lim_{n \to +\infty} S_n^f.

Example. ∫01x dx\int_0^1 x\,dx: with ci=inc_i = \frac in, Snf=n+12n→12S_n^f = \frac{n+1}{2n} \to \frac12.

The limit must not depend on the cic_i so that it is a property of ff (the area), not of the choice made.

Notation. The sign ∫\int is an elongated S (sum); f(x)f(x) stands for f(ci)f(c_i) and dxdx for the base xi−xi−1x_i - x_{i-1}. The letter xx is a dummy variable: ∫abf(x) dx=∫abf(t) dt\int_a^b f(x)\,dx = \int_a^b f(t)\,dt.

Geometric meaning

Let ff be integrable on [a,b][a, b].

  1. If f≥0f \ge 0: ∫abf dx=∣T∣\int_a^b f\,dx = |T|, the area of the trapezoid.
  2. If f≤0f \le 0: every term is minus the area of a rectangle below the axis, so ∫abf dx=−∣T∣\int_a^b f\,dx = -|T|.
  3. If ff has any sign, with T+T^+ the part of the region above the axis and T−T^- below: ∫abf(x) dx=∣T+∣−∣T−∣.\int_a^b f(x)\,dx = |T^+| - |T^-|. The integral is a signed area. For sin⁡x\sin x on [0,2π][0, 2\pi] the two humps are equal by symmetry, so ∫02πsin⁡x dx=0\int_0^{2\pi}\sin x\,dx = 0 although the total shaded area is not zero.

Equivalent definition (lower and upper sums)

Let ff be bounded on [a,b][a, b].

  1. Take an arbitrary subdivision a=x0<x1<⋯<xn=ba = x_0 < x_1 < \dots < x_n = b (pieces may have different widths).
  2. On each [xi−1,xi][x_{i-1}, x_i] let mi=inf⁡fm_i = \inf f and Mi=sup⁡fM_i = \sup f (real numbers because ff is bounded). Define the lower and upper sum sn=∑i=1nmi(xi−xi−1),Sn=∑i=1nMi(xi−xi−1).s_n = \sum_{i=1}^n m_i(x_i - x_{i-1}), \qquad S_n = \sum_{i=1}^n M_i(x_i - x_{i-1}). If f≥0f \ge 0, sns_n approximates ∣T∣|T| from below and SnS_n from above; always sn≤Sns_n \le S_n.
  3. If, over all subdivisions, sup⁡{sn}\sup\{s_n\} and inf⁡{Sn}\inf\{S_n\} are finite and equal, ff is integrable and ∫abf dx=inf⁡{Sn}=sup⁡{sn}\int_a^b f\,dx = \inf\{S_n\} = \sup\{s_n\}.

The true area lies between every approximation from below and every one from above; if the best ones of each kind "touch", the number in between is unique.

The definitions are not for computing

Computing a limit of Cauchy-Riemann sums is hard even for very simple functions. To compute integrals one uses the fundamental theorem of calculus (Antiderivatives and the Fundamental Theorem of CalculusAn antiderivative (primitive) of f is a function G with G' = f; two antiderivatives differ by a constant and the indefinite integral is the set of all of them. The integral function F_a(x) = integral from a to x of f is an antiderivative of f (second fundamental theorem), hence the integral from a to b of f equals G(b) - G(a) for any antiderivative G (first fundamental theorem).Antiderivatives and the Fundamental Theorem of Calculus →). Two simple cases can be done by definition.

Example 1: constant. f(x)=cf(x) = c: every Snf=n⋅c⋅b−an=c(b−a)S_n^f = n\cdot c\cdot\frac{b-a}{n} = c(b - a), so ∫abc dx=c(b−a)\int_a^b c\,dx = c(b - a).

Example 2: f(x)=xf(x) = x on [0,1][0, 1]. Here h=1nh = \frac1n, xi=inx_i = \frac in. Since ff is continuous it is integrable, so one choice suffices: ci=xi=inc_i = x_i = \frac in, Snf=∑i=1nin⋅1n=1n2⋅n(n+1)2=n+12n→12,S_n^f = \sum_{i=1}^n\frac in\cdot\frac1n = \frac1{n^2}\cdot\frac{n(n+1)}{2} = \frac{n+1}{2n} \to \frac12, using 1+2+⋯+n=n(n+1)21 + 2 + \dots + n = \frac{n(n+1)}{2}. This is the area of the triangle (0,0)(0,0), (1,0)(1,0), (1,1)(1,1).

Not every bounded function is integrable

Dirichlet function: f=1f = 1 on [0,1]∩Q[0, 1] \cap \mathbb{Q}, f=0f = 0 on [0,1]∖Q[0, 1] \setminus \mathbb{Q}. It is bounded but every small interval contains both rationals and irrationals.

  • All cic_i rational: f(ci)=1f(c_i) = 1, Sn1=n⋅1n=1S_n^1 = n\cdot\frac1n = 1, limit 11.
  • All cic_i irrational: Sn2=0S_n^2 = 0, limit 00.

Different limits: ff is not integrable. (With lower and upper sums: every mi=0m_i = 0, Mi=1M_i = 1, so sup⁡{sn}=0≠1=inf⁡{Sn}\sup\{s_n\} = 0 \ne 1 = \inf\{S_n\}.)

Classes of integrable functions

Theorem. f:[a,b]→Rf: [a, b] \to \mathbb{R} is integrable if:

  1. ff is continuous on [a,b][a, b] (it is enough that ff is bounded and continuous except at finitely many points);
  2. or ff is monotone on [a,b][a, b];
  3. or ff is piecewise: f=f1f = f_1 on [a,c[[a, c[ and f=f2f = f_2 on [c,b][c, b] with f1f_1 integrable on [a,c][a, c] and f2f_2 on [c,b][c, b]; then ∫abf dx=∫acf1 dx+∫cbf2 dx.\int_a^b f\,dx = \int_a^c f_1\,dx + \int_c^b f_2\,dx.

Example. x2x^2 is continuous, hence integrable on [0,1][0, 1]; the integer part [x][x] is monotone, hence integrable on [0,3][0, 3]. The value of ff at the single point cc does not matter (a single point has zero width). The Dirichlet function is discontinuous at every point and not monotone.

Summary

Starting hypothesis ff bounded on a closed bounded interval
Definition limit of ∑f(ci)b−an\sum f(c_i)\frac{b-a}{n}, same for every choice of cic_i
f≥0f \ge 0 integral == area of the trapezoid
ff of any sign integral == area above the axis −- area below
Integrable continuous (also with finitely many jumps), monotone, piecewise
Not integrable Dirichlet function

Common mistakes

  • Thinking the integral is always a positive area: it is a signed area. For the true area of a region crossing the axis separate the parts (or integrate ∣f∣|f|).
  • Forgetting "ff bounded": otherwise mim_i and MiM_i may not be real (unbounded functions need improper integrals).
  • Believing bounded suffices for integrability (Dirichlet).

Versione ripasso

Idea. Trapezoid of f≥0f \ge 0: T={(x,y):x∈[a,b], 0≤y≤f(x)}T = \{(x, y) : x \in [a, b],\ 0 \le y \le f(x)\}. Split [a,b][a, b] into nn pieces, build rectangles, let n→+∞n \to +\infty.

Definition. ff bounded on [a,b][a, b], h=b−anh = \frac{b-a}{n}, xi=a+ihx_i = a + ih, ci∈[xi−1,xi]c_i \in [x_{i-1}, x_i] arbitrary: Snf=∑i=1nf(ci)b−an.S_n^f = \sum_{i=1}^n f(c_i)\frac{b-a}{n}.

ff is integrable if for every choice of the cic_i the limit lim⁡Snf\lim S_n^f exists, is finite and is the same; then ∫abf(x) dx=lim⁡Snf\int_a^b f(x)\,dx = \lim S_n^f.

Example: ∫01x dx=12\int_0^1 x\,dx = \frac12 (ci=inc_i = \frac in, Sn=n+12nS_n = \frac{n+1}{2n}). Dummy variable: ∫abf(x) dx=∫abf(t) dt\int_a^b f(x)\,dx = \int_a^b f(t)\,dt.

Geometric meaning. f≥0f \ge 0: ∣T∣|T|. f≤0f \le 0: −∣T∣-|T|. In general ∣T+∣−∣T−∣|T^+| - |T^-| (signed area): ∫02πsin⁡x dx=0\int_0^{2\pi}\sin x\,dx = 0.

Equivalent definition. With mi=inf⁡m_i = \inf, Mi=sup⁡M_i = \sup on each piece of an arbitrary subdivision, sn=∑miΔxi≤Sn=∑MiΔxis_n = \sum m_i\Delta x_i \le S_n = \sum M_i\Delta x_i. ff is integrable iff sup⁡{sn}=inf⁡{Sn}\sup\{s_n\} = \inf\{S_n\}; "bounded" ensures mim_i, MiM_i are real.

Integrable: continuous (also with finitely many discontinuities, if bounded), monotone, piecewise (with ∫ab=∫ac+∫cb\int_a^b = \int_a^c + \int_c^b).

Computable by definition. ∫abc dx=c(b−a)\int_a^b c\,dx = c(b - a); ∫01x dx=12\int_0^1 x\,dx = \frac12. In general use the fundamental theorem.

Dirichlet function (11 on rationals, 00 on irrationals of [0,1][0, 1]): bounded, not integrable. Rational cic_i give Sn=1S_n = 1, irrational give 00; sup⁡{sn}=0≠1=inf⁡{Sn}\sup\{s_n\} = 0 \ne 1 = \inf\{S_n\}.

Typical mistakes. Integral as always positive area; forgetting boundedness; bounded does not imply integrable.

Teoria collegata