Chapter 07
Medium

Techniques of Integration

00 · Symbol Glossary

$u,\ du$u-substitution variables

A new variable uu chosen to replace some expression inside the integrand, together with its differential dudu. Distinct from Chapter 03's chain-rule uu, but built on the identical idea of naming an inner expression.

$\ln\lvert x\rvert$natural log of the absolute value of x

The antiderivative of 1x\dfrac{1}{x} — the exception flagged in Chapter 06 for n=1n=-1 in the power rule. The absolute value keeps the expression defined for negative xx, since ln\ln itself is only defined for positive inputs.

$\int u\,dv = uv - \int v\,du$integration by parts formula

A formula for integrating a product of two expressions, derived by reversing the product rule (Chapter 02). uu and dvdv are chosen from the two pieces of the original integrand.

$\dfrac{A}{x-r_1} + \dfrac{B}{x-r_2}$partial fraction decomposition

Rewriting a single rational expression as a sum of simpler fractions, each with an antiderivative that is a natural logarithm — used to integrate rational functions the power rule cannot handle directly.


01 · u-Substitution

The power rule for integration (Chapter 06) only handles a bare power of xx. When the integrand is a composite function — the reverse of a chain-rule derivative from Chapter 03 — a substitution undoes that composition first.

Definition — u-Substitution

To evaluate f(g(x))g(x)dx\int f(g(x))\,g'(x)\,dx:

  1. Let u=g(x)u = g(x).
  2. Compute du=g(x)dxdu = g'(x)\,dx.
  3. Rewrite the integral entirely in terms of uu: f(u)du\int f(u)\,du.
  4. Integrate with respect to uu, then substitute g(x)g(x) back in for uu.
Step-by-step — Evaluate $\int 2x(x^2+1)^4\,dx$
1
Choose the inner expression as uu: let u=x2+1u = x^2+1 — this is the expression being raised to a power, matching the inner-function role from Chapter 03's chain rule.
2
Differentiate to find dudu: dudx=2x    du=2xdx\dfrac{du}{dx} = 2x \implies du = 2x\,dx.
3
Substitute — notice 2xdx2x\,dx appears exactly in the integrand: 2x(x2+1)4dx=u4du\int 2x(x^2+1)^4\,dx = \int u^4\,du.
4
Integrate using the power rule (Chapter 06): u4du=u55+C\int u^4\,du = \dfrac{u^5}{5}+C.
5
Substitute x2+1x^2+1 back in for uu: (x2+1)55+C\dfrac{(x^2+1)^5}{5}+C.
6
Verify by differentiating the result (Chapter 03's chain rule): ddx[(x2+1)55]=155(x2+1)42x=2x(x2+1)4\dfrac{d}{dx}\left[\dfrac{(x^2+1)^5}{5}\right] = \dfrac{1}{5}\cdot5(x^2+1)^4\cdot2x = 2x(x^2+1)^4 — matches the original integrand. ✓
❌ Substituting when the exact du is not present

Attempting x(x2+1)4dx\int x(x^2+1)^4\,dx (note: no factor of 22 in front of xx, unlike the worked example) with u=x2+1u=x^2+1, du=2xdxdu=2x\,dx.

Why it breaks: the integrand only has xdxx\,dx, not 2xdx2x\,dx — the substitution needs du=2xdxdu=2x\,dx to appear exactly, and xdxx\,dx is not literally dudu.

Correct fix: solve for the missing piece: xdx=12dux\,dx = \dfrac{1}{2}du (dividing the dudu equation by 22), then substitute: x(x2+1)4dx=u412du=12u4du=u510+C=(x2+1)510+C\int x(x^2+1)^4dx = \int u^4\cdot\dfrac12\,du = \dfrac12\int u^4\,du = \dfrac{u^5}{10}+C = \dfrac{(x^2+1)^5}{10}+C.

Consequence: a missing constant factor is recoverable by algebra, but a substitution is only directly usable when every part of dudu (up to a constant multiple) is present in the original integrand — if xx appeared with the wrong power or in a different combination, no constant fix would work, and a different technique would be needed.


02 · The Antiderivative of 1/x

Chapter 06 flagged n=1n=-1 as the exception to the power rule for integration. Its antiderivative is the natural logarithm.

Definition — Antiderivative of 1/x
1xdx=lnx+C\int \frac{1}{x}\,dx = \ln\lvert x\rvert + C

Verify by differentiating: ddx[lnx]=1x\dfrac{d}{dx}\big[\ln\lvert x\rvert\big] = \dfrac{1}{x} for x0x\neq0, matching Chapter 06's requirement F(x)=f(x)F'(x)=f(x).

Step-by-step — Evaluate $\int \dfrac{3x^2}{x^3+2}\,dx$ using substitution
1
Choose uu: let u=x3+2u = x^3+2 (the denominator).
2
Differentiate: du=3x2dxdu = 3x^2\,dx — matching the numerator exactly.
3
Substitute: 3x2x3+2dx=1udu\int \dfrac{3x^2}{x^3+2}\,dx = \int \dfrac{1}{u}\,du.
4
Integrate: 1udu=lnu+C\int\dfrac1u\,du = \ln\lvert u\rvert + C.
5
Substitute back: lnx3+2+C\ln\lvert x^3+2\rvert + C.

03 · Integration by Parts

u-substitution reverses the chain rule. Integration by parts reverses the product rule (Chapter 02), for integrands that are a product of two different types of expressions where substitution alone does not simplify things.

Definition — Integration by Parts

Starting from the product rule ddx[uv]=uv+uv\dfrac{d}{dx}[uv] = u'v+uv', integrate both sides and rearrange:

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

uu — the factor chosen to be differentiated (should get simpler after differentiating).

dvdv — the remaining factor, chosen to be integrated (should be straightforward to integrate).

Where the trig and exponential antiderivatives below come from

The worked examples in this section use sinx\sin x, cosx\cos x, and exe^x alongside polynomials. Their derivatives — ddx[sinx]=cosx\dfrac{d}{dx}[\sin x]=\cos x, ddx[cosx]=sinx\dfrac{d}{dx}[\cos x]=-\sin x, ddx[ex]=ex\dfrac{d}{dx}[e^x]=e^x — were derived from the limit definition in Chapter 02, Sections 09–10. Reading each antiderivative below as "the function whose derivative is the integrand" reuses those established facts directly, run in reverse.

Choosing u wisely

A common heuristic: choose uu to be the piece that becomes simpler when differentiated — for instance, xx differentiates to 11, while an exponential or trigonometric factor tends to stay structurally similar under differentiation and is often easier to integrate. Picking the wrong piece for uu can produce an integral that is more complicated than the original.

Step-by-step — Evaluate $\int x\cos x\,dx$
1
Choose uu and dvdv: let u=xu=x (simplifies to 11 under differentiation) and dv=cosxdxdv=\cos x\,dx.
2
Compute dudu and vv: du=1dx=dxdu = 1\,dx = dx; integrating dvdv: v=sinxv=\sin x (Chapter 02, Section 09: ddx[sinx]=cosx\frac{d}{dx}[\sin x]=\cos x, so sinx\sin x is an antiderivative of cosx\cos x).
3
Apply the formula: xcosxdx=uvvdu=xsinxsinxdx\int x\cos x\,dx = uv - \int v\,du = x\sin x - \int \sin x\,dx.
4
Evaluate the remaining integral: sinxdx=cosx+C\int\sin x\,dx = -\cos x + C (since ddx[cosx]=sinx\frac{d}{dx}[-\cos x]=\sin x).
5
Assemble: xsinx(cosx)+C=xsinx+cosx+Cx\sin x - (-\cos x) + C = x\sin x + \cos x + C.
6
Verify by differentiating (product rule + Chapter 02): ddx[xsinx+cosx]=(1sinx+xcosx)+(sinx)=xcosx\dfrac{d}{dx}\big[x\sin x + \cos x\big] = (1\cdot\sin x + x\cos x) + (-\sin x) = x\cos x. Matches. ✓
❌ Choosing u and dv the wrong way around

On the same integral xcosxdx\int x\cos x\,dx, choosing instead u=cosxu=\cos x, dv=xdxdv = x\,dx: then du=sinxdxdu=-\sin x\,dx, v=x22v=\dfrac{x^2}{2}.

Why it breaks: the formula gives xcosxdx=x22cosxx22(sinx)dx=x22cosx+12x2sinxdx\int x\cos x\,dx = \dfrac{x^2}{2}\cos x - \int \dfrac{x^2}{2}(-\sin x)\,dx = \dfrac{x^2}{2}\cos x + \dfrac12\int x^2\sin x\,dx. The remaining integral x2sinxdx\int x^2\sin x\,dx is now more complicated than the original — the power of xx went up, not down.

Consequence: this choice does not fail outright (the formula is still valid), but it makes no progress toward a solvable integral. The heuristic in the note above — pick uu so differentiating it simplifies the expression — exists precisely to avoid this dead end.


04 · Partial Fractions

Rational functions (one polynomial divided by another) sometimes cannot be integrated directly, but if the denominator factors into distinct linear pieces, the fraction can be split into simpler pieces that each integrate to a logarithm (Section 02).

Definition — Partial Fraction Decomposition (distinct linear factors)

For a rational function with denominator (xr1)(xr2)(x-r_1)(x-r_2) (distinct roots) and numerator of lower degree than the denominator:

p(x)(xr1)(xr2)=Axr1+Bxr2\frac{p(x)}{(x-r_1)(x-r_2)} = \frac{A}{x-r_1} + \frac{B}{x-r_2}

for constants A,BA,B to be determined.

Step-by-step — Evaluate $\int \dfrac{5x-1}{(x-1)(x+2)}\,dx$
1
Set up the decomposition: 5x1(x1)(x+2)=Ax1+Bx+2\dfrac{5x-1}{(x-1)(x+2)} = \dfrac{A}{x-1} + \dfrac{B}{x+2}.
2
Clear denominators by multiplying both sides by (x1)(x+2)(x-1)(x+2): 5x1=A(x+2)+B(x1)5x-1 = A(x+2) + B(x-1).
3
Solve for AA by choosing x=1x=1 (this makes the BB term vanish): 5(1)1=A(1+2)+B(0)    4=3A    A=435(1)-1 = A(1+2)+B(0) \implies 4 = 3A \implies A=\dfrac43.
4
Solve for BB by choosing x=2x=-2 (this makes the AA term vanish): 5(2)1=A(0)+B(21)    11=3B    B=1135(-2)-1 = A(0)+B(-2-1) \implies -11 = -3B \implies B=\dfrac{11}{3}.
5
Rewrite the integral using the decomposition: (4/3x1+11/3x+2)dx\int\left(\dfrac{4/3}{x-1} + \dfrac{11/3}{x+2}\right)dx.
6
Integrate each term using Section 02's log rule: 43lnx1+113lnx+2+C\dfrac43\ln\lvert x-1\rvert + \dfrac{11}{3}\ln\lvert x+2\rvert + C.

05 · Choosing a Technique

Definition — Technique Selection Checklist
  1. Is the integrand a bare power of xx, or a sum of such powers? → power rule (Chapter 06).
  2. Does an inner expression's derivative (up to a constant) appear elsewhere in the integrand? → u-substitution.
  3. Is the integrand a product of two structurally different factors (polynomial times trig/exponential) where substitution does not simplify it? → integration by parts.
  4. Is the integrand a rational function whose denominator factors into distinct linear pieces? → partial fractions.

06 · Exercises

EXERCISE 7.1

Look for an inner expression whose derivative (up to a constant multiple) appears elsewhere in the integrand.

4x3(x4+5)6dx\int 4x^3(x^4+5)^6\,dx. Let u=x4+5u=x^4+5, du=4x3dxdu=4x^3\,dx — matches exactly. u6du=u77+C=(x4+5)77+C\int u^6\,du = \dfrac{u^7}{7}+C = \dfrac{(x^4+5)^7}{7}+C.

Evaluate 4x3(x4+5)6dx\int 4x^3(x^4+5)^6\,dx using u-substitution.

EXERCISE 7.2

The numerator is not an exact match for dudu — find the missing constant factor and adjust.

xx2+4dx\int \dfrac{x}{x^2+4}\,dx. Let u=x2+4u=x^2+4, du=2xdx    xdx=12dudu=2x\,dx \implies x\,dx=\frac12du. 1u12du=12lnu+C=12ln(x2+4)+C\int\dfrac{1}{u}\cdot\frac12\,du = \frac12\ln\lvert u\rvert+C = \frac12\ln(x^2+4)+C (absolute value bars droppable since x2+4>0x^2+4>0 always).

Evaluate xx2+4dx\int \dfrac{x}{x^2+4}\,dx.

EXERCISE 7.3

Choose uu to be the factor that simplifies under differentiation, then apply the integration by parts formula once.

xexdx\int x e^x\,dx. Let u=xu=x, dv=exdxdv=e^x\,dx; du=dxdu=dx, v=exv=e^x. xexdx=xexexdx=xexex+C\int xe^x\,dx = xe^x - \int e^x\,dx = xe^x - e^x + C.

Evaluate xexdx\int x e^x\,dx using integration by parts.

EXERCISE 7.4

Set up partial fractions with unknowns AA and BB, clear denominators, then substitute the roots of each factor to solve for each unknown separately.

7x+3(x+1)(x3)dx\int \dfrac{7x+3}{(x+1)(x-3)}\,dx. Decompose: Ax+1+Bx3\dfrac{A}{x+1}+\dfrac{B}{x-3}. Clear: 7x+3=A(x3)+B(x+1)7x+3=A(x-3)+B(x+1). At x=1x=-1: 4=A(4)    A=1-4=A(-4) \implies A=1. At x=3x=3: 24=B(4)    B=624=B(4) \implies B=6. Integral: lnx+1+6lnx3+C\ln\lvert x+1\rvert + 6\ln\lvert x-3\rvert + C.

Evaluate 7x+3(x+1)(x3)dx\int \dfrac{7x+3}{(x+1)(x-3)}\,dx using partial fractions.

EXERCISE 7.5

Substitution needs the exact differential (up to a constant) present in the integrand. Check what power of xx would actually be needed for a clean substitution here.

x2(x2+1)4dx\int x^2(x^2+1)^4\,dx cannot be solved by substituting u=x2+1u=x^2+1, since du=2xdxdu=2x\,dx requires exactly one power of xx outside the parentheses, but the integrand has x2x^2 — an extra, unmatched factor of xx remains after substitution that cannot be written purely in terms of uu (since x2=u1x^2 = u-1 only accounts for one of the two factors, and the substitution x2dxx^2\,dx still has a leftover xdxx\,dx vs dxdx mismatch). Simple u-substitution fails here; the integral instead requires full binomial expansion of (x2+1)4(x^2+1)^4 followed by term-by-term power-rule integration.

Explain why x2(x2+1)4dx\int x^2(x^2+1)^4\,dx cannot be evaluated with the substitution u=x2+1u=x^2+1 the way 2x(x2+1)4dx\int 2x(x^2+1)^4\,dx could in Section 01. What must be done instead?

EXERCISE 7.6

Accumulated value over time is a definite integral of the rate function; if the rate involves a rational expression with a linear-factor denominator, partial fractions may be required before integrating.

Cash flow rate r(t)=100(t+1)(t+3)r(t) = \dfrac{100}{(t+1)(t+3)} for t[0,2]t\in[0,2]. Decompose: At+1+Bt+3\dfrac{A}{t+1}+\dfrac{B}{t+3}, with 100=A(t+3)+B(t+1)100=A(t+3)+B(t+1). At t=1t=-1: 100=2A    A=50100=2A\implies A=50. At t=3t=-3: 100=2B    B=50100=-2B\implies B=-50. Antiderivative: F(t)=50lnt+150lnt+3F(t)=50\ln\lvert t+1\rvert - 50\ln\lvert t+3\rvert. F(2)=50ln350ln5F(2)=50\ln3-50\ln5. F(0)=50ln150ln3=050ln3F(0)=50\ln1-50\ln3=0-50\ln3. Total =F(2)F(0)=50ln350ln5(50ln3)=100ln350ln5100(1.0986)50(1.6094)109.8680.4729.39= F(2)-F(0) = 50\ln3-50\ln5-(-50\ln3)=100\ln3-50\ln5\approx100(1.0986)-50(1.6094)\approx109.86-80.47\approx29.39.

A cash flow rate is r(t)=100(t+1)(t+3)r(t)=\dfrac{100}{(t+1)(t+3)} dollars per day, t[0,2]t\in[0,2]. Find the total accumulated cash using partial fractions and FTC Part 2.


07 · Chapter Summary

ConceptFormula / Rule
u-SubstitutionReverses the chain rule; u=g(x)u=g(x), du=g(x)dxdu=g'(x)dx
Antiderivative of 1/x1/x1xdx=lnx+C\int\frac1x\,dx = \ln\lvert x\rvert+C
Integration by partsudv=uvvdu\int u\,dv = uv-\int v\,du; reverses the product rule
Partial fractionsSplit p(x)(xr1)(xr2)\frac{p(x)}{(x-r_1)(x-r_2)} into Axr1+Bxr2\frac{A}{x-r_1}+\frac{B}{x-r_2}
Technique selectionMatch integrand structure to substitution / by-parts / partial fractions

Next: Chapter 08 — Improper Integrals, which extends the definite integral to unbounded intervals and unbounded integrands.