Every definite integral is now a search for an antiderivative, and unlike differentiation, that search has no algorithm that always terminates.
The asymmetry is worth stating plainly at the start. Differentiating is mechanical: identify the outermost structure, apply the matching rule, recurse, and an answer always appears. Antidifferentiating is pattern recognition, assisted by a handful of transformations that convert an unfamiliar integrand into a familiar one. This lesson covers the transformations that do most of the work, and then says exactly where they stop, because a course that implies every integral can be done teaches a falsehood that the first real problem will expose.
Substitution
The chain rule says . Read backwards, that is an integration rule: an integrand of the shape has antiderivative , where is an antiderivative of . In practice it is easier to run with the substitution written out:
The mechanics are to choose , compute , and check that everything left in the integrand can be written in terms of . If something cannot, the substitution is the wrong one, and this is a genuine search rather than a procedure.
For a definite integral there are two options: convert back to at the end, or, better, convert the limits when you convert the variable. The second is less error-prone and avoids re-expressing a possibly ugly antiderivative.
Example. Evaluate .
The awkward part is , and the rest of the integrand is , which is nearly the derivative of the exponent. Take , so and . The limits convert too: gives , and gives . The integral becomes
The substitution worked because the derivative of the inside function was already sitting in the integrand, up to a constant. That is the pattern to look for.
Now you. Evaluate .
Answer
Take , so , and the limits become and . The integral is .
Substitution also runs in the less obvious direction, replacing by a function of a new variable to exploit an identity. Putting into turns the root into by the Pythagorean identity, and the integral becomes a trigonometric one. This is how the area of a circle is computed by calculus rather than assumed.
Integration by parts
The product rule, , rearranges into . Integrating both sides and using the Fundamental Theorem on the exact derivative gives
which is integration by parts. It does not evaluate an integral; it trades one integral for another, and the skill is choosing the split so that the trade is favourable.
The guidance is to let be the factor that gets simpler when differentiated, and the factor you can integrate. A power of becomes a lower power, and eventually a constant; a logarithm or an inverse trigonometric function becomes an algebraic fraction, which is a large improvement; a sine or an exponential stays the same size, so it usually belongs in .
Example. Evaluate .
Take and , so and . The formula gives
The bracket is , and the remaining integral is . So the answer is . Had the split been made the other way, with , the new integral would have contained , which is worse than what we started with: the wrong choice tells you so immediately.
Now you. Evaluate .
Answer
There is only one factor, so take and , giving and . Then the integral is . This is the standard trick for integrating a function whose derivative is nicer than itself.
Sometimes parts is applied twice and the original integral reappears, at which point it can be solved for algebraically. That is how is done: two applications return plus explicit terms, so moving it to the left side and dividing by two finishes the job.
Rational functions, always
For a quotient of polynomials there is a genuine algorithm, which is unusual enough to be worth stating. Any rational function can be decomposed into a polynomial plus a sum of terms of the form and terms with irreducible quadratic denominators, and every one of those pieces integrates to a logarithm, a power, or an arctangent. So every rational function has an elementary antiderivative.
Take . Factor the denominator as and write
which is checked by recombining over the common denominator. Each piece is now a logarithm, so the integral is evaluated from to , which is .
The same partial fraction decomposition is used constantly outside integration, in solving differential equations and in inverting transforms, so the algebra is worth having regardless.
Averages of squares, and why mains voltage is 230
Trigonometric integrands are handled with identities rather than ingenuity, and one case is worth doing because its answer is on the back of every appliance.
To integrate , use the identity , which turns an impossible integrand into two easy ones: . Over a full period from to the cosine term contributes nothing, so the integral is , and the average value of over a cycle is .
That number is the whole of alternating current. A mains supply is , and the power delivered to a resistance is proportional to , whose average over a cycle is therefore . The root mean square voltage, the constant voltage that would deliver the same power, is . European mains is quoted as V RMS, so the actual peak is V, which is what the insulation has to withstand. The factor of comes from an integral of and nowhere else.
Where the techniques stop
Now the honest part. Consider these four integrands:
Each is continuous on a suitable interval, so by the first half of the Fundamental Theorem each has an antiderivative. None of those antiderivatives can be written using powers, roots, exponentials, logarithms and trigonometric functions, in any finite combination.
This is not a confession of ignorance. Joseph Liouville proved in the 1830s that such functions have no elementary antiderivative, and the modern form of the result, with an algorithm that decides the question for a large class of integrands, is due to Robert Risch in 1968. The statement is a theorem about what is impossible, in the same family as the impossibility of trisecting an angle with straightedge and compass.
The consequence is that most integrands met in physics and statistics cannot be done in closed form, which is why the first of them is given the name and tabulated, and why the second is called the sine integral and tabulated. Naming a function is what mathematics does when it cannot express one in older terms, and the logarithm itself was once such a case.
Doing it numerically
When there is no antiderivative, the integral is still a number and it can still be computed, by going back to the sums the definition was built from and choosing them cleverly.
The trapezium rule replaces each strip's flat top with a straight line joining the curve at both ends, which amounts to averaging the left and right sums. The Simpson rule fits a parabola through each consecutive triple of points, giving
with an even number of strips of width , alternating coefficients of and between the two end values. The pattern comes from integrating the fitted parabolas exactly and adding the results.
The difference in accuracy is dramatic. The error of the trapezium rule falls like , so halving the strip width quarters it, while Simpson's falls like , so halving the width divides the error by sixteen.
Example. Estimate with Simpson's rule using four strips.
The width is and the five values of are , , , and . The weighted sum is , and multiplying by gives . The true value, to seven places, is , so four parabolic strips give four correct digits.
Now you. Estimate the same integral with the trapezium rule using four strips, and compare the errors.
Answer
The trapezium rule takes half of each end value plus all the interior ones, times : . The error is , more than a hundred times Simpson's error of , from the same five function evaluations.
A working strategy
Faced with an integral, the order that wastes least time is: check whether it is already a standard form; look for an inside function whose derivative is present, which means substitution; look for a product of two unlike things, which means parts; check whether it is rational, which means partial fractions; try an identity if it is trigonometric. If none of that works within a few minutes, consider that it may have no elementary antiderivative, and reach for a numerical method or a table.
That is a strategy rather than an algorithm, and it should feel less satisfying than differentiation. It is the accurate picture of the subject, and it is why computer algebra systems, which implement the Risch algorithm, are genuinely useful here in a way they are not for differentiation.
With the techniques in hand, the remaining question is what integrals are for. Area was the motivating case and is close to the least of it: the next lesson shows the same limit of sums computing volumes, work, escape velocity, averages and centres of mass, and the pattern that makes all of them the same calculation.