Integration — The Table and the Four Methods

Integration is anti-differentiation: f(x)dx=F(x)+C\int f(x)\,dx = F(x) + C where F=fF' = f, and the constant CC is a mark on the board scheme — omit it and pay.

The standard table (both directions of the derivative table): xndx=xn+1n+1+C\int x^n dx = \frac{x^{n+1}}{n+1} + C (n1n \neq -1); 1xdx=logx+C\int \frac{1}{x}dx = \log\vert x \vert + C; exdx=ex+C\int e^x dx = e^x + C; axdx=axloga+C\int a^x dx = \frac{a^x}{\log a} + C; sinxdx=cosx+C\int \sin x\,dx = -\cos x + C; cosxdx=sinx+C\int \cos x\,dx = \sin x + C; sec2xdx=tanx+C\int \sec^2 x\,dx = \tan x + C; dx1x2=sin1x+C\int \frac{dx}{\sqrt{1-x^2}} = \sin^{-1}x + C; dx1+x2=tan1x+C\int \frac{dx}{1+x^2} = \tan^{-1}x + C. And the derived trio: tanxdx=logsecx+C\int\tan x\,dx = \log\vert\sec x\vert + C, cotxdx=logsinx+C\int\cot x\,dx = \log\vert\sin x\vert + C, secxdx=logsecx+tanx+C\int\sec x\,dx = \log\vert\sec x + \tan x\vert + C.

Method 1 — Substitution: when the integrand contains a function and its derivative, set tt equal to the inner function. 2x1+x2dx\int \frac{2x}{1+x^2}dx: put t=1+x2t = 1 + x^2, dt=2xdxdt = 2x\,dx, giving log(1+x2)+C\log(1 + x^2) + C. The shape f(x)f(x)dx=logf(x)+C\int \frac{f'(x)}{f(x)}dx = \log\vert f(x)\vert + C is worth recognising on sight.

Method 2 — Special quadratic forms: dxx2a2=12alogxax+a+C,dxa2x2=12aloga+xax+C,dxx2+a2=1atan1xa+C\int\frac{dx}{x^2 - a^2} = \frac{1}{2a}\log\left\vert\frac{x-a}{x+a}\right\vert + C, \quad \int\frac{dx}{a^2 - x^2} = \frac{1}{2a}\log\left\vert\frac{a+x}{a-x}\right\vert + C, \quad \int\frac{dx}{x^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{x}{a} + C dxa2x2=sin1xa+C,dxx2±a2=logx+x2±a2+C\int\frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\frac{x}{a} + C, \qquad \int\frac{dx}{\sqrt{x^2 \pm a^2}} = \log\left\vert x + \sqrt{x^2 \pm a^2}\right\vert + C For a general quadratic, complete the square first: x2+2x+2=(x+1)2+1x^2 + 2x + 2 = (x+1)^2 + 1, then apply the matching form.

Method 3 — Integration by parts: uvdx=uvdx(uvdx)dx\int u\,v\,dx = u\int v\,dx - \int\left(u'\int v\,dx\right)dx. Choose uu by ILATE (Inverse trig, Logarithmic, Algebraic, Trigonometric, Exponential) — the earlier in the list, the better a uu. Two must-know products: logxdx=xlogxx+C\int\log x\,dx = x\log x - x + C (take v=1v = 1), and the shortcut ex[f(x)+f(x)]dx=exf(x)+C\int e^x\left[f(x) + f'(x)\right]dx = e^x f(x) + C

Method 4 — Partial fractions (proper rational functions, distinct/repeated linear and quadratic factors): split, then integrate term by term — 1(x+1)(x+2)=1x+11x+2\frac{1}{(x+1)(x+2)} = \frac{1}{x+1} - \frac{1}{x+2} is the template.

Definite Integrals and Their Properties

Fundamental theorem: abf(x)dx=F(b)F(a)\int_a^b f(x)\,dx = F(b) - F(a) — no constant CC in definite answers. Under substitution, change the limits along with the variable.

The property toolkit:

  1. abf(x)dx=abf(t)dt\int_a^b f(x)\,dx = \int_a^b f(t)\,dt (dummy variable) and ab=ba\int_a^b = -\int_b^a.
  2. ab=ac+cb\int_a^b = \int_a^c + \int_c^b (splitting — essential for modulus integrands).
  3. King's property: 0af(x)dx=0af(ax)dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx — add the two copies when f(x)+f(ax)f(x) + f(a-x) simplifies.
  4. Even/odd on symmetric intervals: aaf=20af\int_{-a}^{a} f = 2\int_0^a f for even ff, and =0= 0 for odd ff — check the parity before integrating; many scary integrals are odd and die instantly.

The king-property template: for I=0π/2sinxsinx+cosxdxI = \int_0^{\pi/2}\frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}dx, replacing xx by π2x\frac{\pi}{2} - x swaps sine and cosine, and adding the two versions gives 2I=0π/21dx=π22I = \int_0^{\pi/2} 1\,dx = \frac{\pi}{2}, so I=π4I = \frac{\pi}{4} — the single most-recycled definite integral on board papers.

Worked Examples — Indefinite Integrals

Example 1 — Table warm-up

Evaluate (2x+3cosx+ex)dx\int\left(2x + 3\cos x + e^x\right)dx.

Step 1 — term by term: x2+3sinx+exx^2 + 3\sin x + e^x.

Answer: x2+3sinx+ex+Cx^2 + 3\sin x + e^x + C — one CC for the whole integral, never one per term.

Example 2 — Deriving tanxdx\int\tan x\,dx

Evaluate tanxdx\int \tan x\,dx.

Step 1 — write as a quotient: sinxcosxdx\int\frac{\sin x}{\cos x}dx; put t=cosxt = \cos x, dt=sinxdxdt = -\sin x\,dx.

Step 2 — integrate: dtt=logt=logcosx-\int\frac{dt}{t} = -\log\vert t\vert = -\log\vert\cos x\vert.

Answer: logsecx+C\log\vert\sec x\vert + C — the two forms logcosx-\log\vert\cos x\vert and logsecx\log\vert\sec x\vert are the same answer.

Example 3 — The ff\frac{f'}{f} shape

Evaluate 2x1+x2dx\int\dfrac{2x}{1 + x^2}dx.

Step 1 — recognise numerator = derivative of denominator: so the answer is the log of the denominator.

Answer: log(1+x2)+C\log(1 + x^2) + C (no modulus needed — the denominator is always positive).

Example 4 — Substitution with a power inside

Evaluate xsin(x2)dx\int x\sin(x^2)\,dx.

Step 1 — put t=x2t = x^2: dt=2xdxdt = 2x\,dx, so the integral is 12sintdt\frac{1}{2}\int\sin t\,dt.

Step 2 — integrate and return: 12cost-\frac{1}{2}\cos t.

Answer: 12cos(x2)+C-\dfrac{1}{2}\cos(x^2) + C — the visible factor xx is what makes the substitution work.

Example 5 — Completing the square

Evaluate dxx2+2x+2\int\dfrac{dx}{x^2 + 2x + 2}.

Step 1 — complete the square: x2+2x+2=(x+1)2+1x^2 + 2x + 2 = (x + 1)^2 + 1.

Step 2 — match the tan1\tan^{-1} form with a=1a = 1:

Answer: tan1(x+1)+C\tan^{-1}(x + 1) + C — every irreducible quadratic denominator routes through this two-step.

Example 6 — By parts, ILATE in action

Evaluate xcosxdx\int x\cos x\,dx.

Step 1 — choose uu by ILATE: Algebraic xx beats Trigonometric cosx\cos x, so u=xu = x, v=cosxv = \cos x.

Step 2 — apply the formula: xsinx1sinxdx=xsinx+cosxx\sin x - \int 1\cdot\sin x\,dx = x\sin x + \cos x.

Answer: xsinx+cosx+Cx\sin x + \cos x + C — check by differentiating: sinx+xcosxsinx=xcosx\sin x + x\cos x - \sin x = x\cos x. ✓

Example 7 — The famous logxdx\int\log x\,dx

Evaluate logxdx\int\log x\,dx.

Step 1 — take u=logxu = \log x, v=1v = 1: logxx1xxdx\log x \cdot x - \int\frac{1}{x}\cdot x\,dx.

Step 2 — finish: xlogxxx\log x - x.

Answer: xlogxx+Cx\log x - x + C — the invisible factor 11 is the trick worth remembering.

Example 8 — The ex(f+f)e^x(f + f') shortcut

Evaluate ex(sinx+cosx)dx\int e^x(\sin x + \cos x)\,dx.

Step 1 — match the template: with f(x)=sinxf(x) = \sin x, f(x)=cosxf'(x) = \cos x — exactly ex[f+f]e^x[f + f'].

Answer: exsinx+Ce^x\sin x + C — no by-parts loop needed once the shape is spotted.

Example 9 — Algebraic times exponential

Evaluate xexdx\int xe^x\,dx.

Step 1 — by parts with u=xu = x: xexexdx=xexexxe^x - \int e^x dx = xe^x - e^x.

Answer: (x1)ex+C(x - 1)e^x + C.

Example 10 — Partial fractions

Evaluate dx(x+1)(x+2)\int\dfrac{dx}{(x+1)(x+2)}.

Step 1 — split: 1(x+1)(x+2)=Ax+1+Bx+2\frac{1}{(x+1)(x+2)} = \frac{A}{x+1} + \frac{B}{x+2}; covering up gives A=1A = 1, B=1B = -1.

Step 2 — integrate term by term: logx+1logx+2\log\vert x+1\vert - \log\vert x+2\vert.

Answer: logx+1x+2+C\log\left\vert\dfrac{x+1}{x+2}\right\vert + C.

Worked Examples — Definite Integrals

Example 11 — Fundamental theorem

Evaluate 01x2dx\int_0^1 x^2\,dx.

Step 1 — antiderivative and limits: [x33]01=130\left[\frac{x^3}{3}\right]_0^1 = \frac{1}{3} - 0.

Answer: 13\dfrac{1}{3} — no +C+C in a definite answer.

Example 12 — A trigonometric definite

Evaluate 0π/4sec2xdx\int_0^{\pi/4}\sec^2 x\,dx.

Step 1 — antiderivative: [tanx]0π/4=10\left[\tan x\right]_0^{\pi/4} = 1 - 0.

Answer: 11.

Example 13 — The king property classic

Evaluate I=0π/2sinxsinx+cosxdxI = \int_0^{\pi/2}\dfrac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx.

Step 1 — apply xπ2xx \to \frac{\pi}{2} - x: I=0π/2cosxcosx+sinxdxI = \int_0^{\pi/2}\frac{\sqrt{\cos x}}{\sqrt{\cos x} + \sqrt{\sin x}}dx.

Step 2 — add the two versions: the fractions are complementary: 2I=0π/21dx=π22I = \int_0^{\pi/2} 1\,dx = \frac{\pi}{2}

Answer: I=π4I = \dfrac{\pi}{4} — the add-and-collapse works for every complementary pair on [0,π2]\left[0, \frac{\pi}{2}\right].

Example 14 — Parity kills an integral

Evaluate 11x3dx\int_{-1}^{1} x^3\,dx and state the general principle.

Step 1 — check parity: x3x^3 is odd (f(x)=f(x)f(-x) = -f(x)) and the interval is symmetric.

Answer: 00 by the odd-function property — and for an even integrand the same symmetry gives aa=20a\int_{-a}^{a} = 2\int_0^a. Check parity before computing anything.

Example 15 — King property with squares

Evaluate I=0π/2sin2xdxI = \int_0^{\pi/2}\sin^2 x\,dx.

Step 1 — king: I=0π/2sin2(π2x)dx=0π/2cos2xdxI = \int_0^{\pi/2}\sin^2\left(\frac{\pi}{2} - x\right)dx = \int_0^{\pi/2}\cos^2 x\,dx.

Step 2 — add: 2I=0π/2(sin2x+cos2x)dx=π22I = \int_0^{\pi/2}(\sin^2 x + \cos^2 x)\,dx = \frac{\pi}{2}.

Answer: I=π4I = \dfrac{\pi}{4} — same collapse as Example 13, and faster than the double-angle route.