- Foundation
- About 20 min
- 5 practice questions
Integration by parts
Derive and apply the rule for integrating a product, choose the first function sensibly, handle integrals that return to themselves, and use the results for eˣ[f(x) + f′(x)] and √(x² ± a²), √(a² − x²).
If something looks wrong, please tell us.
Substitution reverses the chain rule. Integration by parts reverses the product rule. It is the method for products such as x eˣ, x sin x or x² log x, and also for single functions like sin⁻¹ x whose derivative is simpler than the function itself.
Deriving the rule
Let u and v be differentiable functions of x. The product rule says d/dx (uv) = u (dv/dx) + v (du/dx). Integrate both sides: uv = ∫ u (dv/dx) dx + ∫ v (du/dx) dx, so ∫ u (dv/dx) dx = uv − ∫ v (du/dx) dx. Now put u = f(x) and dv/dx = g(x), so du/dx = f′(x) and v = ∫ g(x) dx. The rule becomes:
∫ f(x) g(x) dx = f(x) ∫ g(x) dx − ∫ [f′(x) ∫ g(x) dx] dx. In words: first function × integral of second − integral of (derivative of first × integral of second).
Two practical points. (1) When integrating the second function, no constant is added: if we used ∫ g dx + k instead, the extra terms f·k and −∫ f′·k dx = −k f cancel, so the final answer is unchanged. (2) The choice of the first function matters. If we tried ∫ x cos x dx with cos x as the first function, the new integral would contain x² sin x, which is harder than what we started with.
Choosing the first function
Take as first function the one that becomes simpler on differentiating, and as second function one you can integrate. A polynomial is usually the first function, except when the other factor is an inverse trigonometric or logarithmic function; those are hard to integrate but easy to differentiate, so they go first. Many students remember an order of preference with the word ILATE.
ILATE: preference order for the first function
- Inverse trigonometric sin⁻¹ x, tan⁻¹ x
- Logarithmic log x
- Algebraic x, x², polynomials
- Trigonometric sin x, cos x
- Exponential eˣ, aˣ
Worked examples
Worked example 1: polynomial times exponential
Find ∫ x e²ˣ dx. First function x, second e²ˣ with ∫ e²ˣ dx = e²ˣ/2. Then ∫ x e²ˣ dx = x · e²ˣ/2 − ∫ 1 · e²ˣ/2 dx = x e²ˣ/2 − e²ˣ/4 + C = (e²ˣ/4)(2x − 1) + C. Check: d/dx [(e²ˣ/4)(2x − 1)] = (e²ˣ/2)(2x − 1) + (e²ˣ/4)(2) = x e²ˣ. ✓
Worked example 2: logarithm as first function
Find ∫ x³ log x dx (x > 0). By ILATE, log x is the first function. ∫ x³ dx = x⁴/4. So ∫ x³ log x dx = (log x)(x⁴/4) − ∫ (1/x)(x⁴/4) dx = (x⁴/4) log x − ∫ x³/4 dx = (x⁴/4) log x − x⁴/16 + C.
Worked example 3: a single inverse function
Find ∫ sin⁻¹ x dx. Treat it as ∫ sin⁻¹ x · 1 dx with sin⁻¹ x as the first function and 1 as the second: = x sin⁻¹ x − ∫ x/√(1 − x²) dx. For the last integral put t = 1 − x², dt = −2x dx: ∫ x/√(1 − x²) dx = −(1/2) ∫ t^(−1/2) dt = −√t = −√(1 − x²). Hence ∫ sin⁻¹ x dx = x sin⁻¹ x + √(1 − x²) + C.
Worked example 4: an integral that comes back
Find I = ∫ eˣ cos x dx. Take eˣ as first function: I = eˣ sin x − ∫ eˣ sin x dx. Apply parts again to ∫ eˣ sin x dx = −eˣ cos x + ∫ eˣ cos x dx = −eˣ cos x + I. Substituting, I = eˣ sin x + eˣ cos x − I, so 2I = eˣ(sin x + cos x) and I = (eˣ/2)(sin x + cos x) + C. The trick is to recognise the original integral when it reappears and solve for it.
Integrals of the form ∫ eˣ [f(x) + f′(x)] dx
Split the integral as ∫ eˣ f(x) dx + ∫ eˣ f′(x) dx and apply parts to the first part with f(x) as the first function: ∫ eˣ f(x) dx = f(x) eˣ − ∫ f′(x) eˣ dx. The two integrals ∫ eˣ f′(x) dx cancel, leaving the neat result ∫ eˣ [f(x) + f′(x)] dx = eˣ f(x) + C. To use it, look for an integrand that is eˣ times a function plus its own derivative.
Example (i). ∫ eˣ (1/x − 1/x²) dx: here f(x) = 1/x and f′(x) = −1/x², so the answer is eˣ/x + C. Example (ii). ∫ eˣ (tan x + sec² x) dx: f(x) = tan x, f′(x) = sec² x, so the answer is eˣ tan x + C.
Three integrals with square roots
Taking the constant function 1 as the second function and integrating by parts (then solving for the integral, as in worked example 4) gives three standard results:
| Integral | Result |
|---|---|
| ∫ √(x² − a²) dx | (x/2)√(x² − a²) − (a²/2) log |x + √(x² − a²)| + C |
| ∫ √(x² + a²) dx | (x/2)√(x² + a²) + (a²/2) log |x + √(x² + a²)| + C |
| ∫ √(a² − x²) dx | (x/2)√(a² − x²) + (a²/2) sin⁻¹(x/a) + C |
Example. ∫ √(9 − x²) dx = (x/2)√(9 − x²) + (9/2) sin⁻¹(x/3) + C, using the third result with a = 3. For a quadratic such as √(x² + 2x + 10), first complete the square: (x + 1)² + 3², and use the second result with x + 1 in place of x and a = 3.
Key takeaways
- ∫ f g dx = f ∫ g dx − ∫ [f′ ∫ g dx] dx; no constant is needed in the inner integral.
- Choose the first function so that it simplifies on differentiation (ILATE as a guide).
- Integrate sin⁻¹ x, tan⁻¹ x or log x by parts with 1 as the second function.
- If the original integral reappears, collect it on one side and solve.
- ∫ eˣ [f(x) + f′(x)] dx = eˣ f(x) + C.
Check your understanding
-
1. ∫ x e^(−x) dx equals
- (x − 1)e^(−x) + C
- −(x + 1)e^(−x) + C
- (x + 1)e^(−x) + C
- −x e^(−x) + C
Show answer
Answer: B. First function x, second e^(−x) with integral −e^(−x): x(−e^(−x)) − ∫ (−e^(−x)) dx = −x e^(−x) − e^(−x) + C = −(x + 1)e^(−x) + C. Check: the derivative is −e^(−x) + (x + 1)e^(−x) = x e^(−x).
-
2. To find ∫ x² tan⁻¹ x dx by parts, the better choice of first function is
- x², because a polynomial is always taken first
- Either; both choices give equally simple integrals
- tan⁻¹ x, because it is easy to differentiate but hard to integrate
- Neither; integration by parts cannot be used
Show answer
Answer: C. If x² were first, we would need ∫ tan⁻¹ x dx as the second function's integral, which itself needs parts. With tan⁻¹ x first, its derivative 1/(1 + x²) multiplies x³/3 to give a rational function that is easy to integrate.
-
3. ∫ eˣ (sec x + sec x tan x) dx equals
- eˣ sec x + C
- eˣ tan x + C
- eˣ (sec x + tan x) + C
- eˣ sec x tan x + C
Show answer
Answer: A. With f(x) = sec x we have f′(x) = sec x tan x, so the integrand is eˣ[f(x) + f′(x)] and the integral is eˣ f(x) + C = eˣ sec x + C.
-
4. ∫ √(4 − x²) dx equals
- (x/2)√(4 − x²) + 4 sin⁻¹(x/2) + C
- (x/2)√(4 − x²) − 2 sin⁻¹(x/2) + C
- sin⁻¹(x/2) + C
- (x/2)√(4 − x²) + 2 sin⁻¹(x/2) + C
Show answer
Answer: D. Use ∫ √(a² − x²) dx = (x/2)√(a² − x²) + (a²/2) sin⁻¹(x/a) + C with a = 2, so a²/2 = 4/2 = 2.
-
5. Assertion (A): When applying integration by parts, no constant of integration is added while integrating the second function. Reason (R): Any constant added at that stage cancels out and does not change the final result.
- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true, but R is false
- A is false, but R is true
Show answer
Answer: A. If the integral of g is taken as G + k, the formula gives f(G + k) − ∫ f′(G + k) dx = fG − ∫ f′G dx + kf − kf. The k terms cancel, so adding the constant is unnecessary. R is the reason for A.
Sign in to keep track of the lessons you finish.