Integration by Parts
Suppose you need to compute the integral of over some interval. The Power Rule and basic antiderivative tables offer no direct route. This is because is a product of two functions. There is no product rule for antiderivatives that mirrors the product rule for derivatives. Integration by parts is the precise mechanism that fixes this. It is the integral version of the derivative product rule. It is obtained by integrating that rule over an interval and rearranging. The idea matters because differentiation and integration are not symmetric operations. Differentiating a product is easy — the product rule handles it in one line. But undoing that process, going from a derivative back to the original functions, requires a genuinely new technique. Integration by parts converts an integral involving a product into a different integral (often a simpler one) plus a boundary term. It is the single most important tool for computing integrals that are not immediately visible in a table. It underlies deep structural results in analysis, from the definition of weak derivatives to the Gamma function's functional equation. The big picture is that integration by parts is not a separate axiom. It is not a clever trick pulled from nowhere. It follows in three lines from two facts you already know: the product rule for derivatives, and the Fundamental Theorem of Calculus connecting derivatives and integrals. This article proves that implication with full rigor. It states exactly which hypotheses (continuity, differentiability, integrability) are needed at each step. It also shows what fails when they are dropped. This article gives the precise statement and hypotheses, a complete proof from first principles, and two fully worked asymmetric examples. It includes a counterexample showing why continuity of the derivatives cannot be omitted. It also discusses where the formula resurfaces in later analysis. This includes a first glimpse of its role in Improper Integrals.
- Integration by parts is the FTC applied to the product rule: differentiate , integrate both sides, rearrange.
- Formula: .
- Requires continuous on and differentiable with Riemann integrable on .
- It trades one integral for another; useful when the new integral is genuinely simpler.
- The indefinite form is the same identity without evaluated bounds.
- Key idea: integrating the product rule over and solving for one integral gives the other.
Where this lives today
Integration by parts is not confined to symbolic calculus exercises; it is a structural tool across analysis and its applications. In Fourier analysis, repeated integration by parts is the standard way to estimate the decay rate of Fourier coefficients of smooth functions, since each integration by parts trades a derivative on one factor for an extra power of in the coefficient bound. In probability and statistics, it underlies the derivation of moments of distributions via the identity relating to integrals of the survival function, and appears in Stein's method for bounding distances between distributions. In partial differential equations and functional analysis, the formula generalizes to Green's identities and the divergence theorem, and directly motivates the definition of the weak derivative: a function is declared the weak derivative of precisely when it satisfies the integration-by-parts identity against all smooth test functions, even when itself is not classically differentiable. In quantum mechanics, integration by parts on the real line (with vanishing boundary terms at infinity) is how one shows the momentum operator is Hermitian. In numerical analysis and scientific computing, it is the mechanism behind deriving weak/variational formulations used in the finite element method. And in extending the definite-integral formula to unbounded domains — the natural next question after this article — one must carefully control the boundary term as , which is precisely the technical heart of applying this identity within the theory of Improper Integrals.
Ask the tutor: How does integration by parts extend to improper integrals like , and what exactly must be checked before taking the boundary term to infinity?
Let with . Suppose are continuous on and differentiable on (one-sided derivatives at the endpoints), with derivatives Riemann integrable on . Under these hypotheses, the integration by parts formula asserts
where . In indefinite (antiderivative) form, when are differentiable on an interval with continuous, this is written
Intuition
Think of the product rule as a statement about instantaneous rates: the rate of change of splits into a piece where is held still and moves, plus a piece where is held still and moves. Integration by parts is what happens when you accumulate that splitting over an entire interval: the total change in the product decomposes into the total contribution of " moving against " and the total contribution of " moving against ." If you know one of those two accumulated contributions, and you know the total change in the product, you get the other for free. Geometrically, picture the rectangle with corners at and traced out as runs from to , viewing as a curve in the plane. The area swept out relates to and the way a rectangle's area splits into an "L-shaped" region under one curve and over the other — this is exactly the classical picture used to prove the formula for monotone functions without calculus, and it explains the name "parts": you cut one product-integral into two complementary pieces.
Statement of the theorem
Let be real numbers, and let satisfy: 1. and are continuous on ; 2. and are differentiable at every point of (using one-sided derivatives at and ); 3. and are Riemann integrable on . Then and are Riemann integrable on , and
Technique: apply the product rule pointwise, then apply the Second Fundamental Theorem of Calculus to the resulting derivative. Step 1 (the product rule holds pointwise). Fix . By hypothesis (2), and are differentiable at . The product rule for derivatives (assumed known) gives
This holds for every , with one-sided derivatives understood at the endpoints . Step 2 ( and are Riemann integrable). By hypothesis (1), and are continuous on , hence bounded on (continuous functions on a compact interval attain a maximum, so in particular are bounded). By hypothesis (3), and are Riemann integrable on , in particular bounded. We use the standard fact that a product of a bounded Riemann integrable function and a bounded continuous function is Riemann integrable; more precisely, the product of two Riemann integrable functions is Riemann integrable. Since is continuous it is Riemann integrable on ; combined with Riemann integrable, the product is Riemann integrable on . Symmetrically, since is continuous (hence Riemann integrable) and is Riemann integrable, the product is Riemann integrable on . (Justification that a product of Riemann integrable functions is Riemann integrable: if are Riemann integrable on , both are bounded, say by . Riemann integrability of and implies integrability of , , and of — the last because is continuous, hence uniformly continuous on , so the standard "compose with a Lipschitz/uniformly continuous function" criterion for preserving Riemann integrability applies. Then
is a Riemann-integrable combination of Riemann integrable functions, hence Riemann integrable.) Consequently the sum is Riemann integrable on , being a sum of two Riemann integrable functions. Step 3 ( is Riemann integrable and equals this sum). By Step 1, pointwise on . By Step 2, the right side is Riemann integrable on . Hence , being pointwise equal to a Riemann integrable function, is itself Riemann integrable on (Riemann integrability depends only on the function's values, and equality of functions gives equality of upper and lower integrals). Step 4 (apply the Second Fundamental Theorem of Calculus). The function is continuous on (product of continuous functions) and differentiable on with derivative , which by Step 3 is Riemann integrable on . The Second Fundamental Theorem of Calculus (in its form applicable to a function differentiable everywhere on with Riemann integrable derivative) gives
Step 5 (split the integral and solve). Since and both summands are Riemann integrable (Step 2), the integral of the sum is the sum of the integrals:
Combining with Step 4:
Solving for (both integrals exist by Step 2, so this rearrangement is valid — subtracting a real number from both sides of a true equation of real numbers):
This is exactly the claimed identity.
∎If are differentiable on an open interval with continuous on , then for any the same identity holds, and one may write, as an identity of antiderivatives up to an additive constant,
This follows by applying the theorem on every closed subinterval and using that continuity of guarantees the hypotheses of the theorem on each such subinterval.
Worked examples
Example 1: (asymmetric algebraic-times-trigonometric). We want to apply the theorem with a good choice of which factor is and which is . Set
Check the hypotheses on : is continuous and differentiable everywhere with , which is continuous, hence Riemann integrable, on . Take ; then is continuous and differentiable with , continuous, hence Riemann integrable. All hypotheses of the theorem hold. By the theorem,
Compute the boundary term:
Compute the remaining integral using the Second Fundamental Theorem of Calculus with antiderivative :
Therefore
Numerically, , so the value is approximately ; this is consistent with the graph of on , which is positive throughout the interval (since both and there) but small near the right endpoint where , so a value near over an interval of length is plausible (, a reasonable average height for a function starting at , rising, then falling back toward ).
Example 2: (a case where the "wrong" choice would make things worse, shown explicitly, plus a double-check by direct antidifferentiation). Here the two natural choices are or . We first show the bad choice is legal but unhelpful, then do the good choice. Bad choice check. Take , . On , is continuous and differentiable, continuous. An antiderivative of is (verify: , correct), and is continuous and differentiable with continuous on (note is continuous on since , so there is no issue at ). All hypotheses hold, so the theorem applies, but it turns
into a harder integral on the right (still containing after expansion) — a legitimate application of the theorem that is simply a poor strategic choice. This illustrates that the theorem's hypotheses being satisfied does not guarantee usefulness; the choice of is a matter of strategy, not validity. Good choice. Take , . Check hypotheses on : is continuous and differentiable on (indeed on ) with , continuous on since there, hence Riemann integrable. Take ; is continuous and differentiable with continuous. All hypotheses of the theorem hold. By the theorem,
Evaluate the boundary term: at , , so this term is ; at , , so this term is . Hence the boundary term is . Evaluate the remaining integral by the Second Fundamental Theorem of Calculus:
Therefore
Numerically, , so , and dividing by gives approximately . As a sanity check, ranges from at to at over an interval of length ; an average value near is plausible for a function increasing from to about , since it is convex-looking and weighted toward the larger values near .
The theorem requires to be Riemann integrable on , in addition to being continuous and differentiable. Differentiability of everywhere on does not automatically make Riemann integrable — a differentiable function can have a highly discontinuous derivative. Construct such a on : let
This is differentiable everywhere on : for , the usual rules give
and at , the difference quotient satisfies
so exists. However, is unbounded near : as , the term takes values of arbitrarily large magnitude (choosing with makes and ). A Riemann integrable function on must be bounded (this is part of the very definition of the Riemann integral). Hence is not Riemann integrable on , even though is continuous and differentiable everywhere on . Take , so , continuous, and satisfies all hypotheses on its own. The right-hand side of the intended formula,
is not even defined as a Riemann integral, because is unbounded on (unboundedness alone already rules out Riemann integrability, regardless of the extra factor ; near , is still unbounded since blows up like while the factor only rescales it by , leaving itself unbounded is not quite forced, but one can instead directly check boundedness fails for near points where and is bounded away from within a fixed subinterval, e.g. reconsider on where is bounded below, so is unbounded there whenever is). So the left-hand side is perfectly well-defined (since is continuous, hence Riemann integrable, on ), but the proposed integration-by-parts identity cannot even be written down on the right, because fails to exist as a Riemann integral. The hypothesis " Riemann integrable" is doing indispensable work: without it, the entire right-hand side of the formula is not a Riemann integral at all, so the identity is meaningless, not merely false.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| continuous, differentiable, continuous | Theorem applies cleanly; this is the everyday textbook case. |
| Riemann integrable but merely bounded with finitely many discontinuities | Theorem still applies exactly as stated (hypothesis (3) only needs Riemann integrability, not continuity). |
| or unbounded on | Hypothesis (3) fails; see the counterexample — the formula may not even parse. |
| One of fails to be differentiable at finitely many points but is continuous | Not covered by this exact theorem; a version with a finite exceptional set and one-sided derivatives can be patched together by splitting into subintervals, but this requires separate justification. |
| Improper integrals ( or unbounded integrand) | Not covered here; requires taking limits of the finite-interval formula — this is the natural bridge to Improper Integrals. |
| Repeated integration by parts (tabular method) | Just the theorem applied iteratively; each application still needs its own hypothesis check. |
The mathematician behind it
Origins · 1 minBrook Taylor and how this was discovered
Brook Taylor is best known today for Taylor's Theorem, but his 1715 treatise Methodus Incrementorum Directa et Inversa also contains one of the earliest explicit statements of the integration-by-parts technique, arising from his study of finite differences and their continuous analogues. Working within the still-young Leibniz–Newton calculus, Taylor treated integration largely as the inverse operation to differentiation and used the product rule "in reverse" to convert integrals of products into more tractable forms, laying groundwork that Euler and Lagrange would later formalize and generalize across the emerging apparatus of definite integrals.
Why is integration by parts "just" the product rule in disguise?
The product rule states pointwise, an algebraic fact about derivatives with no integrals involved. Integration by parts arises the moment you integrate both sides of that identity over and apply the Second Fundamental Theorem of Calculus to the left side, turning into the boundary difference . Splitting the integral of the sum into two integrals and solving for one of them yields exactly the integration-by-parts formula. There is no additional content beyond these two established facts — the product rule and the Fundamental Theorem of Calculus — combined algebraically, which is why the proof is short once both prerequisites are in hand.
How do I choose which factor is and which is ?
There is no universal algorithm, but a common heuristic is the "LIATE" ordering (Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential): prefer to let be the factor appearing earlier in this list, since such factors tend to simplify upon differentiation (e.g. ), while should be a factor you can antidifferentiate easily (e.g. , polynomials). Example 2 in this article illustrates both a good choice (, which simplifies to ) and a technically valid but unproductive choice (, ), showing that validity and usefulness are different questions.
Does integration by parts require and to be positive or monotone?
No. The theorem as proved requires only continuity on , differentiability on , and Riemann integrability of the derivatives . There is no positivity or monotonicity hypothesis anywhere in the proof, which proceeds purely through the product rule and the Fundamental Theorem of Calculus, both of which are agnostic to sign. The monotone picture in the Intuition section is a classical way to visualize the formula geometrically as splitting a rectangle's area, but it is not needed for the proof and the formula holds equally for functions that change sign or oscillate.
Can I use integration by parts on an integral with infinite limits, like ?
Only after separate justification, which is exactly the subject of Improper Integrals. The theorem proved here applies strictly to a finite closed interval . To handle , one applies the finite-interval formula on , obtaining a boundary term plus , and then takes the limit , checking separately that and that the remaining limit of the integral exists. Skipping this limit-taking step and writing directly is the classic error flagged in the Warning box above.
What is the relationship between integration by parts and the "weak derivative" used in advanced analysis?
In advanced analysis, one often works with functions that are not classically differentiable but still satisfy a version of the integration-by-parts identity against all smooth compactly-supported "test functions" . If is such a function, a function is called the weak derivative of when for every test function (with no boundary term, since vanishes near the endpoints). This definition is directly modeled on the classical integration-by-parts formula proved in this article, taking and using that to kill the boundary term; it extends the reach of "differentiation" to functions like that fail to be differentiable at isolated points.
Is there a version of integration by parts for Riemann–Stieltjes integrals?
Yes, and it is a genuine generalization rather than a restatement. The Riemann–Stieltjes integration-by-parts formula states that if exists (as a Riemann–Stieltjes integral with respect to an integrator ), then also exists, and . Taking recovers the ordinary Riemann formula proved in this article as a special case. This Stieltjes version is important precisely because it does not require to be differentiable at all, only of bounded variation, extending the reach of the identity considerably beyond the classical Riemann setting treated here.
Why does the proof need continuous in addition to differentiable, since differentiability usually implies continuity anyway?
It is true that differentiability at a point implies continuity at that point, so hypothesis (1) is technically redundant given hypothesis (2) in the interior of . It is stated separately mainly for clarity and to handle the endpoints uniformly (where only one-sided differentiability is assumed, and one-sided differentiability also implies one-sided continuity, but stating continuity on the whole closed interval up front avoids case-splitting). The substantive, non-redundant hypothesis is (3): Riemann integrability of , which differentiability does not automatically guarantee, as the counterexample in this article demonstrates explicitly.