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 (n≠−1n \neq -1); ∫1xdx=log⁡∣x∣+C\int \frac{1}{x}dx = \log\vert x \vert + C; ∫exdx=ex+C\int e^x dx = e^x + C; ∫axdx=axlog⁡a+C\int a^x dx = \frac{a^x}{\log a} + C; ∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + C; ∫cos⁡x dx=sin⁡x+C\int \cos x\,dx = \sin x + C; ∫sec⁡2x dx=tan⁡x+C\int \sec^2 x\,dx = \tan x + C; ∫dx1−x2=sin⁡−1x+C\int \frac{dx}{\sqrt{1-x^2}} = \sin^{-1}x + C; ∫dx1+x2=tan⁡−1x+C\int \frac{dx}{1+x^2} = \tan^{-1}x + C. And the derived trio: ∫tan⁡x dx=log⁡∣sec⁡x∣+C\int\tan x\,dx = \log\vert\sec x\vert + C, ∫cot⁡x dx=log⁡∣sin⁡x∣+C\int\cot x\,dx = \log\vert\sin x\vert + C, ∫sec⁡x dx=log⁡∣sec⁡x+tan⁡x∣+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=2x dxdt = 2x\,dx, giving log⁡(1+x2)+C\log(1 + x^2) + C. The shape ∫f′(x)f(x)dx=log⁡∣f(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: ∫dxx2−a2=12alog⁡∣x−ax+a∣+C,∫dxa2−x2=12alog⁡∣a+xa−x∣+C,∫dxx2+a2=1atan⁡−1xa+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 ∫dxa2−x2=sin⁡−1xa+C,∫dxx2±a2=log⁡∣x+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: ∫u v dx=u∫v dx−∫(u′∫v dx)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: ∫log⁡x dx=xlog⁡x−x+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+1−1x+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(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx — add the two copies when f(x)+f(a−x)f(x) + f(a-x) simplifies.
  4. Even/odd on symmetric intervals: ∫−aaf=2∫0af\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π/2sin⁡xsin⁡x+cos⁡xdxI = \int_0^{\pi/2}\frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}dx, replacing xx by π2−x\frac{\pi}{2} - x swaps sine and cosine, and adding the two versions gives 2I=∫0π/21 dx=π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+3cos⁡x+ex)dx\int\left(2x + 3\cos x + e^x\right)dx.

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

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

Example 2 — Deriving ∫tan⁡x dx\int\tan x\,dx

Evaluate ∫tan⁡x dx\int \tan x\,dx.

Step 1 — write as a quotient: ∫sin⁡xcos⁡xdx\int\frac{\sin x}{\cos x}dx; put t=cos⁡xt = \cos x, dt=−sin⁡x dxdt = -\sin x\,dx.

Step 2 — integrate: −∫dtt=−log⁡∣t∣=−log⁡∣cos⁡x∣-\int\frac{dt}{t} = -\log\vert t\vert = -\log\vert\cos x\vert.

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

Example 3 — The f′f\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=2x dxdt = 2x\,dx, so the integral is 12∫sin⁡t dt\frac{1}{2}\int\sin t\,dt.

Step 2 — integrate and return: −12cos⁡t-\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 tan⁡−1\tan^{-1} form with a=1a = 1:

Answer: tan⁡−1(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 ∫xcos⁡x dx\int x\cos x\,dx.

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

Step 2 — apply the formula: xsin⁡x−∫1⋅sin⁡x dx=xsin⁡x+cos⁡xx\sin x - \int 1\cdot\sin x\,dx = x\sin x + \cos x.

Answer: xsin⁡x+cos⁡x+Cx\sin x + \cos x + C — check by differentiating: sin⁡x+xcos⁡x−sin⁡x=xcos⁡x\sin x + x\cos x - \sin x = x\cos x. ✓

Example 7 — The famous ∫log⁡x dx\int\log x\,dx

Evaluate ∫log⁡x dx\int\log x\,dx.

Step 1 — take u=log⁡xu = \log x, v=1v = 1: log⁡x⋅x−∫1x⋅x dx\log x \cdot x - \int\frac{1}{x}\cdot x\,dx.

Step 2 — finish: xlog⁡x−xx\log x - x.

Answer: xlog⁡x−x+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(sin⁡x+cos⁡x) dx\int e^x(\sin x + \cos x)\,dx.

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

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

Example 9 — Algebraic times exponential

Evaluate ∫xex dx\int xe^x\,dx.

Step 1 — by parts with u=xu = x: xex−∫exdx=xex−exxe^x - \int e^x dx = xe^x - e^x.

Answer: (x−1)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: log⁡∣x+1∣−log⁡∣x+2∣\log\vert x+1\vert - \log\vert x+2\vert.

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

Worked Examples — Definite Integrals

Example 11 — Fundamental theorem

Evaluate ∫01x2 dx\int_0^1 x^2\,dx.

Step 1 — antiderivative and limits: [x33]01=13−0\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π/4sec⁡2x dx\int_0^{\pi/4}\sec^2 x\,dx.

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

Answer: 11.

Example 13 — The king property classic

Evaluate I=∫0π/2sin⁡xsin⁡x+cos⁡x dxI = \int_0^{\pi/2}\dfrac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx.

Step 1 — apply x→π2−xx \to \frac{\pi}{2} - x: I=∫0π/2cos⁡xcos⁡x+sin⁡xdxI = \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π/21 dx=π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 ∫−11x3 dx\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=2∫0a\int_{-a}^{a} = 2\int_0^a. Check parity before computing anything.

Example 15 — King property with squares

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

Step 1 — king: I=∫0π/2sin⁡2(π2−x)dx=∫0π/2cos⁡2x dxI = \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(sin⁡2x+cos⁡2x) 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.

Trigonometric Integrals

Even powers — reduce the power first: use sin⁡2x=1−cos⁡2x2\sin^2 x = \frac{1 - \cos 2x}{2} and cos⁡2x=1+cos⁡2x2\cos^2 x = \frac{1 + \cos 2x}{2}. Never integrate an even power directly — convert to first-degree cosines of multiple angles, then use the table.

Odd powers — peel one factor and substitute: write sin⁡3x=sin⁡x(1−cos⁡2x)\sin^3 x = \sin x\left(1 - \cos^2 x\right) and put t=cos⁡xt = \cos x. The peeled factor becomes the dtdt; what remains is a polynomial in tt.

Products with different angles — product-to-sum identities: 2sin⁡Acos⁡B=sin⁡(A+B)+sin⁡(A−B)2\sin A\cos B = \sin(A+B) + \sin(A-B) 2cos⁡Acos⁡B=cos⁡(A+B)+cos⁡(A−B),2sin⁡Asin⁡B=cos⁡(A−B)−cos⁡(A+B)2\cos A\cos B = \cos(A+B) + \cos(A-B), \qquad 2\sin A\sin B = \cos(A-B) - \cos(A+B) Convert the product into a sum of single sines and cosines, then integrate term by term.

The (px+q)(px + q) Numerator Technique

For ∫px+qax2+bx+c dx\int\frac{px+q}{ax^2+bx+c}\,dx or ∫px+qax2+bx+c dx\int\frac{px+q}{\sqrt{ax^2+bx+c}}\,dx, express the numerator through the derivative of the quadratic: px+q=A (2ax+b)+Bpx + q = A\,(2ax + b) + B and compare coefficients to find AA and BB. The AA-part is then an f′f\frac{f'}{f} logarithm (or 2f2\sqrt{f} when the quadratic sits under a root), and the BB-part is a standard special form after completing the square. This two-line split is the most heavily tested indefinite-integration move on board papers.

The Square-Root Integrals (learn all three)

∫a2−x2 dx=x2a2−x2+a22sin⁡−1xa+C\int\sqrt{a^2 - x^2}\,dx = \frac{x}{2}\sqrt{a^2 - x^2} + \frac{a^2}{2}\sin^{-1}\frac{x}{a} + C ∫x2+a2 dx=x2x2+a2+a22log⁡∣x+x2+a2∣+C\int\sqrt{x^2 + a^2}\,dx = \frac{x}{2}\sqrt{x^2 + a^2} + \frac{a^2}{2}\log\left\vert x + \sqrt{x^2 + a^2}\right\vert + C ∫x2−a2 dx=x2x2−a2−a22log⁡∣x+x2−a2∣+C\int\sqrt{x^2 - a^2}\,dx = \frac{x}{2}\sqrt{x^2 - a^2} - \frac{a^2}{2}\log\left\vert x + \sqrt{x^2 - a^2}\right\vert + C Memory hook: the first term is always x2\frac{x}{2} times the root itself; the second carries a22\frac{a^2}{2} and copies the matching ∫dx  ⋅  \int\frac{dx}{\sqrt{\;\cdot\;}} partner — sin⁡−1\sin^{-1} for a2−x2a^2 - x^2, the log for the other two, with a minus sign only in the x2−a2x^2 - a^2 case. For a general quadratic under the root, complete the square first and then apply the matching result.

Partial Fractions — The Full Menu

Factor in the denominator Terms you must write
(x−a)(x - a) Ax−a\dfrac{A}{x - a}
(x−a)2(x - a)^2 Ax−a+B(x−a)2\dfrac{A}{x - a} + \dfrac{B}{(x - a)^2}
x2+bx+cx^2 + bx + c (irreducible) Ax+Bx2+bx+c\dfrac{Ax + B}{x^2 + bx + c}

A repeated factor needs both terms — writing only B(x−a)2\frac{B}{(x-a)^2} is the classic half-mark error.

Improper fractions — divide first. When the numerator's degree is at least the denominator's, do the polynomial division before splitting: x2x2+1=1−11+x2\frac{x^2}{x^2 + 1} = 1 - \frac{1}{1 + x^2}. One line of division saves a page of wrong algebra.

Definite Integrals — Substitution and the 2a2a Property

Substitution in a definite integral: change the limits and never come back to xx. In ∫01xx2+1 dx\int_0^1\frac{x}{x^2+1}\,dx with t=x2+1t = x^2 + 1, the limits move to t=1t = 1 and t=2t = 2, and the answer is read off directly in tt.

The 2a2a property: ∫02af(x) dx=∫0af(x) dx+∫0af(2a−x) dx\int_0^{2a} f(x)\,dx = \int_0^a f(x)\,dx + \int_0^a f(2a - x)\,dx so the integral doubles when f(2a−x)=f(x)f(2a - x) = f(x) and vanishes when f(2a−x)=−f(x)f(2a - x) = -f(x). Combined with the king's property on [0,π][0, \pi], this cracks the celebrated ∫0πxsin⁡x1+cos⁡2x dx\int_0^{\pi}\frac{x\sin x}{1 + \cos^2 x}\,dx family — see Example 26.

Worked Examples — Trigonometric Integrals

Example 16 — Even power of sine

Evaluate ∫sin⁡2x dx\int\sin^2 x\,dx.

Step 1 — power-reduce: sin⁡2x=1−cos⁡2x2\sin^2 x = \dfrac{1 - \cos 2x}{2}.

Step 2 — integrate term by term: x2−sin⁡2x4\dfrac{x}{2} - \dfrac{\sin 2x}{4}.

Answer: x2−sin⁡2x4+C\dfrac{x}{2} - \dfrac{\sin 2x}{4} + C — the identity does the work; the table finishes it.

Example 17 — Product to sum

Evaluate ∫sin⁡3xcos⁡4x dx\int\sin 3x\cos 4x\,dx.

Step 1 — convert the product: 2sin⁡3xcos⁡4x=sin⁡7x+sin⁡(−x)2\sin 3x\cos 4x = \sin 7x + \sin(-x), so sin⁡3xcos⁡4x=12(sin⁡7x−sin⁡x)\sin 3x\cos 4x = \dfrac{1}{2}\left(\sin 7x - \sin x\right).

Step 2 — integrate: 12(−cos⁡7x7+cos⁡x)\dfrac{1}{2}\left(-\dfrac{\cos 7x}{7} + \cos x\right).

Answer: −cos⁡7x14+cos⁡x2+C-\dfrac{\cos 7x}{14} + \dfrac{\cos x}{2} + C — watch the sign: sin⁡(−x)=−sin⁡x\sin(-x) = -\sin x.

Example 18 — Odd power of sine

Evaluate ∫sin⁡3x dx\int\sin^3 x\,dx.

Step 1 — peel one sine: ∫sin⁡x(1−cos⁡2x)dx\int\sin x\left(1 - \cos^2 x\right)dx; put t=cos⁡xt = \cos x, dt=−sin⁡x dxdt = -\sin x\,dx.

Step 2 — polynomial in tt: −∫(1−t2)dt=−t+t33-\int\left(1 - t^2\right)dt = -t + \dfrac{t^3}{3}.

Answer: −cos⁡x+cos⁡3x3+C-\cos x + \dfrac{\cos^3 x}{3} + C.

Worked Examples — The (px+q)(px+q) Split and Root Forms

Example 19 — Linear over quadratic

Evaluate ∫x+3x2+2x+5 dx\int\dfrac{x + 3}{x^2 + 2x + 5}\,dx.

Step 1 — split the numerator through the derivative: x+3=12(2x+2)+2x + 3 = \dfrac{1}{2}(2x + 2) + 2.

Step 2 — the f′f\frac{f'}{f} part: 12∫2x+2x2+2x+5dx=12log⁡(x2+2x+5)\dfrac{1}{2}\int\dfrac{2x+2}{x^2+2x+5}dx = \dfrac{1}{2}\log\left(x^2 + 2x + 5\right).

Step 3 — the constant part, complete the square: x2+2x+5=(x+1)2+4x^2 + 2x + 5 = (x+1)^2 + 4, so 2∫dx(x+1)2+22=2⋅12tan⁡−1x+122\int\dfrac{dx}{(x+1)^2 + 2^2} = 2\cdot\dfrac{1}{2}\tan^{-1}\dfrac{x+1}{2}.

Answer: 12log⁡(x2+2x+5)+tan⁡−1x+12+C\dfrac{1}{2}\log\left(x^2 + 2x + 5\right) + \tan^{-1}\dfrac{x+1}{2} + C — the two-part answer (log plus inverse tan) is the signature of this technique.

Example 20 — Root of a quadratic

Evaluate ∫dx5−4x−x2\int\dfrac{dx}{\sqrt{5 - 4x - x^2}}.

Step 1 — complete the square inside the root: 5−4x−x2=9−(x+2)25 - 4x - x^2 = 9 - (x + 2)^2.

Step 2 — match ∫dxa2−u2=sin⁡−1ua\int\frac{dx}{\sqrt{a^2 - u^2}} = \sin^{-1}\frac{u}{a} with a=3a = 3, u=x+2u = x + 2:

Answer: sin⁡−1x+23+C\sin^{-1}\dfrac{x + 2}{3} + C.

Example 21 — The a2−x2\sqrt{a^2 - x^2} result in action

Evaluate ∫4−x2 dx\int\sqrt{4 - x^2}\,dx.

Step 1 — identify a=2a = 2 and quote the standard result:

Answer: x24−x2+2sin⁡−1x2+C\dfrac{x}{2}\sqrt{4 - x^2} + 2\sin^{-1}\dfrac{x}{2} + C — the coefficient of the inverse sine is a22=2\frac{a^2}{2} = 2, not aa.

Worked Examples — Partial Fractions, All Cases

Example 22 — Repeated linear factor

Evaluate ∫dx(x−1)2(x+2)\int\dfrac{dx}{(x-1)^2(x+2)}.

Step 1 — write all three terms: 1(x−1)2(x+2)=Ax−1+B(x−1)2+Dx+2\dfrac{1}{(x-1)^2(x+2)} = \dfrac{A}{x-1} + \dfrac{B}{(x-1)^2} + \dfrac{D}{x+2}; cover-up at x=1x = 1 gives B=13B = \dfrac{1}{3}, at x=−2x = -2 gives D=19D = \dfrac{1}{9}, and comparing constants gives A=−19A = -\dfrac{1}{9}.

Step 2 — integrate each: −19log⁡∣x−1∣−13(x−1)+19log⁡∣x+2∣-\dfrac{1}{9}\log\vert x-1\vert - \dfrac{1}{3(x-1)} + \dfrac{1}{9}\log\vert x+2\vert.

Answer: 19log⁡∣x+2x−1∣−13(x−1)+C\dfrac{1}{9}\log\left\vert\dfrac{x+2}{x-1}\right\vert - \dfrac{1}{3(x-1)} + C — note the (x−1)−2(x-1)^{-2} term integrates to an algebraic term, not a log.

Example 23 — Irreducible quadratic factor

Evaluate ∫dxx(x2+1)\int\dfrac{dx}{x\left(x^2 + 1\right)}.

Step 1 — split with a linear numerator on the quadratic: 1x(x2+1)=1x−xx2+1\dfrac{1}{x(x^2+1)} = \dfrac{1}{x} - \dfrac{x}{x^2+1}.

Step 2 — integrate: log⁡∣x∣−12log⁡(x2+1)\log\vert x\vert - \dfrac{1}{2}\log\left(x^2 + 1\right).

Answer: log⁡∣x∣−12log⁡(x2+1)+C\log\vert x\vert - \dfrac{1}{2}\log\left(x^2 + 1\right) + C — the second term is an f′f\frac{f'}{f} log after adjusting by 12\frac{1}{2}.

Example 24 — Improper fraction: divide first

Evaluate ∫x2x2+1 dx\int\dfrac{x^2}{x^2 + 1}\,dx.

Step 1 — divide: x2x2+1=1−11+x2\dfrac{x^2}{x^2+1} = 1 - \dfrac{1}{1 + x^2}.

Answer: x−tan⁡−1x+Cx - \tan^{-1}x + C — partial fractions without dividing first would have failed silently.

Worked Examples — Definite Techniques

Example 25 — Substitution with limit change

Evaluate ∫01xx2+1 dx\int_0^1\dfrac{x}{x^2 + 1}\,dx.

Step 1 — put t=x2+1t = x^2 + 1, dt=2x dxdt = 2x\,dx, and move the limits: x=0⇒t=1x = 0 \Rightarrow t = 1; x=1⇒t=2x = 1 \Rightarrow t = 2.

Step 2 — evaluate in tt: 12∫12dtt=12[log⁡t]12\dfrac{1}{2}\int_1^2\dfrac{dt}{t} = \dfrac{1}{2}\left[\log t\right]_1^2.

Answer: 12log⁡2\dfrac{1}{2}\log 2 — no return to xx, no constant CC.

Example 26 — The π24\frac{\pi^2}{4} classic

Evaluate I=∫0πxsin⁡x1+cos⁡2x dxI = \int_0^{\pi}\dfrac{x\sin x}{1 + \cos^2 x}\,dx.

Step 1 — king's property with a=πa = \pi: I=∫0π(π−x)sin⁡x1+cos⁡2x dxI = \int_0^{\pi}\dfrac{(\pi - x)\sin x}{1 + \cos^2 x}\,dx (sine and cosine-squared are unchanged under x→π−xx \to \pi - x).

Step 2 — add the two versions: 2I=π∫0πsin⁡x1+cos⁡2x dx2I = \pi\int_0^{\pi}\dfrac{\sin x}{1 + \cos^2 x}\,dx.

Step 3 — substitute t=cos⁡xt = \cos x, limits 11 to −1-1: 2I=π∫−11dt1+t2=π[tan⁡−1t]−11=π⋅π22I = \pi\int_{-1}^{1}\dfrac{dt}{1 + t^2} = \pi\left[\tan^{-1}t\right]_{-1}^{1} = \pi\cdot\dfrac{\pi}{2}.

Answer: I=π24I = \dfrac{\pi^2}{4} — king's property removes the xx, substitution finishes the rest; the single most famous definite integral in the chapter.