MAT1051 · Week 13 · Integration by Parts, Integration by Partial Fractions
Integration by parts and partial fractions
Integration by parts for products (LIATE, the tabular method, cyclic integrals) and partial fractions for integrating rational functions. The long integral questions of the final.
integration by partsLIATEtabular integrationreductionrational functionpartial fractionsproper fractionlong divisionrepeated linear factorirreducible quadratic factorcompleting the square
In week 12, substitution was the reverse of the chain rule. This week there are two new techniques. Integration by parts is the reverse of the product rule; it solves integrals like xex, xsinx, lnx. Partial fractions breaks a rational function into pieces that are easy to integrate. The final has long but mechanical questions on both; whoever chooses the right start gets the result:
∫udv=uv−∫vdu. Choose u in LIATE order.
The integral left after parts should be easier. If it got harder, you chose u the wrong way round.
For a rational function, first look at the degrees: if the numerator is larger or equal, divide first.
The type of the denominator’s factors determines the shape of the fractions.
Integration by parts
Product rule: (uv)′=u′v+uv′. Integrate both sides and rearrange:
∫udv=uv−∫vdu
For a definite integral:
∫abudv=[uv]ab−∫abvdu
The idea: split the integrand into two parts. Let u be the part that simplifies when differentiated, and dv the part that can be integrated.
Choosing u: LIATE
The one that comes first in the list becomes u:
Letter
Type
Example
L
Logarithmic
lnx
I
Inverse trigonometric
arctanx, arcsinx
A
Algebraic
x, x2, x
T
Trigonometric
sinx, cosx
E
Exponential
ex, 2x
Example 1.∫xsinxdx. A comes before T: u=x, dv=sinxdx.
u = x dv = sin x dxdu = dx v = -cos x∫ x sin x dx = -x cos x - ∫ (-cos x) dx = -x cos x + sin x + C
If you had chosen the other way round (u=sinx, dv=xdx), the remaining integral would be ∫2x2cosxdx, which is harder.
Example 2.∫x2lnxdx. L comes before A: u=lnx, dv=x2dx, v=3x3.
∫x2lnxdx=3x3lnx−∫3x3⋅x1dx=3x3lnx−9x3+C
lnx is hard to integrate and easy to differentiate. That is why the logarithm is always u.
The tabular method
For xn times eax, sinax or cosax, you would have to do integration by parts n times. The table speeds this up: in the left column differentiate u until it reaches zero, in the right column integrate dv repeatedly, multiply diagonally, and alternate the signs +,−,+,−.
For eaxsinbx or eaxcosbx, after two integrations by parts the integral you started with comes back. Then call the integral I and solve the equation.
Example 4.I=∫e2xcosxdx.
First step: u=e2x, dv=cosxdx. I=e2xsinx−2∫e2xsinxdx.
Second step (same choice logic, u=e2x): ∫e2xsinxdx=−e2xcosx+2I.
Combine: I=e2xsinx−2(−e2xcosx+2I)=e2xsinx+2e2xcosx−4I. So 5I=e2x(sinx+2cosx):
I=5e2x(2cosx+sinx)+C
PITFALL · changing u in the second step. In a cyclic integral, if you chose u=e2x in the first step, make the exponential part u in the second step too. If you switch, you undo the first step and get I=I.
Example 5 (definite).∫01xexdx=[xex]01−∫01exdx=e−(e−1)=1.
Partial fractions
Of the form Q(x)P(x), with P and Q polynomials. Strategy: write the fraction as a sum of simple fractions whose denominators are the factors of Q. The integral of each piece gives ln or arctan.
Step 0: check the degrees
If the numerator’s degree is larger than or equal to the denominator’s, first do polynomial division: QP=(quotient)+Qremainder. The decomposition is applied only to the remainder fraction.
Factor types
In the denominator
Written in the fractions
(x−a)
x−aA
(x−a)2
x−aA+(x−a)2B
x2+bx+c (irreducible)
x2+bx+cBx+C
To find the coefficients, multiply both sides by the denominator. Then plug in the roots of the denominator (each root gives one coefficient directly), and for the remaining coefficients equate coefficients such as the x2 and constant terms.
Example 6 (distinct linear factors).∫x2−x−23x−1dx.
2x+3=A(x+1)+B. x=−1: B=1. Coefficient of x: A=2. So x+12+(x+1)21, and the integral is 2ln∣x+1∣−x+11+C.
Example 8 (irreducible quadratic).∫x(x2+1)x2+2x+3dx.
x2+2x+3=A(x2+1)+(Bx+C)x. x=0: A=3. x2: 1=A+B⇒B=−2. x: 2=C. The fractions are x3+x2+1−2x+2:
∫=3ln∣x∣−ln(x2+1)+2arctanx+C
The part x2+1−2x gave −ln(x2+1) by substitution (u=x2+1), and the part x2+12 gave 2arctanx.
PITFALL · writing only a constant in the numerator of an irreducible factor. If you write x2+1C, the equation won’t match. The numerator of a quadratic factor is always Bx+C.
TIP · complete the square in the denominator. For an irreducible x2+bx+c write (x+2b)2+k2. ∫u2+k2dx=k1arctanku+C.
Common mistakes
Wrong thinking
Correct
∫xex=2x2ex
The integral of a product is not the product of integrals; by parts: ex(x−1)+C
∫lnxdx=x1
That is the derivative; the integral is xlnx−x+C
Choosing u=ex, dv=xdx
The remaining integral gets harder; LIATE: u=x
Forgetting the sign in uv−∫vdu
There is a minus in front of the remaining integral
Not alternating the signs in the tabular method
+,−,+,−
Decomposing directly when the numerator’s degree is larger
First polynomial division
Only (x−1)2B for (x−1)2
x−1A+(x−1)2B
∫x2+4dx=ln(x2+4)
21arctan2x+C
No absolute value in the ln answer
ln∣x−a∣
Test yourself
Exam-style questions. Solve them on paper first, then reveal the answer.
There is only one function, so choose dv=dx: u=lnx, du=xdx, v=x. ∫=xlnx−∫x⋅x1dx=xlnx−x+C. Definite: [xlnx−x]1e=(e−e)−(0−1)=1.
Question 4medium
Find ∫x2exdx.
Show answer
ex(x2−2x+2)+C
Integration by parts twice, or the tabular method. Derivative column: x2,2x,2,0. Integral column: ex,ex,ex. Signs +,−,+: x2ex−2xex+2ex+C.
Question 5medium
Find ∫exsinxdx.
Show answer
2ex(sinx−cosx)+C
I=∫exsinxdx. u=sinx, dv=exdx: I=exsinx−∫excosxdx. For the second one again u=cosx: ∫excosx=excosx+∫exsinx=excosx+I. Substitute: I=exsinx−excosx−I⇒2I=ex(sinx−cosx).
The numerator's degree is larger than the denominator's: first polynomial division. x3+x=(x−1)(x2+x+2)+2. So the integrand is x2+x+2+x−12. Integrate term by term.
Question 11hard
Find ∫x2+2x+52x+3dx.
Show answer
ln(x2+2x+5)+21arctan2x+1+C
The denominator does not factor (discriminant 4−20<0). Write the numerator as "derivative of the denominator + constant": 2x+3=(2x+2)+1. The first part is ∫x2+2x+52x+2=ln(x2+2x+5). Second part: complete the square, x2+2x+5=(x+1)2+4. ∫(x+1)2+4dx=21arctan2x+1.
Verification: All answers were checked with node (verify/MAT1051/13.mjs): the central-difference derivative of every indefinite integral answer was compared with the integrand at three or four points; partial fraction decompositions were compared with the original fraction; definite integrals with Simpson's rule.
Review card
PARTS: ∫ u dv = uv - ∫ v du
Choosing u with LIATE (the earlier one is u): Log, Inverse trig, Algebraic, Trig, Exponential
∫ ln x, ∫ arctan x: u = that function, dv = dx
x^n · (e^x, sin, cos): tabular method, signs + - + -
e^x sin x type: parts twice -> the integral comes back -> solve for I
PARTIAL FRACTIONS: 1) numerator degree >= denominator -> DIVIDE first 2) factor the denominator
(x - a) -> A/(x - a)
(x - a)^2 -> A/(x - a) + B/(x - a)^2
(x^2 + bx + c) irreducible -> (Bx + C)/(x^2 + bx + c)
Plug in the roots (quick A, B), equate coefficients for the rest
∫ A/(x - a) = A ln|x - a| ∫ dx/(x^2 + a^2) = (1/a) arctan(x/a)