Jump to content

Mathematics for Applied Sciences (Osnabrück 2023-2024)/Part I/Lecture 20

We discuss now the main rules to find a primitive function, and to compute definite integrals. They rest on rules for derivation.



Integration by parts

Theorem

Let

f,g:[a,b]⟶ℝ

denote continuously differentiable functions. Then

∫abf(t)g′(t)dt=fg|ab−∫abf′(t)g(t)dt.

Proof  

Due to the product rule, the function fg is a primitive function for fg′+f′g. Therefore,

∫abf(t)g′(t)dt+∫abf′(t)g(t)dt=∫ab(fg′+f′g)(t)dt=fg|ab.
◻


In using integration by parts, two things are to be considered. Firstly, the function to be integrated is usually not in the form fg′, but just as a product uv (if there is no product, then this rule will probably not help, however, sometimes the trivial product 1u might help). Then for one factor, we have to find a primitive function, and we have to differentiate the other factor. If V is a primitive function of v, then the formula reads

∫uv=uV−∫u′V.

Secondly, integration by parts only helps when the integral on the right, i.e. ∫abf′(t)g(t)dt, can be integrated.


We determine a primitive function for the natural logarithm ln⁡x, with integration by parts. We write ln⁡x=1⋅ln⁡x, and we integrate the constant function 1, and we differentiate the logarithm. Then

∫abln⁡xdx=(x⋅ln⁡x)|ab−∫abx⋅1xdx=(x⋅ln⁡x)|ab−∫ab1dx=(x⋅ln⁡x)|ab−x|ab.

So a primitive function is x⋅ln⁡x−x.


A primitive function for the sine function sin⁡x is −cos⁡x. In order to find a primitive function for sinnx, we use integration by parts to get a recursive relation to a power with a smaller exponent. To make this more precise, we work over an interval, the primitive function shall start at 0 and have the value 0 there. For n≥2, with integration by parts, we get

∫0xsinntdt=∫0xsinn−2t⋅sin2tdt=∫0xsinn−2t⋅(1−cos2t)dt=∫0xsinn−2tdt−∫0x(sinn−2tcos⁡t)cos⁡tdt=∫0xsinn−2tdt−sinn−1tn−1cos⁡t|0x−1n−1(∫0xsinntdt).

Multiplication with n−1 and rearranging yields

n∫0xsinntdt=(n−1)∫0xsinn−2tdt−sinn−1xcos⁡x.

In particular, for n=2, we have

∫0xsin2tdt=12(x−sin⁡xcos⁡x).



Integration of inverse function

Theorem

Let f:[a,b]→[c,d] denote a bijective differentiable function, and let F denote a primitive function for f. Then

G(y):=yf−1(y)−F(f−1(y))

is a primitive function for the inverse function

f−1.

Proof  

Differentiating, using Lemma 14.7 and Theorem 14.8 , yields

(yf−1(y)−F(f−1(y)))′=f−1(y)+y1f′(f−1(y))−f(f−1(y))1f′(f−1(y))=f−1(y).
◻


The graph with its inverse function, and the areas relevant for the computation of the integral of the inverse function.


For this statement, there exists also an easy geometric explanation. When f:[a,b]→ℝ+ is a strictly increasing continuous function (and therefore induces a bijection between [a,b] and [f(a),f(b)]), then the following relation between the areas holds:

∫abf(s)ds+∫f(a)f(b)f−1(t)dt=bf(b)−af(a),

or, equivalently,

∫f(a)f(b)f−1(t)dt=bf(b)−af(a)−∫abf(s)ds.

For the primitive function G of f−1 with starting point f(a), we have, if F denotes a primitive function for f, the relation

G(y)=∫f(a)yf−1(t)dt=∫f(a)f(f−1(y))f−1(t)dt=f−1(y)f(f−1(y))−af(a)−∫af−1(y)f(s)ds=yf−1(y)−af(a)−F(f−1(y))+F(a)=yf−1(y)−F(f−1(y))−af(a)+F(a),

where −af(a)+F(a) is a constant of integration.


We compute a primitive function for arctan⁡x, using Theorem 20.4 . A primitive function of tangent is

∫tan⁡tdt=−ln⁡(cos⁡x).

Hence,

x⋅arctan⁡x+ln⁡(cos⁡(arctan⁡x))

is a primitive function for arctan⁡x.



Substitution

Theorem

Suppose that I denotes a real interval, and let

f:I⟶ℝ

denote a continuous function. Let

g:[a,b]⟶I

be a continuously differentiable function. Then

∫abf(g(t))g′(t)dt=∫g(a)g(b)f(s)ds
holds.

Proof  

Since f is continuous and g is continuously differentiable, both integrals exist. Let F denote a primitive function for f, which exists, due to Theorem 18.17 . Because of the chain rule, the composite function

t↦F(g(t))=(F∘g)(t)

has the derivative F′(g(t))g′(t)=f(g(t))g′(t). Therefore,

∫abf(g(t))g′(t)dt=(F∘g)|ab=F(g(b))−F(g(a))=F|g(a)g(b)=∫g(a)g(b)f(s)ds.
◻



Typical examples, where one sees immediately that one can apply substitution, are

∫gng′,

with the primitive function

1n+1gn+1

or

∫g′g,

with the primitive function

ln⁡g.

Often, the indefinite integral is not in a form where one can apply the preceding rule directly. Then the following variant is more appropriate.


Corollary

Suppose that

f:[a,b]⟶ℝ

is a continuous function, and let

φ:[c,d]⟶[a,b],s⟼φ(s),

denote a bijective continuously differentiable function. Then

∫abf(t)dt=∫φ−1(a)φ−1(b)f(φ(s))⋅φ′(s)ds
holds.

Proof  

Because of Theorem 20.6 , we have

∫φ−1(a)φ−1(b)f(φ(s))φ′(s)ds=∫φ(φ−1(a))φ(φ−1(b))f(t)dt=∫abf(t)dt.
◻



The substitution is applied in the following way: suppose that the integral

∫abf(t)dt

has to be computed. Then one needs an idea that the integral gets simpler by the substitution

t=φ(s)

(taking into account the derivative φ′(s) and that the inverse function φ−1 has to be determined). Setting c=φ−1(a) and d=φ−1(b), we have the situation

[c,d]⟶φ[a,b]⟶fℝ.

In certain cases, some standard substitutions help.

In order to make a substitution, three operations have to be done.

  1. Replace f(t) by f(φ(s)).
  2. Replace dt by φ′(s)ds.
  3. Replace the integration bounds a and b by φ−1(a) and φ−1(b).

To remember the second step, think of

dt=dφ(s)=φ′(s)ds,

which in the framework "differential forms“, has a meaning.


The upper curve of the unit circle is the set

{(x,y)∣x2+y2=1,−1≤x≤1,y≥0}.

For a given x, −1≤x≤1, there exists exactly one y fulfilling this condition, namely y=1−x2. Hence, the area of the upper half of the unit circle is the area beneath the graph of the function x↦1−x2, above the interval [−1,1], that is

∫−111−x2dx.

Applying substitution with

x=cos⁡t and t=arccos⁡x

(where cos⁡:[0,π]→[−1,1] is bijective, due to Corollary 16.14 ), we obtain, using Example 20.3 , the identities

∫ab1−x2dx=∫arccos⁡aarccos⁡b1−cos2t(−sin⁡t)dt=−∫arccos⁡aarccos⁡bsin2tdt=12(sin⁡tcos⁡t−t)|arccos⁡aarccos⁡b.

In particular, we get that

12(x⋅sin⁡(arccos⁡x)−arccos⁡x)=12(x⋅1−x2−arccos⁡x)

is a primitive function for 1−x2. Therefore,

∫−111−x2dx=12(x⋅1−x2−arccos⁡x)|−11=12(−arccos⁡1+arccos⁡(−1))=π/2.

We determine a primitive function for x2−1, using the hyperbolic functions sinh⁡t and cosh⁡t, for which the relation cosh2t−sinh2t=1 holds. The substitution

x=cosh⁡t with dx=sinh⁡tdt

yields[1]

∫abx2−1dx=∫arcosh⁡aarcosh⁡bcosh2t−1⋅sinh⁡tdt=∫arcosh⁡aarcosh⁡bsinh2tdt.

A primitive function of the hyperbolic sine squared follows from

sinh2t=(12(et−e−t))2=14(e2t+e−2t−2).

Therefore,

∫sinh2udt=14(12e2u−12e−2u−2u)=14sinh⁡2u−12u,

and hence

∫x2−1dx=14sinh⁡(2arcosh⁡x)−12arcosh⁡x.

Due to the addition theorem for hyperbolic sine, we have sinh⁡2u=2sinh⁡ucosh⁡u, and therefore this primitive function can also be written as

12(sinh⁡(arcosh⁡x)cosh⁡(arcosh⁡x)−arcosh⁡x)=12(cosh⁡(arcosh⁡x)2−1⋅x−arcosh⁡x)=12(x2−1⋅x−arcosh⁡x).

We want to find a primitive function for the function

f(x)=x2(xcos⁡x−sin⁡x)2.

We first determine the derivative of

1xcos⁡x−sin⁡x.

This is

−cos⁡x−xsin⁡x−cos⁡x(xcos⁡x−sin⁡x)2=xsin⁡x(xcos⁡x−sin⁡x)2.

Therefore, we write f as a product f(x)=xsin⁡x(xcos⁡x−sin⁡x)2⋅xsin⁡x. We apply integration by parts, where we integrate the first factor and differentiate the second factor. The derivative of the second factor is

(xsin⁡x)′=sin⁡x−xcos⁡xsin2x.

Hence, we have

∫f(x)dx=1xcos⁡x−sin⁡x⋅xsin⁡x−∫1xcos⁡x−sin⁡x⋅sin⁡x−xcos⁡xsin2xdx=1xcos⁡x−sin⁡x⋅xsin⁡x+∫1sin2xdx=1xcos⁡x−sin⁡x⋅xsin⁡x−cot⁡x.



Footnotes
  1. ↑ The inverse function of the hyperbolic cosine is called area hyperbolic cosine, and is denoted by arcosh⁡x.


<< | Mathematics for Applied Sciences (Osnabrück 2023-2024)/Part I | >>
PDF-version of this lecture
Exercise sheet for this lecture (PDF)