Study Guides / Calculus I / Exercise session 12
EXERCISE SESSION 12 · ETH ZURICH · FS20 · calculus

Continuity, Substitution and Integration by Parts

Substitution, integration by parts

SB
Steven Battilana Quant · ex-ETH

Continuity (Reminder)

Definition 1.1 Struwe 4.2.2

K⊂RnK \subset \mathbb{R}^n is called compact if every sequence (xn)n∈N⊂K(x_n)_{n \in \mathbb{N}} \subset K has an accumulation point in KK, i.e. if there exist a subsequence Λ⊂N\Lambda \subset \mathbb{N} and an x0∈Kx_0 \in K with

xn→n→∞,  n∈Λx0.x_n \xrightarrow{n \to \infty, \; n \in \Lambda} x_0.
Remark

A set K⊂RnK \subset \mathbb{R}^n is called compact if it is bounded and closed.

Example 1.1 Struwe 4.2.2
  1. The "closed" interval [0,1][0, 1] is compact.
  2. The "open" interval (0,1)(0, 1) is not compact.

The proofs are in the Struwe lecture notes.

Continuity

Definition 1.2 Struwe 4.1.3

Let Ω⊂Rd,  f:Ω→Rn\Omega \subset \mathbb{R}^d, \; f: \Omega \to \mathbb{R}^n.

  1. ff is called continuous at the point x0∈Ωx_0 \in \Omega if lim⁡x→x0f(x)=f(x0)=:a\lim\limits_{x \to x_0} f(x) = f(x_0) =: a exists.
  2. ff is called continuously extendable at the point x0∈Ω‾∖Ωx_0 \in \overline{\Omega} \setminus \Omega if lim⁡x→x0f(x)=:a\lim\limits_{x \to x_0} f(x) =:a exists.
    (In this case the function ff, extended by f(x0)=af(x_0) = a, is continuous at the point x0x_0.)

Definition 1.3 Struwe 4.2.1

Let f:Ω⊂Rd→Rnf: \Omega \subset \mathbb{R}^d \to \mathbb{R}^n.
ff is called continuous on Ω\Omega if ff is continuous at every point x0∈Ωx_0 \in \Omega.

Definition 1.4 Burger 3.2.1

Let D⊂R,x0∈DD \subset \mathbb{R}, x_0 \in D. The function f:D→Rf: D \to \mathbb{R} is continuous at x0\boldsymbol{x_0} if for every ε>0\varepsilon > 0 there is a δ>0\delta > 0 such that for all x∈Dx \in D the implication

∣x−x0∣<δ⟹∣f(x)−f(x0)∣<ε|x - x_0| < \delta \Longrightarrow |f(x) - f(x_0)| < \varepsilon

holds.

Definition 1.5 Burger 3.2.1 (quantifier version of the above)

Let D⊂R,x0∈DD \subset \mathbb{R}, x_0 \in D. The function f:D→Rf: D \to \mathbb{R} is continuous at x0\boldsymbol{x_0} if

∀ε>0,∃δ>0:∣x−x0∣<δ⟹∣f(x)−f(x0)∣<ε,∀x∈D\forall \varepsilon > 0, \exists \delta > 0: \qquad |x - x_0| < \delta \Longrightarrow |f(x) - f(x_0)| < \varepsilon, \quad \forall x \in D

holds.

Uniform Continuity

Definition 1.6 Struwe 4.7.2

f:Ω→Rnf: \Omega \to \mathbb{R}^n is called uniformly continuous if

∀ε>0,  ∃δ(ε)=δ>0,  ∀x,y∈Ω:∣x−y∣<δ⇒∣f(x)−f(y)∣<ε\forall \varepsilon >0, \; \exists \delta(\varepsilon)=\delta >0, \; \forall x,y \in \Omega: \qquad |x-y| < \delta \Rightarrow |f(x)-f(y)| < \varepsilon
Satz Struwe 4.7.3

Let Ω⊂Rd\Omega \subset \mathbb{R}^d be bounded, f:Ω→Rnf: \Omega \to \mathbb{R}^n continuous and continuously extendable to Ω‾\overline{\Omega}. Then ff is uniformly continuous.

Satz

Let f:Ω→Rf: \Omega \to \mathbb{R} be continuous and Ω\Omega compact. Then ff is uniformly continuous.

Remark

You can remember this theorem with the following rule of thumb:

continuity on a compact set⇒uniform continuity.\text{continuity on a compact set} \quad \Rightarrow \quad \text{uniform continuity}.
Example 1.2

Is the function f:[0,∞)→Rf: [0,\infty) \to \mathbb{R}, f(x)=x2x+1f(x) = \frac{x^2}{x+1} uniformly continuous?

Show solutionHide solution

We fix an ε>0\varepsilon >0. We look for δ>0\delta >0 such that for all x,y∈Ωx,y \in \Omega with ∣x−y∣<δ|x-y| < \delta the following holds:

∣f(x)−f(y)∣<ε.|f(x) - f(y)| < \varepsilon.

For x,y∈[0,∞)x,y \in [0,\infty) we have:

∣x2x+1−y2y+1∣=∣x2(y+1)−y2(x+1)(x+1)(y+1)∣=∣x2y+x2−y2x−y2(x+1)(y+1)∣=∣xy(x−y)+x2−y2(x+1)(y+1)∣=∣xy(x−y)+(x−y)(x+y)(x+1)(y+1)∣=∣x−y∣(xy+x+y(x+1)(y+1))=∣x−y∣(xy(x+1)(y+1)+x(x+1)(y+1)+y(x+1)(y+1))\begin{aligned} \left| \frac{x^2}{x+1} - \frac{y^2}{y+1} \right| &= \left| \frac{x^2(y+1) - y^2(x+1)}{(x+1)(y+1)} \right|\\ &= \left| \frac{x^2y+x^2 - y^2x-y^2}{(x+1)(y+1)} \right|\\ &= \left| \frac{xy(x-y) +x^2 -y^2}{(x+1)(y+1)} \right|\\ &= \left| \frac{xy(x-y) +(x-y)(x+y)}{(x+1)(y+1)} \right|\\ &= |x-y| \left( \frac{xy + x+y}{(x+1)(y+1)} \right)\\ &= |x-y| \left( \frac{xy}{(x+1)(y+1)} + \frac{x}{(x+1)(y+1)} + \frac{y}{(x+1)(y+1)} \right) \end{aligned}

Since xx+1≤1\frac{x}{x+1} \leq 1 and yy+1≤1\frac{y}{y+1} \leq 1, we have xy(x+1)(y+1)≤1\frac{xy}{(x+1)(y+1)} \leq 1. Therefore we can make the following estimate:

∣x2x+1−y2y+1∣=∣x−y∣(xy(x+1)(y+1)⏟≤1+x(x+1)(y+1)⏟≤1+y(x+1)(y+1)⏟≤1)≤∣x−y∣(1+1+1)=3∣x−y∣\begin{aligned} \left| \frac{x^2}{x+1} - \frac{y^2}{y+1} \right| &= |x-y| \left( \underbrace{\frac{xy}{(x+1)(y+1)}}_{\leq 1} + \underbrace{\frac{x}{(x+1)(y+1)}}_{\leq 1} + \underbrace{\frac{y}{(x+1)(y+1)}}_{\leq 1} \right)\\ &\leq |x-y| (1+1+1)\\ &= 3|x-y| \end{aligned}

It follows that:

∣x2x+1−y2y+1∣≤3∣x−y∣<!ε⇒∣x−y∣<ε3=:δ.\left| \frac{x^2}{x+1} - \frac{y^2}{y+1} \right| \leq 3|x-y| \overset{!}{<} \varepsilon \quad \Rightarrow \quad |x-y| < \frac{\varepsilon}{3} =: \delta.

Since δ\delta does not depend on x,yx,y, it follows that ff is uniformly continuous.

Lipschitz Continuity

Definition 1.7 Struwe 4.1.4

A function f:Ω⊂Rd→Rnf: \Omega \subset \mathbb{R}^d \to \mathbb{R}^n is called Lipschitz continuous with Lipschitz constant L if

∥f(x)−f(y)∥≤L∥x−y∥,∀x,y∈Ω.\left\lVert f(x)-f(y) \right\rVert \leq L \left\lVert x-y \right\rVert, \quad \forall x,y \in \Omega.
Satz

Let Ω⊂R\Omega \subset \mathbb{R} be an interval. A differentiable function f:Ω→Rf: \Omega \to \mathbb{R} is Lipschitz continuous if and only if its first derivative is bounded on Ω\Omega.

Remark

The different kinds of continuity depend on each other as follows, where the arrows represent implications:

f differentiable f Lipschitz continuous f uniformly continuous f continuous bounded derivative Ω compact
Example 1.3

Is the following function Lipschitz continuous? If so, find the Lipschitz constant.

f:(−3,2)→Rx↦f(x)=x2+4x−1.\begin{aligned} f: (-3,2) &\to \mathbb{R}\\ x &\mapsto f(x) = x^2+4x-1. \end{aligned}
Show solutionHide solution

Let x,y∈(−3,2)x,y \in (-3,2) be arbitrary. We have

∣f(x)−f(y)∣=∣x2+4x−1−(y2+4y−1)∣=∣x2+4x−1−y2−4y+1∣=∣x2+4x−y2−4y∣=∣x2−y2+4(x−y)∣=∣(x−y)(x+y)+4(x−y)∣=∣x+y+4∣∣x−y∣\begin{aligned} |f(x) -f(y)| &= |x^2 + 4x -1 -(y^2+4y-1)|\\ &= |x^2 + 4x -1 -y^2-4y+1|\\ &= |x^2 + 4x -y^2-4y|\\ &= |x^2 -y^2 + 4(x-y)|\\ &= |(x -y)(x+y) + 4(x-y)|\\ &= |x+y +4||x-y| \end{aligned}

For all x,y∈(−3,2)x,y \in (-3,2), the triangle inequality gives ∣x+y+4∣≤∣x∣+∣y∣+4≤3+3+4=10|x+y +4| \leq |x| + |y| + 4 \leq 3+3+4 = 10. This yields:

∣f(x)−f(y)∣=∣x+y+4∣∣x−y∣≤10∣x−y∣.|f(x) -f(y)| = |x+y +4||x-y| \leq 10 |x-y|.

The function is therefore Lipschitz continuous with Lipschitz constant L=10L=10.

Integration (I)

Definition 2.1 Struwe 6.1.1

A function F∈C1([a,b])F \in C^1([a,b]) is called an antiderivative of ff if:

F′(x)=f(x)∀x∈[a,b].F'(x) = f(x) \qquad \forall x \in [a,b].
Definition 2.2
  1. A partition of the compact interval I=[a,b]I=[a,b] with a<ba<b is a finite subset P⊂IP \subset I with P={a=x0,x1,...,xn=b}P = \{a=x_0, x_1, ..., x_n=b\} and x0<...<xnx_0 < ... < x_n. We denote the set of all partitions of II by

    P(I):={P⊂I    ∣    a,b∈P,  P is finite}.\mathcal{P}(I) := \{ P \subset I \;\; | \;\; a,b \in P, \; P \text{ is finite}\}.
  2. The mesh of the partition is defined by

    δ(P):=max⁡1≤i≤n{∣xi−xi−1∣}with n(P):=n=∣P∣−1.\delta (P) := \max_{1 \leq i \leq n} \{|x_i - x_{i-1}|\} \qquad \text{with } n(P):= n = |P|-1.

    Remark: δ(P)\delta (P) is the length of the largest interval Ii=[xi−1,xi]I_i = [x_{i-1},x_i] with 1≤i≤n1 \leq i \leq n.

  3. Let ξi∈Ii\xi_i \in I_i be intermediate points (sample points) with xi−1≤ξi≤xix_{i-1} \leq \xi_i \leq x_i. Every sum of the form

    S(f,P,ξ):=∑i=1nf(ξi)(xi−xi−1)S(f,P,\xi) := \sum_{i=1}^n f(\xi_i) (x_i-x_{i-1})

    is called a Riemann sum of the partition PP and ξ∈{ξ1,...,ξn}\xi \in \{\xi_1, ..., \xi_n\}.

Satz Struwe 6.2.1
f monotone⇒f is integrable.f \text{ monotone} \qquad \Rightarrow \qquad f \text{ is integrable}.
Satz Struwe 6.2.2
f continuous⇒f is integrable.f \text{ continuous} \qquad \Rightarrow \qquad f \text{ is integrable}.
Definition 2.3 upper sum
S‾(f,P):=∑i=1nsup⁡ξ∈[xi−1,xi]f(ξ)(xi−xi−1)\overline{S}(f,P) := \sum_{i=1}^n \sup_{\xi \in [x_{i-1}, x_i]} f(\xi) (x_i-x_{i-1})
Definition 2.4 lower sum
S‾(f,P):=∑i=1ninf⁡ξ∈[xi−1,xi]f(ξ)(xi−xi−1)\underline{S}(f,P) := \sum_{i=1}^n \inf_{\xi \in [x_{i-1}, x_i]} f(\xi) (x_i-x_{i-1})
Definition 2.5 upper Riemann integral
∫ab‾f(x)dx:=inf⁡{S‾(f,P)    ∣    P∈P(I)}.\overline{\int_a^b} f(x) dx := \inf \{ \overline{S}(f,P) \;\; | \;\; P \in \mathcal{P}(I) \}.
Definition 2.6 lower Riemann integral
∫ab‾f(x)dx:=sup⁡{S‾(f,P)    ∣    P∈P(I)}.\underline{\int_a^b} f(x) dx := \sup \{ \underline{S}(f,P) \;\; | \;\; P \in \mathcal{P}(I) \}.
Corollary 2.1 Struwe 6.2.3

Let f:[a,b]→Rf: [a,b] \to \mathbb{R} be a bounded and integrable function. Let {P(n)}\{P^{(n)}\} be a sequence of partitions of the compact interval [a,b][a,b] with δ(P(n))→n→∞0\delta (P^{(n)}) \xrightarrow{n \to \infty} 0, and {ξ(n)}\{ \xi^{(n)} \} a fixed choice of intermediate points for the partition P(n)P^{(n)}. Then

∫abf(x)dx=lim⁡n→∞S(f,P(n),ξ(n)).\int_a^b f(x) dx = \lim_{n \to \infty} S(f, P^{(n)}, \xi^{(n)}).
Remark

If Corollary 6.2.3 is satisfied, ff is called Riemann integrable on [a,b][a,b].

Remark

Uniform partitions P(n)={a=x0,x1,...,xn}P^{(n)} = \{a=x_0, x_1, ..., x_n \} with xi=a+i(b−a)nx_i = a+ \frac{i(b-a)}{n} and xi−xi−1=b−anx_i - x_{i-1} = \frac{b-a}{n} form a sequence of partitions with δ(P(n))=b−an→n→∞0\delta(P^{(n)}) = \frac{b-a}{n} \xrightarrow{n \to \infty} 0.

Example 2.1

Compute the integral ∫01(x3−2x)dx\int\limits_0^1 (x^3 -2x) dx explicitly using Riemann sums.

Show solutionHide solution

We divide the interval of integration [0,1][0,1] into nn subintervals of equal length Δx=1n\Delta x = \frac{1}{n} with xk=kn,  k=1,...,nx_k = \frac{k}{n}, \; k=1,...,n. The mesh of this partition is δ(P)=1n\delta (P) = \frac{1}{n}. We have lim⁡n→∞δ(P)=0\lim\limits_{n \to \infty} \delta (P) = 0. Hence the function f(x)=x3−2xf(x) = x^3 -2x is Riemann integrable and, by the definition of the Riemann integral (we choose ξk=xk\xi_k = x_k):

∫01f(x)dx=∫01(x3−2x)dx=lim⁡n→∞∑k=1nf(ξk)(xk−xk−1)=lim⁡n→∞∑k=1nf(kn)1n=lim⁡n→∞1n∑k=1nf(kn)=lim⁡n→∞1n∑k=1n((kn)3−2⋅kn)=lim⁡n→∞1n∑k=1n(k3n3−2⋅kn)=(∗)lim⁡n→∞1n4∑k=1nk3−2n2∑k=1nk=lim⁡n→∞1n4(n(n+1)2)2−2n2n(n+1)2=lim⁡n→∞n2(n+1)24n4−n(n+1)n2=lim⁡n→∞(n+1)24n2−n(n+1)n2=lim⁡n→∞n2+2n+14n2−n2+nn2=14−1=−34.\begin{aligned} \int_0^1 f(x) dx = \int_0^1 (x^3 -2x) dx &= \lim_{n \to \infty} \sum_{k=1}^n f(\xi_k) (x_k-x_{k-1})\\ &= \lim_{n \to \infty} \sum_{k=1}^n f \left( \frac{k}{n} \right) \frac{1}{n}\\ &= \lim_{n \to \infty} \frac{1}{n} \sum_{k=1}^n f \left( \frac{k}{n} \right)\\ &= \lim_{n \to \infty} \frac{1}{n} \sum_{k=1}^n \left( \left(\frac{k}{n}\right)^3 -2 \cdot \frac{k}{n} \right)\\ &= \lim_{n \to \infty} \frac{1}{n} \sum_{k=1}^n \left( \frac{k^3}{n^3} -2 \cdot \frac{k}{n} \right)\\ &\overset{(*)}{=} \lim_{n \to \infty} \frac{1}{n^4} \sum_{k=1}^n k^3 -\frac{2}{n^2} \sum_{k=1}^n k\\ &= \lim_{n \to \infty} \frac{1}{n^4} \left( \frac{n(n+1)}{2} \right)^2 -\frac{2}{n^2} \frac{n(n+1)}{2}\\ &= \lim_{n \to \infty} \frac{n^2(n+1)^2}{4n^4} - \frac{n(n+1)}{n^2}\\ &= \lim_{n \to \infty} \frac{(n+1)^2}{4n^2} - \frac{n(n+1)}{n^2}\\ &= \lim_{n \to \infty} \frac{n^2+2n+1}{4n^2} - \frac{n^2+n}{n^2}\\ &= \frac{1}{4} - 1\\ &= -\frac{3}{4}. \end{aligned}

(∗)(*): We used the following formulas:

∑k=1nk3=(n(n+1)2)2∑k=1nk=n(n+1)2\sum_{k=1}^n k^3 = \left( \frac{n(n+1)}{2} \right)^2 \qquad\qquad \sum_{k=1}^n k = \frac{n(n+1)}{2}
Remark

The chain rule reads:

(f∘g)′(x)=f′(g(x))g′(x).(f \circ g)'(x) = f'(g(x)) g'(x).

Hence (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)) is an antiderivative of f′(g(x))g′(x)f'(g(x)) g'(x).

Example 2.2

Find the antiderivative ∫arctan⁡5(x)1+x2dx\int \frac{\arctan^5(x)}{1+x^2} dx.

Show solutionHide solution ∫arctan⁡5(x)1+x2dx=∫arctan⁡5(x)⏟f(g(x))⋅11+x2⏟g′(x)dx=16arctan⁡6(x)+C,∀C∈R.\begin{aligned} \int \frac{\arctan^5(x)}{1+x^2} dx &= \int \underbrace{\arctan^5(x)}_{f(g(x))} \cdot \underbrace{\frac{1}{1+x^2}}_{g'(x)} dx\\ &= \frac{1}{6} \arctan^6(x) + C, \qquad \forall C \in \mathbb{R}. \end{aligned}
Example 2.3

Find the antiderivative ∫3x+1x+1dx\int \frac{3^{\sqrt{x+1}}}{\sqrt{x+1}} dx.

Show solutionHide solution ∫3x+1x+1dx=∫elog⁡(3)x+1x+1dx=2∫elog⁡(3)x+12x+1dx=2∫elog⁡(3)x+1⏟f(g(x))⋅12x+1⏟g′(x)dx=2log⁡(3)⋅elog⁡(3)x+1+C,∀C∈R=2log⁡(3)⋅3x+1+C,∀C∈R.\begin{aligned} \int \frac{3^{\sqrt{x+1}}}{\sqrt{x+1}} dx &= \int \frac{e^{\log(3) \sqrt{x+1}}}{\sqrt{x+1}} dx\\ &= 2 \int \frac{e^{\log(3) \sqrt{x+1}}}{2\sqrt{x+1}} dx\\ &= 2 \int \underbrace{e^{\log(3) \sqrt{x+1}}}_{f(g(x))} \cdot \underbrace{\frac{1}{2\sqrt{x+1}}}_{g'(x)} dx\\ &= \frac{2}{\log(3)} \cdot e^{\log(3) \sqrt{x+1}} + C, \qquad \forall C \in \mathbb{R}\\ &= \frac{2}{\log(3)} \cdot 3^{\sqrt{x+1}} + C, \qquad \forall C \in \mathbb{R}. \end{aligned}
Satz fundamental theorem of calculus (version A)

Let f∈C0([a,b])f \in C^0([a,b]). Set F(x)=∫axf(t)dt,  x∈[a,b]F(x) = \int\limits_a^x f(t) dt, \; x \in [a,b].
Then F∈C1((a,b))F \in C^1((a,b)) with F′(x)=f(x)F'(x) = f(x).

Satz fundamental theorem of calculus (version B)

Let f∈C0([a,b])f \in C^0([a,b]) and FF an antiderivative of ff.
Then:

∫abf(x)dx=F(b)−F(a).\int_a^b f(x) dx = F(b) - F(a).
Example 2.4

Let A(x):=∫−1cos⁡(x)earccos⁡(t)dtA(x) := \int\limits_{-1}^{\cos(x)} e^{\arccos(t)} dt. Compute A′(x)A'(x).

Show solutionHide solution F(x):=∫−1xearccos⁡(t)dtΦ(x):=cos⁡(x)⇒A(x)=(F∘Φ)(x)⇒A′(x)=F′(Φ(x))⋅Φ′(x)=earccos⁡(cos⁡(x))⋅(−sin⁡(x))=−sin⁡(x)⋅exfor x∈[0,π]\begin{aligned} F(x) &:= \int_{-1}^{x} e^{\arccos(t)} dt\\ \Phi(x) &:= \cos(x)\\ \Rightarrow \quad A(x) &= (F \circ \Phi)(x)\\ \Rightarrow \quad A'(x) &= F'(\Phi(x)) \cdot \Phi'(x)\\ &= e^{\arccos(\cos(x))} \cdot (-\sin(x))\\ &= -\sin(x) \cdot e^x \qquad \text{for } x \in [0, \pi] \end{aligned}

Integration (II)

Satz monotonicity of the R-integral; Struwe 6.3.1

Let f,g:[a,b]→Rf,g: [a,b] \to \mathbb{R} be R-integrable with f≤gf \leq g. Then:

∫abf(x)dx≤∫abg(x)dx.\int_a^b f(x) dx \leq \int_a^b g(x) dx.
Satz linearity of the R-integral; Struwe 6.3.2

Let α,β∈R,  I=[a,b]\alpha, \beta \in \mathbb{R}, \; I=[a,b] and f,g:I→Rf,g: I \to \mathbb{R} two R-integrable functions. Then the function αf(x)+βg(x)\alpha f(x) + \beta g(x) is integrable over [a,b][a,b], and:

∫abαf(x)+βg(x)dx=α∫abf(x)dx+β∫abg(x)dx.\int_a^b \alpha f(x) + \beta g(x) dx = \alpha \int_a^b f(x) dx + \beta \int_a^b g(x) dx.
Corollary 3.1 standard estimate; Struwe 6.3.1

Let ff be integrable over [a,b][a,b]. Then ∣f∣|f| is R-integrable, and:

∣∫abf(x)dx∣≤∫ab∣f(x)∣dx≤(sup⁡x∈[a,b]∣f(x)∣)(b−a).\left| \int_a^b f(x) dx \right| \leq \int_a^b |f(x)| dx \leq \left( \sup_{x \in [a,b]} |f(x)| \right) (b-a).
Satz additivity over intervals; Struwe 6.3.3

Let f:[a,b]→Rf: [a,b] \to \mathbb{R} be integrable over [a,b][a,b]. Let c∈[a,b]c \in [a,b]. Then f∣[a,c]f \Big|_{[a,c]} and f∣[c,b]f \Big|_{[c,b]} are integrable, and:

∫abf(x)dx=∫acf(x)dx+∫cbf(x)dx.\int_a^b f(x) dx = \int_a^c f(x) dx + \int_c^b f(x) dx.
Remark
  • Convention:

    ∫abf(x)dx=−∫baf(x)dx\int_a^b f(x) dx = -\int_b^a f(x) dx
  • ∫aaf(x)dx=0\int_a^a f(x) dx = 0
Satz integration by parts
∫abf′(x)⋅g(x)dx=[f(x)g(x)]ab−∫abf(x)⋅g′(x)dx.\int_a^b f'(x) \cdot g(x) dx = \Big[ f(x) g(x) \Big]_a^b - \int_a^b f(x) \cdot g'(x) dx.

Derivation:

Show solutionHide solution uv=∫(uv)′dx=product rule∫(u′v+uv′)dx=linearity∫u′vdx+∫uv′dx⇔∫u′vdx=uv−∫uv′dx\begin{aligned} uv &= \int (uv)' dx\\ &\overset{\text{product rule}}{=} \int (u'v + uv') dx\\ &\overset{\text{linearity}}{=} \int u'v dx + \int uv' dx\\ \Leftrightarrow \quad \int u'v dx &= uv - \int uv' dx \end{aligned}
Example 3.1

Compute ∫log⁡2(x)dx\int \log^2(x) dx.

Show solutionHide solution ∫log⁡2(x)dx=∫log⁡2(x)⋅1  dx=IBPlog⁡2(x)⋅x−∫2log⁡(x)⋅1x⋅x  dx=log⁡2(x)⋅x−2∫log⁡(x)  dx=log⁡2(x)⋅x−2(∫log⁡(x)⋅1  dx)=IBPlog⁡2(x)⋅x−2(log⁡(x)⋅x−∫1x⋅x  dx)=log⁡2(x)⋅x−2(log⁡(x)⋅x−x)+C,C∈R=xlog⁡2(x)−2xlog⁡(x)+2x+C,C∈R\begin{aligned} \int \log^2(x) dx &= \int \log^2(x) \cdot 1 \;dx\\ &\overset{\text{IBP}}{=} \log^2(x) \cdot x - \int 2 \log(x) \cdot \frac{1}{x} \cdot x \;dx\\ &= \log^2(x) \cdot x - 2 \int \log(x) \;dx\\ &= \log^2(x) \cdot x - 2 \left( \int \log(x) \cdot 1 \;dx \right)\\ &\overset{\text{IBP}}{=} \log^2(x) \cdot x - 2 \left( \log(x) \cdot x - \int \frac{1}{x} \cdot x \; dx \right)\\ &= \log^2(x) \cdot x - 2 \left( \log(x) \cdot x -x\right) + C , \quad C \in \mathbb{R}\\ &= x\log^2(x) - 2x\log(x) + 2x + C, \quad C \in \mathbb{R} \end{aligned}
Example 3.2

Compute ∫e2xcos⁡(x)  dx\int e^{2x} \cos(x) \; dx.

Show solutionHide solution ∫e2xcos⁡(x)  dx=IBPe2xsin⁡(x)−2∫e2xsin⁡(x)  dx=IBPe2xsin⁡(x)−2(e2x(−cos⁡(x))−2∫e2x(−cos⁡(x))  dx)=e2xsin⁡(x)−2(e2x(−cos⁡(x))+2∫e2xcos⁡(x)  dx)=e2xsin⁡(x)+2e2xcos⁡(x)−4∫e2xcos⁡(x)  dx⇔5∫e2xcos⁡(x)  dx=e2xsin⁡(x)+2e2xcos⁡(x)+C~,C~∈R⇔∫e2xcos⁡(x)  dx=15e2xsin⁡(x)+25e2xcos⁡(x)+C,C∈R\begin{aligned} \int e^{2x} \cos(x) \; dx &\overset{\text{IBP}}{=} e^{2x} \sin(x) -2 \int e^{2x} \sin(x) \; dx\\ &\overset{\text{IBP}}{=} e^{2x} \sin(x) -2 \left( e^{2x} (-\cos(x)) - 2 \int e^{2x} (-\cos(x)) \; dx \right)\\ &= e^{2x} \sin(x) -2 \left( e^{2x} (-\cos(x)) + 2 \int e^{2x} \cos(x) \; dx \right)\\ &= e^{2x} \sin(x) +2 e^{2x} \cos(x) - 4 \int e^{2x} \cos(x) \; dx\\ \Leftrightarrow \quad 5 \int e^{2x} \cos(x) \; dx &= e^{2x} \sin(x) +2 e^{2x} \cos(x) + \widetilde{C}, \quad \widetilde{C} \in \mathbb{R}\\ \Leftrightarrow \quad \int e^{2x} \cos(x) \; dx &= \frac{1}{5} e^{2x} \sin(x) +\frac{2}{5} e^{2x} \cos(x) + C, \quad C \in \mathbb{R} \end{aligned}
Example 3.3

Compute ∫01xsinh⁡(4x)  dx\int\limits_0^1 x \sinh(4x) \; dx.

Show solutionHide solution ∫01xsinh⁡(4x)  dx=[x⋅cosh⁡(4x)4]01−∫011⋅cosh⁡(4x)4  dx=[x⋅cosh⁡(4x)4]01−14∫01cosh⁡(4x)  dx=[1⋅cosh⁡(4)4−0⋅cosh⁡(0)4]−14[sinh⁡(4x)4]01=cosh⁡(4)4−14[sinh⁡(4)4−sinh⁡(0)4]=sinh⁡(0)=0cosh⁡(4)4−14[sinh⁡(4)4−0]=cosh⁡(4)4−sinh⁡(4)16\begin{aligned} \int_0^1 x \sinh(4x) \; dx &= \left[ x \cdot \frac{\cosh(4x)}{4} \right]_0^1 - \int_0^1 1 \cdot \frac{\cosh(4x)}{4} \; dx\\ &= \left[ x \cdot \frac{\cosh(4x)}{4} \right]_0^1 - \frac{1}{4} \int_0^1 \cosh(4x) \; dx\\ &= \left[ 1 \cdot \frac{\cosh(4)}{4} - 0 \cdot \frac{\cosh(0)}{4}\right] - \frac{1}{4} \left[ \frac{\sinh(4x)}{4} \right]_0^1\\ &= \frac{\cosh(4)}{4} - \frac{1}{4} \left[ \frac{\sinh(4)}{4} - \frac{\sinh(0)}{4} \right]\\ &\overset{\sinh(0)=0}{=} \frac{\cosh(4)}{4} - \frac{1}{4} \left[ \frac{\sinh(4)}{4} - 0 \right]\\ &= \frac{\cosh(4)}{4} - \frac{\sinh(4)}{16} \end{aligned}
Remark

What about ∫1x  dx\int \frac{1}{x} \; dx?

Show solutionHide solution f1:(0,∞)→R,    x↦1x⇒∫f1(x)  dx=log⁡(x)+C,C∈Rf2:R∖{0}→R,    x↦1x⇒∫f2(x)  dx=log⁡∣x∣+C,C∈R\begin{aligned} f_1: (0, \infty) \to \mathbb{R}, \;\; x \mapsto \frac{1}{x} \quad \Rightarrow \quad \int f_1(x)\; dx = \log(x) + C, \quad C \in \mathbb{R}\\ f_2: \mathbb{R} \setminus \{0\} \to \mathbb{R}, \;\; x \mapsto \frac{1}{x} \quad \Rightarrow \quad \int f_2(x)\; dx = \log|x| + C, \quad C \in \mathbb{R} \end{aligned}

Claim: ∫f2(x)dx=∫1x=log⁡∣x∣+C,C∈R⇒(log⁡∣x∣+C)′=1x\int f_2(x) dx = \int \frac{1}{x} = \log|x| + C, \quad C \in \mathbb{R} \quad \Rightarrow \quad (\log|x| + C)' = \frac{1}{x}.

Proof:

(log⁡∣x∣+C)′=log⁡′∣x∣(∣x∣)′=1∣x∣⋅(∣x∣)′={1x⋅1,x>0−1x⋅−1,x<0=1x\begin{aligned} (\log|x| + C)' &= \log'|x| (|x|)'\\ &= \frac{1}{|x|} \cdot (|x|)'\\ &= \begin{cases} \frac{1}{x} \cdot 1, \quad x > 0\\ \frac{-1}{x} \cdot -1, \quad x < 0 \end{cases}\\ &= \frac{1}{x} \end{aligned}
Satz substitution; Struwe 6.1.5

Let f:[a,b]→Rf: [a,b] \to \mathbb{R} be continuous, FF an antiderivative of ff, g:[α,β]→Rg: [\alpha, \beta] \to \mathbb{R} of class C1([α,β])C^1([\alpha, \beta]), and t0≤t1t_0 \leq t_1 in [α,β][\alpha, \beta] such that g([t0,t1])⊂[a,b]g([t_0,t_1]) \subset [a,b]. Then:

∫t0t1F′(g(t))g′(t)dt=∫t0t1f(g(t))g′(t)dt=∫g(t0)g(t1)f(x)dx.\int_{t_0}^{t_1} F'(g(t)) g'(t) dt = \int_{t_0}^{t_1} f(g(t)) g'(t) dt = \int_{g(t_0)}^{g(t_1)} f(x) dx.
Satz substitution; Burger 5.4.6

Let a<b, ϕ:[a,b]→Ra < b,\, \phi: [a,b] \to \mathbb{R} be continuously differentiable, I⊂RI \subset \mathbb{R} an interval with ϕ([a,b])⊂I\phi([a,b]) \subset I and f:I→Rf: I \to \mathbb{R} a continuous function. Then:

∫ϕ(a)ϕ(b)f(x)dx=∫abf(ϕ(t))ϕ′(t)dt.\int_{\phi(a)}^{\phi(b)} f(x) dx = \int_a^b f(\phi(t)) \phi'(t) dt.
Example 3.4

Compute ∫0π24cos⁡(x)  dx\int\limits_0^{\frac{\pi^2}{4}} \cos(\sqrt{x})\; dx.

Show solutionHide solution

We choose the following substitution:

u=xu = \sqrt{x}

Following the substitution rule, we change variables in the integrand; for this we also need the following:

g(x):=u=x⇒ddx(u)=12x⇔du=12x  dx⇔2x  du=dx⇔2u  du=dx\begin{aligned} g(x) := u &= \sqrt{x}\\ \Rightarrow \quad \frac{d}{dx} (u) &= \frac{1}{2 \sqrt{x}}\\ \Leftrightarrow \quad du &= \frac{1}{2 \sqrt{x}} \;dx\\ \Leftrightarrow \quad 2 \sqrt{x} \;du &= dx\\ \Leftrightarrow \quad 2u \;du &= dx \end{aligned}

Now we can substitute:

∫0π24cos⁡(x)  dx=∫g(0)g(π24)2ucos⁡(u)  du=∫0π242ucos⁡(u)  du=∫0π22ucos⁡(u)  du\begin{aligned} \int_0^{\frac{\pi^2}{4}} \cos(\sqrt{x})\; dx &= \int_{g(0)}^{g\left(\frac{\pi^2}{4}\right)} 2u\cos(u) \;du\\ &= \int_{0}^{\sqrt{\frac{\pi^2}{4}}} 2u \cos(u) \;du\\ &= \int_{0}^{\frac{\pi}{2}} 2u \cos(u) \;du \end{aligned}

Now we can solve the integral using integration by parts:

2∫0π2ucos⁡(u)  du=IBP2([usin⁡(u)]0π2−∫0π2sin⁡(u)  du)=2(π2sin⁡(π2)−(−cos⁡(u))∣0π2)=2(π2⋅1+cos⁡(u)∣0π2)=2(π2+cos⁡(π2)−cos⁡(0))=2(π2+0−1)=2⋅π2−2=π−2\begin{aligned} 2 \int_{0}^{\frac{\pi}{2}} u \cos(u)\;du &\overset{\text{IBP}}{=} 2 \left( \Big[ u \sin(u) \Big]_0^{\frac{\pi}{2}} - \int_0^{\frac{\pi}{2}} \sin(u) \; du \right)\\ &= 2 \left( \frac{\pi}{2} \sin(\frac{\pi}{2}) - (-\cos(u)) \Big|_0^{\frac{\pi}{2}} \right)\\ &= 2 \left( \frac{\pi}{2} \cdot 1 + \cos(u) \Big|_0^{\frac{\pi}{2}} \right)\\ &= 2 \left( \frac{\pi}{2} + \cos(\frac{\pi}{2}) - \cos(0) \right)\\ &= 2 \left( \frac{\pi}{2} + 0 - 1 \right)\\ &= 2 \cdot \frac{\pi}{2} - 2\\ &= \pi - 2 \end{aligned}
Remark substitution

The following lists which substitutions can be useful for which functions:

  1. ex,sinh⁡(x),cosh⁡(x)e^x, \sinh(x), \cosh(x)
    Substitution: t=ex,    dx=dtt,    sinh⁡(x)=t2−12t,    cosh⁡(x)=t2+12tt = e^{x},\;\; dx = \frac{dt}{t},\;\; \sinh(x)= \frac{t^2-1}{2t},\;\; \cosh(x) = \frac{t^2+1}{2t}

  2. log⁡(x)\log(x)
    Substitution: t=log⁡(x),x=et,    dx=etdtt=\log(x), x=e^t, \;\;dx = e^t dt

  3. ax+b\sqrt{ax+b}, substitute the root (preferably in the denominator)
    Substitution: x→t=x,    x+1→t=x+1\sqrt{x} \to t = \sqrt{x}, \;\; \sqrt{x+1} \to t = \sqrt{x+1}; xb→t=xb\qquad \sqrt[b]{x} \to t=\sqrt[b]{x}

  4. cos⁡2(x),    sin⁡2(x),...,    tan⁡(x)\cos^2(x), \;\;\sin^2(x), ..., \;\;\tan(x)
    Substitution: t=tan⁡(x),    dx=11+t2dt,    sin⁡2(x)=t21+t2,    cos⁡2(x)=11+t2t=\tan(x), \;\;dx = \frac{1}{1+t^2} dt, \;\;\sin^2(x) = \frac{t^2}{1+t^2}, \;\;\cos^2(x) = \frac{1}{1+t^2}

  5. cos⁡(x),    sin⁡(x),    cos⁡3(x),\cos(x), \;\; \sin(x), \;\; \cos^3(x), …
    Substitution: t=tan⁡(x2),    dx=21+t2dt,    sin⁡(x)=2t1+t2,    cos⁡(x)=1−t21+t2t=\tan(\frac{x}{2}),\;\; dx = \frac{2}{1+t^2} dt, \;\; \sin(x) = \frac{2t}{1+t^2}, \;\; \cos(x) = \frac{1-t^2}{1+t^2}

  6. x2+bx+c\sqrt{x^2+bx+c} in the numerator, use sin⁡2(x)+cos⁡2(x)=1\sin^2(x)+\cos^2(x)=1 or cosh⁡2(x)−sinh⁡2(x)=1\cosh^2(x)-\sinh^2(x) = 1
    \qquad ∫1−x2dx\int \sqrt{1-x^2} dx: substitute with x=sin⁡(t)x = \sin(t) or x=cos⁡(t)x = \cos(t)
    \qquad ∫x2−1dx\int \sqrt{x^2-1} dx: substitute with x=cosh⁡(t)x = \cosh(t)
    \qquad ∫x2+1dx\int \sqrt{x^2+1} dx: substitute with x=sinh⁡(t)x = \sinh(t)

  7. a2+b2x2\sqrt{a^2 + b^2x^2}
    Substitution: x=ab⋅tan⁡(t),    dx=abcos⁡2(t)⋅dtx = \frac{a}{b} \cdot \tan(t), \;\; dx = \frac{a}{b \cos^2(t)} \cdot dt or x=ab⋅sinh⁡(t),    dx=ab⋅cosh⁡(t)⋅dtx = \frac{a}{b} \cdot \sinh(t), \;\; dx = \frac{a}{b} \cdot \cosh(t) \cdot dt

  8. b2x2−a2\sqrt{b^2x^2-a^2}
    Substitution: x=abcos⁡(t)x = \frac{a}{b \cos(t)},     dx=ab⋅sin⁡(t)cos⁡2(t)⋅dt\;\; dx = \frac{a}{b} \cdot \frac{\sin(t)}{\cos^2(t)} \cdot dt or x=ab⋅cosh⁡(t),    dx=ab⋅sinh⁡(t)dtx = \frac{a}{b} \cdot \cosh(t), \;\; dx=\frac{a}{b} \cdot \sinh(t) dt