Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Running the film backwards
Differentiating is like following a recipe forwards. Integrating means looking at the finished cake and working out the recipe. There’s no single rule for that, but there are tricks, each one a derivative rule run backwards:
- The chain rule, backwards, is substitution.
- The product rule, backwards, is integration by parts.
- Adding fractions, backwards, is partial fractions: read from right to left.
When engineers design the motor controller for a robot joint or a satellite’s reaction wheel, they predict its response with exactly these tricks. Partial fractions split the system into simple pieces, and each piece is a decaying exponential they can read off directly.
- 1. Which function has derivative 2x (and is 0 at x = 0)?
- 2. ½ − ⅓ = ?
- 3. Integration by parts reverses which rule?
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.Substitution
If the integrand looks like , set and :
Example. : with , it becomes .
Integration by parts
Example. : take and . Then . So .
Tip (LIATE): choose in the order Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential. The should get simpler when differentiated.
- 1. ∫₀¹ 2x e^(x²) dx = ?
- 2. ∫₀¹ x eˣ dx = ?
- 3. For ∫ x ln x dx, choose u = …
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.More examples
| Integral | Technique | Result |
|---|---|---|
| , limits | ||
| parts: , | ||
| parts | ||
| parts twice, then solve for the integral | ||
For a definite substitution, change the limits too ( from to ), and you never need to go back to .
Partial fractions
A rational function with distinct linear factors splits as
This is the “cover-up” rule. Each piece integrates to a logarithm:
Repeated factors contribute terms. Irreducible quadratics contribute , which integrate to arctan and log terms.
When there is no formula
Some simple-looking integrals have no elementary antiderivative, for example , and . Liouville (1835) explained why, and the Risch algorithm (1969) decides it automatically. Computer algebra systems (SymPy, Mathematica) implement parts of it. Otherwise, integrate numerically (A3.1-6).
- 1. ∫₀^π x sin x dx = ?
- 2. In 1/(x² − 1) = A/(x − 1) + B/(x + 1), A = ?
- 3. ∫₀^{π/2} sin²x dx = ?
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Why the techniques are correct
Substitution. If , the chain rule gives . By the FTC, . ∎
By parts. . Integrate both sides from to and rearrange. ∎
Reduction formulas
Parts often gives a recursion. With , parts gives , with and . Comparing even and odd terms leads to Wallis’s product (Wallis, 1656).
Similarly, the Gamma function satisfies (by parts). So , and .
Existence of partial fractions
Every real polynomial factors into linear and irreducible quadratic factors (the fundamental theorem of algebra). Bézout’s identity then shows every proper rational function decomposes uniquely into the standard pieces. So every rational function has an elementary antiderivative made of rationals, logs and arctans.
Exercise 3.1: Compute ∫ eˣ sin x dx
Let be the integral. Parts twice gives . So .
- 1. Γ(5) = ?
- 2. I₄ = ∫₀^{π/2} sin⁴x dx = ?
- 3. Integration by parts is the integral form of…
Level 4: Expert
★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.Control engineering: Laplace transforms and partial fractions
The Laplace transform turns ODEs into algebra. By parts gives the key rule . A system’s step response is a rational function. Partial fractions split it into , and each piece inverts to . This is how control engineers read stability and settling time straight from the poles (Ogata, 2010; Franklin, Powell and Emami-Naeini, 2019).
Research uses
- Change of variables in probability. If , then . This is substitution. It powers inverse-transform sampling (Practice Code 4), the reparameterization trick in VAEs (Kingma and Welling, 2014), and normalizing flows, which stack invertible maps and track (Rezende and Mohamed, 2015; Dinh, Sohl-Dickstein and Bengio, 2017).
- Integration by parts in ML. Score matching (Hyvärinen, 2005) uses parts to rewrite a loss that needs the unknown data density into one that doesn’t, which led to today’s diffusion models. Stein’s identity, for Gaussian (Stein, 1972; Practice Code 5), underlies Stein variational gradient descent and kernel goodness-of-fit tests.
- Weak formulations. Finite-element methods move derivatives onto test functions by parts. This is how structural, thermal and fluid models of spacecraft are solved.
References
- J. Wallis (1656). Arithmetica Infinitorum.
- J. Liouville (1835). “Mémoire sur l’intégration d’une classe de fonctions transcendantes.” Journal für die reine und angewandte Mathematik, 13.
- R. Risch (1969). “The problem of integration in finite terms.” Transactions of the AMS, 139.
- C. Stein (1972). “A bound for the error in the normal approximation to the distribution of a sum of dependent random variables.” Proc. 6th Berkeley Symposium, 2.
- A. Hyvärinen (2005). “Estimation of non-normalized statistical models by score matching.” JMLR, 6.
- D. Kingma, M. Welling (2014). “Auto-encoding variational Bayes.” ICLR.
- D. Rezende, S. Mohamed (2015). “Variational inference with normalizing flows.” ICML.
- K. Ogata (2010). Modern Control Engineering, 5th ed. Prentice Hall. Chapter 2.
- G. Franklin, J. D. Powell, A. Emami-Naeini (2019). Feedback Control of Dynamic Systems, 8th ed. Pearson.