Integration reverses differentiation: F ′ = f ⇒ ∫ f d x = F + C F' = f \Rightarrow \int f\,dx = F + C F ′ = f ⇒ ∫ f d x = F + C . The definite integral ∫ a b f d x \int_a^b f\,dx ∫ a b f d x is the signed area under f f f — and by the fundamental theorem, F ( b ) − F ( a ) F(b) - F(a) F ( b ) − F ( a ) .
∫ x n d x = x n + 1 n + 1 + C ( n ≠ − 1 ) ∫ d x x = ln ∣ x ∣ + C \int x^n\,dx = \frac{x^{n+1}}{n+1} + C \;\;(n \neq -1) \qquad \int \frac{dx}{x} = \ln|x| + C ∫ x n d x = n + 1 x n + 1 + C ( n = − 1 ) ∫ x d x = ln ∣ x ∣ + C
∫ e x d x = e x + C ∫ sin x d x = − cos x + C ∫ cos x d x = sin x + C \int e^x\,dx = e^x + C \qquad \int \sin x\,dx = -\cos x + C \qquad \int \cos x\,dx = \sin x + C ∫ e x d x = e x + C ∫ sin x d x = − cos x + C ∫ cos x d x = sin x + C
Linearity as with derivatives. Always check by differentiating your result — it's free.
Worked example.
∫ ( 3 x 2 − 4 x + 5 e x ) d x = x 3 − 4 ln ∣ x ∣ + 5 e x + C \int \left(3x^2 - \frac{4}{x} + 5e^x\right) dx = x^3 - 4\ln|x| + 5e^x + C ∫ ( 3 x 2 − x 4 + 5 e x ) d x = x 3 − 4 ln ∣ x ∣ + 5 e x + C
a) ∫ ( 6 x 2 − 2 x + 7 ) d x \displaystyle\int \left(6x^2 - 2x + 7\right) dx ∫ ( 6 x 2 − 2 x + 7 ) d x
b) ∫ 3 x d x \displaystyle\int \frac{3}{\sqrt{x}}\,dx ∫ x 3 d x
c) ∫ ( 2 cos x − 1 2 e x + 5 x ) d x \displaystyle\int \left(2\cos x - \frac{1}{2}e^x + \frac{5}{x}\right) dx ∫ ( 2 cos x − 2 1 e x + x 5 ) d x
Get AI feedback…or hover here and press Ctrl+V to paste a screenshot
Reverse chain rule: set u = g ( x ) u = g(x) u = g ( x ) , then d u = g ′ ( x ) d x du = g'(x)\,dx d u = g ′ ( x ) d x and
∫ f ( g ( x ) ) g ′ ( x ) d x = ∫ f ( u ) d u \int f(g(x))\,g'(x)\,dx = \int f(u)\,du ∫ f ( g ( x )) g ′ ( x ) d x = ∫ f ( u ) d u
Pick u u u so that its derivative is sitting in the integrand (up to a constant).
Worked example. ∫ x e x 2 d x \displaystyle\int x\,e^{x^2}\,dx ∫ x e x 2 d x
u = x 2 u = x^2 u = x 2 , d u = 2 x d x ⇒ x d x = 1 2 d u du = 2x\,dx \Rightarrow x\,dx = \tfrac12 du d u = 2 x d x ⇒ x d x = 2 1 d u :
∫ e u ⋅ 1 2 d u = 1 2 e u + C = 1 2 e x 2 + C \int e^u \cdot \tfrac12\,du = \tfrac12 e^u + C = \tfrac12 e^{x^2} + C ∫ e u ⋅ 2 1 d u = 2 1 e u + C = 2 1 e x 2 + C
Solve by substitution; state your u u u explicitly:
a) ∫ ( 2 x + 1 ) 5 d x \displaystyle\int (2x+1)^5\,dx ∫ ( 2 x + 1 ) 5 d x
b) ∫ x x 2 + 3 d x \displaystyle\int \frac{x}{x^2 + 3}\,dx ∫ x 2 + 3 x d x
c) ∫ cos 3 x sin x d x \displaystyle\int \cos^3 x \,\sin x\,dx ∫ cos 3 x sin x d x
d) ∫ ln x x d x \displaystyle\int \frac{\ln x}{x}\,dx ∫ x ln x d x
Get AI feedback…or hover here and press Ctrl+V to paste a screenshot
Reverse product rule:
∫ u d v = u v − ∫ v d u \int u\,dv = uv - \int v\,du ∫ u d v = uv − ∫ v d u
Choose u u u as the factor that gets simpler when differentiated (rough priority: ln \ln ln , polynomial, exponential/trig).
Worked example. ∫ x e x d x \displaystyle\int x\,e^x\,dx ∫ x e x d x
u = x u = x u = x , d v = e x d x ⇒ d u = d x dv = e^x dx \Rightarrow du = dx d v = e x d x ⇒ d u = d x , v = e x v = e^x v = e x :
x e x − ∫ e x d x = ( x − 1 ) e x + C x e^x - \int e^x\,dx = (x-1)e^x + C x e x − ∫ e x d x = ( x − 1 ) e x + C
a) ∫ x cos x d x \displaystyle\int x \cos x\,dx ∫ x cos x d x
b) ∫ ln x d x \displaystyle\int \ln x\,dx ∫ ln x d x (hint: u = ln x u = \ln x u = ln x , d v = d x dv = dx d v = d x )
c) ∫ x 2 e x d x \displaystyle\int x^2 e^x\,dx ∫ x 2 e x d x (parts twice)
Get AI feedback…or hover here and press Ctrl+V to paste a screenshot
∫ a b f ( x ) d x = F ( b ) − F ( a ) \int_a^b f(x)\,dx = F(b) - F(a) ∫ a b f ( x ) d x = F ( b ) − F ( a )
No + C +C + C . Area below the axis counts negative. With substitution, transform the bounds too — then you never substitute back.
Worked example. ∫ 0 2 ( 3 x 2 − 2 x ) d x = [ x 3 − x 2 ] 0 2 = 8 − 4 = 4 \displaystyle\int_0^2 (3x^2 - 2x)\,dx = \left[x^3 - x^2\right]_0^2 = 8 - 4 = 4 ∫ 0 2 ( 3 x 2 − 2 x ) d x = [ x 3 − x 2 ] 0 2 = 8 − 4 = 4
Worked example (substitution with bounds). ∫ 0 π x sin ( x 2 ) d x \displaystyle\int_0^{\sqrt{\pi}} x \sin(x^2)\,dx ∫ 0 π x sin ( x 2 ) d x with u = x 2 u = x^2 u = x 2 : bounds 0 → 0 0 \to 0 0 → 0 , π → π \sqrt{\pi} \to \pi π → π :
1 2 ∫ 0 π sin u d u = 1 2 [ − cos u ] 0 π = 1 2 ( 1 + 1 ) = 1 \tfrac12 \int_0^{\pi} \sin u\,du = \tfrac12\left[-\cos u\right]_0^\pi = \tfrac12(1 + 1) = 1 2 1 ∫ 0 π sin u d u = 2 1 [ − cos u ] 0 π = 2 1 ( 1 + 1 ) = 1
Riemann sums converging to ∫ 0 2 x 2 d x = 8 3 \int_0^2 x^2\,dx = \tfrac83 ∫ 0 2 x 2 d x = 3 8 . Crank N up.
Python Loading 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()
a) ∫ 1 3 ( 2 x − 1 x 2 ) d x \displaystyle\int_1^3 \left(2x - \frac{1}{x^2}\right) dx ∫ 1 3 ( 2 x − x 2 1 ) d x
b) ∫ 0 π / 2 sin ( 2 x ) d x \displaystyle\int_0^{\pi/2} \sin(2x)\,dx ∫ 0 π /2 sin ( 2 x ) d x
c) ∫ 1 e ( ln x ) 2 x d x \displaystyle\int_1^e \frac{(\ln x)^2}{x}\,dx ∫ 1 e x ( ln x ) 2 d x
Get AI feedback…or hover here and press Ctrl+V to paste a screenshot