Ein frei kopier- und anpassbares Lehrmittel von eduskript.org

Integrals

Integration reverses differentiation: F=ffdx=F+CF' = f \Rightarrow \int f\,dx = F + C. The definite integral abfdx\int_a^b f\,dx is the signed area under ff — and by the fundamental theorem, F(b)F(a)F(b) - F(a).

Basic rules

xndx=xn+1n+1+C    (n1)dxx=lnx+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C \;\;(n \neq -1) \qquad \int \frac{dx}{x} = \ln|x| + C

exdx=ex+Csinxdx=cosx+Ccosxdx=sinx+C\int e^x\,dx = e^x + C \qquad \int \sin x\,dx = -\cos x + C \qquad \int \cos x\,dx = \sin x + C

Linearity as with derivatives. Always check by differentiating your result — it's free.

Worked example.

(3x24x+5ex)dx=x34lnx+5ex+C\int \left(3x^2 - \frac{4}{x} + 5e^x\right) dx = x^3 - 4\ln|x| + 5e^x + C

Exercise 2.1

a) (6x22x+7)dx\displaystyle\int \left(6x^2 - 2x + 7\right) dx

b) 3xdx\displaystyle\int \frac{3}{\sqrt{x}}\,dx

c) (2cosx12ex+5x)dx\displaystyle\int \left(2\cos x - \frac{1}{2}e^x + \frac{5}{x}\right) dx

…or hover here and press Ctrl+V to paste a screenshot

Substitution

Reverse chain rule: set u=g(x)u = g(x), then du=g(x)dxdu = g'(x)\,dx and

f(g(x))g(x)dx=f(u)du\int f(g(x))\,g'(x)\,dx = \int f(u)\,du

Pick uu so that its derivative is sitting in the integrand (up to a constant).

Worked example. xex2dx\displaystyle\int x\,e^{x^2}\,dx

u=x2u = x^2, du=2xdxxdx=12dudu = 2x\,dx \Rightarrow x\,dx = \tfrac12 du:

eu12du=12eu+C=12ex2+C\int e^u \cdot \tfrac12\,du = \tfrac12 e^u + C = \tfrac12 e^{x^2} + C

Exercise 2.2

Solve by substitution; state your uu explicitly:

a) (2x+1)5dx\displaystyle\int (2x+1)^5\,dx

b) xx2+3dx\displaystyle\int \frac{x}{x^2 + 3}\,dx

c) cos3xsinxdx\displaystyle\int \cos^3 x \,\sin x\,dx

d) lnxxdx\displaystyle\int \frac{\ln x}{x}\,dx

…or hover here and press Ctrl+V to paste a screenshot

Integration by parts

Reverse product rule:

udv=uvvdu\int u\,dv = uv - \int v\,du

Choose uu as the factor that gets simpler when differentiated (rough priority: ln\ln, polynomial, exponential/trig).

Worked example. xexdx\displaystyle\int x\,e^x\,dx

u=xu = x, dv=exdxdu=dxdv = e^x dx \Rightarrow du = dx, v=exv = e^x:

xexexdx=(x1)ex+Cx e^x - \int e^x\,dx = (x-1)e^x + C

Exercise 2.3

a) xcosxdx\displaystyle\int x \cos x\,dx

b) lnxdx\displaystyle\int \ln x\,dx (hint: u=lnxu = \ln x, dv=dxdv = dx)

c) x2exdx\displaystyle\int x^2 e^x\,dx (parts twice)

…or hover here and press Ctrl+V to paste a screenshot

Definite integrals

abf(x)dx=F(b)F(a)\int_a^b f(x)\,dx = F(b) - F(a)

No +C+C. Area below the axis counts negative. With substitution, transform the bounds too — then you never substitute back.

Worked example. 02(3x22x)dx=[x3x2]02=84=4\displaystyle\int_0^2 (3x^2 - 2x)\,dx = \left[x^3 - x^2\right]_0^2 = 8 - 4 = 4

Worked example (substitution with bounds). 0πxsin(x2)dx\displaystyle\int_0^{\sqrt{\pi}} x \sin(x^2)\,dx with u=x2u = x^2: bounds 000 \to 0, ππ\sqrt{\pi} \to \pi:

120πsinudu=12[cosu]0π=12(1+1)=1\tfrac12 \int_0^{\pi} \sin u\,du = \tfrac12\left[-\cos u\right]_0^\pi = \tfrac12(1 + 1) = 1

See it

Riemann sums converging to 02x2dx=83\int_0^2 x^2\,dx = \tfrac83. Crank N up.

PythonLoading editor…
import numpy as np
import matplotlib.pyplot as plt

f = lambda x: x**2
a, b, N = 0.0, 2.0, 8      # try N = 8, 20, 100

xs = np.linspace(a, b, 400)
edges = np.linspace(a, b, N + 1)
mids = (edges[:-1] + edges[1:]) / 2
w = (b - a) / N

plt.bar(mids, f(mids), width=w, alpha=0.4, edgecolor='k')
plt.plot(xs, f(xs), 'r')
plt.title(f'midpoint sum = {np.sum(f(mids)*w):.5f}   exact = {8/3:.5f}')
plt.grid(True)
plt.show()

Exercise 2.4

a) 13(2x1x2)dx\displaystyle\int_1^3 \left(2x - \frac{1}{x^2}\right) dx

b) 0π/2sin(2x)dx\displaystyle\int_0^{\pi/2} \sin(2x)\,dx

c) 1e(lnx)2xdx\displaystyle\int_1^e \frac{(\ln x)^2}{x}\,dx

…or hover here and press Ctrl+V to paste a screenshot