Integration by parts · Mathematics Class 11–12 | StemPy Lab
Course 11.2·Lesson 3 of 3
Integration by parts
Integration by parts reverses the product rule: ∫uv′dx=uv−∫u′vdx
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
use the formula for integration by parts and choose u well;
integrate lnx and tan−1x, and use parts twice or in a cycle;
recognise the form ex[f(x)+f′(x)].
The product rule, read backwards
The product rule says (uv)′=u′v+uv′. Rearrange it as uv′=(uv)′−u′v and integrate both sides:
∫uv′dx=uv−∫u′vdx.
This is integration by parts. It is useful when ∫u′vdx is easier than the integral you started with. In short form, with du=u′dx and dv=v′dx, it reads ∫udv=uv−∫vdu.
Choosing u
Pick u from the first of these that appears in the integrand. The word that helps many students is ILATE.
Inverse trigonometric functions, such as tan−1x.
Logarithms, such as lnx.
Algebraic terms, such as x or x2.
Trigonometric functions, such as sinx.
Exponentials, such as ex.
The idea is that u should get simpler when differentiated, and dv should be easy to integrate. Some books use LIATE, with the same meaning.
Worked examples
Example 1. Find ∫xexdx.
Take u=x and dv=exdx. Then du=dx and v=ex.
The formula gives xex−∫exdx=xex−ex+C.
Example 2. Find ∫lnxdx. There seems to be only one factor. Write it as lnx⋅1.
Take u=lnx and dv=dx. Then du=xdx and v=x.
The formula gives xlnx−∫x⋅x1dx=xlnx−x+C.
Example 3. Find ∫tan−1xdx.
Take u=tan−1x and dv=dx. Then du=1+x2dx and v=x.
The formula gives xtan−1x−∫1+x2xdx.
The last integral is 21ln(1+x2) by substitution. The answer is xtan−1x−21ln(1+x2)+C.
Example 4 (twice). Find ∫x2exdx.
Take u=x2 and dv=exdx. The formula gives x2ex−∫2xexdx.
Use Example 1 for the last integral: ∫2xexdx=2xex−2ex.
The answer is ex(x2−2x+2)+C.
Example 5 (a cycle). Find I=∫exsinxdx.
Take u=sinx and dv=exdx. Then I=exsinx−∫excosxdx.
Use parts again on the last integral, with u=cosx. It gives ∫excosxdx=excosx+∫exsinxdx=excosx+I.
So I=exsinx−excosx−I, which gives 2I=ex(sinx−cosx).
The answer is I=2ex(sinx−cosx)+C.
The shortcut ex[f(x)+f′(x)]
Differentiate exf(x) by the product rule. You get exf(x)+exf′(x)=ex[f(x)+f′(x)]. Read it backwards:
∫ex[f(x)+f′(x)]dx=exf(x)+C.
Example 6. Find ∫ex(x1−x21)dx. Here f(x)=x1 and f′(x)=−x21. So the integral is xex+C, with no parts needed.
Practise with new numbers
Try it in Python
The formula for ∫xekxdx came from integration by parts. The program checks it for three values of k by taking the slope of the answer.
Common mistakes
Choosing u the wrong way round. If the second integral is harder than the first, swap the roles of u and dv.
Losing a sign. The formula has a minus: uv−∫vdu.
Forgetting the factor in v. For dv=ekxdx we have v=kekx, not ekx.
Stopping at the first step. After the first step, look at the new integral. It may need parts again.
Using parts on a product that is only substitution.∫xex2dx is a substitution.
Remember these
∫udv=uv−∫vdu, from the product rule.
ILATE: Inverse trigonometric, Logarithmic, Algebraic, Trigonometric, Exponential. Choose u from the earlier one.
lnx and tan−1x are integrated with dv=dx.
∫ex[f(x)+f′(x)]dx=exf(x)+C.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.