PracticeVideosBlogFlashcards

7.2 Integration by Parts & Partial Fractions

Key Takeaways

  • Integration by parts ∫uv′dx=uv−∫u′vdx\int u v' dx = uv - \int u' v dx serves as the integral counterpart of the product rule, governed by the ILATE mnemonic (Inverse trigonometric, Logarithmic, Algebraic, Trigonometric, Exponential) to assign u(x)u(x) to the factor that simplifies most rapidly upon differentiation.

  • The tabular DI (Differentiation-Integration) method drastically accelerates repeated integration by parts for products of polynomials with exponential or sinusoidal functions (∫P(x)eaxdx\int P(x)e^{ax}dx, ∫P(x)sin⁡(ax)dx\int P(x)\sin(ax)dx), eliminating cumbersome multi-bracket scratch work.

  • The master exponential theorem ∫ex[f(x)+f′(x)]dx=exf(x)+c\int e^x [f(x) + f'(x)] dx = e^x f(x) + c and its generalized frequency form ∫ekx[kf(x)+f′(x)]dx=ekxf(x)+c\int e^{kx}[k f(x) + f'(x)] dx = e^{kx} f(x) + c resolve complex ECAT questions instantly through direct derivative inspection.

  • Cyclic integrals, such as ∫eaxsin⁡(bx)dx=eaxa2+b2(asin⁡bx−bcos⁡bx)+c\int e^{ax}\sin(bx)dx = \frac{e^{ax}}{a^2+b^2}(a\sin bx - b\cos bx) + c, return to the original integral after two rounds of parts and can be evaluated immediately via standard coefficient formulas.

  • The Heaviside cover-up method provides an instantaneous, zero-scratch technique for decomposing proper rational functions with distinct linear factors into partial fractions.

Last updated: October 2026

Integration by Parts & Partial Fractions

When an integrand consists of a product of dissimilar functional families (such as algebraic polynomials multiplied by exponentials, logarithms, or circular trigonometric functions), or rational fractions that cannot be reduced by simple substitutions, standard elementary anti-differentiation fails. On the Pakistan ECAT, mastering advanced product handling and algebraic decomposition is vital. This section details integration by parts, the ILATE priority rule, the rapid tabular DI method, the master exponential theorem, and systematic partial fraction decomposition utilizing the Heaviside cover-up method.


1. Integration by Parts: Derivation & Mechanics

Analytical Derivation from the Product Rule

Integration by parts is the integral calculus analog of the Leibniz product rule for differentiation. Let u(x)u(x) and v(x)v(x) be two continuously differentiable functions of xx. Differentiating their product yields:

ddx[u(x)v(x)]=u(x)dvdx+v(x)dudx\frac{d}{dx}[u(x) v(x)] = u(x) \frac{dv}{dx} + v(x) \frac{du}{dx}

Integrating both sides with respect to xx:

u(x)v(x)=∫u(x)dvdxdx+∫v(x)dudxdxu(x) v(x) = \int u(x) \frac{dv}{dx} dx + \int v(x) \frac{du}{dx} dx

Rearranging to isolate the first integral produces the classical integration by parts formula:

∫udvdxdx=uv−∫vdudxdx\int u \frac{dv}{dx} dx = u v - \int v \frac{du}{dx} dx

Or in compact differential notation:

∫udv=uv−∫vdu\int u dv = uv - \int v du

Verbal Formulation

In traditional intermediate textbooks, this rule is expressed as: ∫(1st function)⋅(2nd function)dx=(1st)⋅∫(2nd)dx−∫[ddx(1st)⋅∫(2nd)dx]dx\int (\text{1st function}) \cdot (\text{2nd function}) dx = (\text{1st}) \cdot \int (\text{2nd}) dx - \int \left[ \frac{d}{dx}(\text{1st}) \cdot \int (\text{2nd}) dx \right] dx


2. The ILATE Priority Hierarchy

The strategic success of integration by parts hinges entirely upon the choice of uu (the 'first function' to differentiate) versus dvdv (the 'second function' to integrate). If chosen poorly, the resulting integral ∫vdu\int v du becomes significantly more complex than the original problem.

To ensure systematic selection, mathematicians established the ILATE priority hierarchy. The function appearing highest in the following order must be chosen as u(x)u(x):

  1. I — Inverse Trigonometric Functions: arcsin⁡x,arccos⁡x,arctan⁡x,arcsec x\arcsin x, \arccos x, \arctan x, \text{arcsec } x
  2. L — Logarithmic Functions: ln⁡x,log⁡ax\ln x, \log_a x
  3. A — Algebraic Functions: xn,ax+b,x2+5,xx^n, ax + b, x^2 + 5, \sqrt{x}
  4. T — Trigonometric Functions: sin⁡x,cos⁡x,tan⁡x,sec⁡x\sin x, \cos x, \tan x, \sec x
  5. E — Exponential Functions: ex,ax,ekxe^x, a^x, e^{kx}

Why ILATE Works

Functions at the top of the list (Inverse trigonometric and Logarithmic) have no elementary integrals of their own, but differentiate into simple algebraic fractions. Conversely, functions at the bottom (Exponential and Trigonometric) can be integrated repeatedly without increasing their algebraic complexity.

Integrating Single Transcendental Functions via the Factor of Unity (11)

A classical ECAT technique applies integration by parts to single inverse trigonometric or logarithmic functions by introducing the phantom algebraic factor 1=x01 = x^0 as the second function (dv=1dx  ⟹  v=xdv = 1 dx \implies v = x):

  1. ∫ln⁡xdx\int \ln x dx:

    • Choose u=ln⁡xu = \ln x and dv=1dx  ⟹  du=1xdx,v=xdv = 1 dx \implies du = \frac{1}{x} dx, v = x.
    • ∫ln⁡xdx=xln⁡x−∫x(1x)dx=xln⁡x−∫1dx=xln⁡x−x+c=x(ln⁡x−1)+c\int \ln x dx = x \ln x - \int x \left(\frac{1}{x}\right) dx = x \ln x - \int 1 dx = x \ln x - x + c = x(\ln x - 1) + c.
  2. ∫arctan⁡xdx\int \arctan x dx:

    • Choose u=arctan⁡xu = \arctan x and dv=1dx  ⟹  du=11+x2dx,v=xdv = 1 dx \implies du = \frac{1}{1 + x^2} dx, v = x.
    • ∫arctan⁡xdx=xarctan⁡x−∫x1+x2dx=xarctan⁡x−12ln⁡(1+x2)+c\int \arctan x dx = x \arctan x - \int \frac{x}{1 + x^2} dx = x \arctan x - \frac{1}{2}\ln(1 + x^2) + c.
  3. ∫arcsin⁡xdx\int \arcsin x dx:

    • Choose u=arcsin⁡xu = \arcsin x and dv=1dx  ⟹  du=11−x2dx,v=xdv = 1 dx \implies du = \frac{1}{\sqrt{1 - x^2}} dx, v = x.
    • ∫arcsin⁡xdx=xarcsin⁡x−∫x1−x2dx=xarcsin⁡x+1−x2+c\int \arcsin x dx = x \arcsin x - \int \frac{x}{\sqrt{1 - x^2}} dx = x \arcsin x + \sqrt{1 - x^2} + c.

3. Tabular Integration (The DI Method)

When integrating products of polynomials P(x)P(x) and functions that can be integrated indefinitely without termination (such as eaxe^{ax}, sin⁡(bx)\sin(bx), or cos⁡(bx)\cos(bx)), applying standard integration by parts repeatedly generates nested minus signs and high rates of algebraic error. The Tabular Method (or DI Method) resolves this in seconds.

Algorithmic Procedure

  1. Construct two columns labeled D (Differentiate) and I (Integrate).
  2. Place the polynomial P(x)P(x) in the D column and repeatedly differentiate until reaching 00.
  3. Place the transcendental factor (eax,sin⁡bx,cos⁡bxe^{ax}, \sin bx, \cos bx) in the I column and repeatedly integrate an equal number of times.
  4. Assign an alternating sign column starting with ++, followed by −,+,−,…-, +, -, \dots.
  5. Connect each entry in row kk of column D with the entry in row k+1k+1 of column I with a diagonal arrow.
  6. Multiply terms along each diagonal arrow, apply the indicated row sign, and sum the results.

Comprehensive Walkthrough: Evaluate ∫x3e2xdx\int x^3 e^{2x} dx

Row signD (Differentiate)I (Integrate)Diagonal product (D in this row × I in the next row)
(+)(+)x3x^3e2xe^{2x}+(x3)(12e2x)=12x3e2x+(x^3)\left(\frac{1}{2}e^{2x}\right) = \frac{1}{2}x^3 e^{2x}
(−)(-)3x23x^212e2x\frac{1}{2}e^{2x}−(3x2)(14e2x)=−34x2e2x-(3x^2)\left(\frac{1}{4}e^{2x}\right) = -\frac{3}{4}x^2 e^{2x}
(+)(+)6x6x14e2x\frac{1}{4}e^{2x}+(6x)(18e2x)=34xe2x+(6x)\left(\frac{1}{8}e^{2x}\right) = \frac{3}{4}x e^{2x}
(−)(-)6618e2x\frac{1}{8}e^{2x}−(6)(116e2x)=−38e2x-(6)\left(\frac{1}{16}e^{2x}\right) = -\frac{3}{8}e^{2x}
(+)(+)00116e2x\frac{1}{16}e^{2x}— (stop: the D column has reached 00)

Summing all products and factoring out e2x8\frac{e^{2x}}{8}:

∫x3e2xdx=e2x(x32−3x24+3x4−38)+c=e2x8(4x3−6x2+6x−3)+c\int x^3 e^{2x} dx = e^{2x} \left( \frac{x^3}{2} - \frac{3x^2}{4} + \frac{3x}{4} - \frac{3}{8} \right) + c = \frac{e^{2x}}{8}(4x^3 - 6x^2 + 6x - 3) + c

The table replaces three successive rounds of integration by parts with one compact layout, which removes most sign errors.


4. Cyclic Integrals

When neither factor differentiates to zero—specifically when integrating products of exponential and trigonometric functions (eaxsin⁡bxe^{ax}\sin bx or eaxcos⁡bxe^{ax}\cos bx)—applying integration by parts twice recreates a scalar multiple of the original integral. This is known as a cyclic integral.

Closed-Form ECAT Formulas

Candidates should memorize these closed forms directly:

∫eaxsin⁡(bx)dx=eaxa2+b2[asin⁡(bx)−bcos⁡(bx)]+c\int e^{ax}\sin(bx) dx = \frac{e^{ax}}{a^2 + b^2} [a\sin(bx) - b\cos(bx)] + c

∫eaxcos⁡(bx)dx=eaxa2+b2[acos⁡(bx)+bsin⁡(bx)]+c\int e^{ax}\cos(bx) dx = \frac{e^{ax}}{a^2 + b^2} [a\cos(bx) + b\sin(bx)] + c

Memory Aid: The denominator is always the sum of squares a2+b2a^2 + b^2. The bracketed term begins with aa multiplying the original trigonometric function, followed by −b-b times the derivative of sine (which is −bcos⁡bx-b\cos bx) or +b+b times the derivative of cosine (reversing sign, yielding +bsin⁡bx+b\sin bx).

The Integral of sec⁡3x\sec^3 x

Another famous cyclic integral is ∫sec⁡3xdx\int \sec^3 x dx: ∫sec⁡3xdx=∫sec⁡x⋅sec⁡2xdx\int \sec^3 x dx = \int \sec x \cdot \sec^2 x dx Let u=sec⁡x,dv=sec⁡2xdx  ⟹  du=sec⁡xtan⁡xdx,v=tan⁡xu = \sec x, dv = \sec^2 x dx \implies du = \sec x \tan x dx, v = \tan x: ∫sec⁡3xdx=sec⁡xtan⁡x−∫sec⁡xtan⁡2xdx=sec⁡xtan⁡x−∫sec⁡x(sec⁡2x−1)dx\int \sec^3 x dx = \sec x \tan x - \int \sec x \tan^2 x dx = \sec x \tan x - \int \sec x (\sec^2 x - 1) dx ∫sec⁡3xdx=sec⁡xtan⁡x−∫sec⁡3xdx+∫sec⁡xdx\int \sec^3 x dx = \sec x \tan x - \int \sec^3 x dx + \int \sec x dx Adding ∫sec⁡3xdx\int \sec^3 x dx to both sides: 2∫sec⁡3xdx=sec⁡xtan⁡x+ln⁡∣sec⁡x+tan⁡x∣2\int \sec^3 x dx = \sec x \tan x + \ln|\sec x + \tan x|

∫sec⁡3xdx=12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣+c\int \sec^3 x dx = \frac{1}{2}\sec x \tan x + \frac{1}{2}\ln|\sec x + \tan x| + c


5. The Master Exponential Theorems

A very useful integration shortcut is the exponential product identity, which follows directly from the product rule.

Master Theorem 1: Base Exponential Form

∫ex[f(x)+f′(x)]dx=exf(x)+c\int e^x [f(x) + f'(x)] dx = e^x f(x) + c

Proof: Expand into two separate integrals: ∫exf(x)dx+∫exf′(x)dx\int e^x f(x) dx + \int e^x f'(x) dx. Apply integration by parts to the first integral, setting u=f(x)u = f(x) and dv=exdxdv = e^x dx: ∫exf(x)dx=f(x)ex−∫f′(x)exdx\int e^x f(x) dx = f(x) e^x - \int f'(x) e^x dx Substituting this back cancels the second integral identically: [exf(x)−∫exf′(x)dx]+∫exf′(x)dx=exf(x)+c\left[ e^x f(x) - \int e^x f'(x) dx \right] + \int e^x f'(x) dx = e^x f(x) + c

Master Theorem 2: Generalized Scaling Form

When an arbitrary scaling constant kk multiplies f(x)f(x):

∫ekx[kf(x)+f′(x)]dx=ekxf(x)+c\int e^{kx} [k f(x) + f'(x)] dx = e^{kx} f(x) + c

ECAT Classic Disguised Expressions

Examiners routinely conceal this theorem inside rational fractions:

  1. ∫ex(1x−1x2)dx\int e^x \left(\frac{1}{x} - \frac{1}{x^2}\right) dx: Here f(x)=1xf(x) = \frac{1}{x} and f′(x)=−1x2f'(x) = -\frac{1}{x^2}. Answer: exx+c\frac{e^x}{x} + c.
  2. ∫ex(x(x+1)2)dx\int e^x \left(\frac{x}{(x+1)^2}\right) dx: Split the numerator x=(x+1)−1x = (x + 1) - 1: x(x+1)2=x+1(x+1)2−1(x+1)2=1x+1−1(x+1)2\frac{x}{(x+1)^2} = \frac{x+1}{(x+1)^2} - \frac{1}{(x+1)^2} = \frac{1}{x+1} - \frac{1}{(x+1)^2} Here f(x)=1x+1  ⟹  f′(x)=−1(x+1)2f(x) = \frac{1}{x+1} \implies f'(x) = -\frac{1}{(x+1)^2}. Answer: exx+1+c\frac{e^x}{x+1} + c.
  3. ∫ex(tan⁡x+sec⁡2x)dx\int e^x (\tan x + \sec^2 x) dx: Here f(x)=tan⁡x,f′(x)=sec⁡2xf(x) = \tan x, f'(x) = \sec^2 x. Answer: extan⁡x+ce^x \tan x + c.
  4. ∫ex(1+sin⁡x1+cos⁡x)dx\int e^x \left(\frac{1 + \sin x}{1 + \cos x}\right) dx: Use half-angle identities: 1+2sin⁡(x/2)cos⁡(x/2)2cos⁡2(x/2)=12sec⁡2(x/2)+tan⁡(x/2)\frac{1 + 2\sin(x/2)\cos(x/2)}{2\cos^2(x/2)} = \frac{1}{2}\sec^2(x/2) + \tan(x/2) Here f(x)=tan⁡(x/2)f(x) = \tan(x/2), whose derivative is f′(x)=12sec⁡2(x/2)f'(x) = \frac{1}{2}\sec^2(x/2). Answer: extan⁡(x/2)+ce^x \tan(x/2) + c.

6. Partial Fraction Decomposition for Rational Functions

A rational function is an algebraic quotient P(x)Q(x)\frac{P(x)}{Q(x)} where P(x)P(x) and Q(x)Q(x) are polynomials.

  • Proper Rational Fraction: deg⁡(P)<deg⁡(Q)\deg(P) < \deg(Q).
  • Improper Rational Fraction: deg⁡(P)≥deg⁡(Q)\deg(P) \ge \deg(Q).

Mandatory Rule: If a rational fraction is improper (degree of numerator ≥\ge degree of denominator), polynomial long division is strictly required first before applying partial fractions: P(x)Q(x)=S(x)+R(x)Q(x)\frac{P(x)}{Q(x)} = S(x) + \frac{R(x)}{Q(x)}, where deg⁡(R)<deg⁡(Q)\deg(R) < \deg(Q).

Classification of Proper Partial Fraction Decompositions

Denominator Factor TypeForm of Factor in Q(x)Q(x)Assumed Partial Fraction Decomposition Term
Distinct Linear(ax+b)(ax + b)Aax+b\frac{A}{ax + b}
Repeated Linear(ax+b)k(ax + b)^kA1ax+b+A2(ax+b)2+⋯+Ak(ax+b)k\frac{A_1}{ax + b} + \frac{A_2}{(ax + b)^2} + \dots + \frac{A_k}{(ax + b)^k}
Irreducible Quadratic(ax2+bx+c)(ax^2 + bx + c)Ax+Bax2+bx+c\frac{Ax + B}{ax^2 + bx + c}
Repeated Quadratic(ax2+bx+c)2(ax^2 + bx + c)^2A1x+B1ax2+bx+c+A2x+B2(ax2+bx+c)2\frac{A_1 x + B_1}{ax^2 + bx + c} + \frac{A_2 x + B_2}{(ax^2 + bx + c)^2}

The Heaviside Cover-Up Method

For proper rational fractions with distinct, non-repeated linear factors, the classical method of equating undetermined coefficients wastes far too much time. Oliver Heaviside's cover-up method computes coefficients instantly in one step.

To find the numerator coefficient AiA_i corresponding to the linear factor (x−ri)(x - r_i):

  1. Cover (remove) the factor (x−ri)(x - r_i) from the denominator of the original fraction.
  2. Evaluate the remainder of the expression at the root x=rix = r_i.

Ai=lim⁡x→ri[(x−ri)P(x)Q(x)]A_i = \lim_{x \to r_i} \left[ (x - r_i) \frac{P(x)}{Q(x)} \right]

Example: Decompose 5x−2(x−2)(x+1)\frac{5x - 2}{(x - 2)(x + 1)}.

  • To find AA above (x−2)(x - 2): Cover (x−2)(x - 2) and set x=2x = 2: A=5x−2x+1∣x=2=5(2)−22+1=83A = \left. \frac{5x - 2}{x + 1} \right|_{x=2} = \frac{5(2) - 2}{2 + 1} = \frac{8}{3}
  • To find BB above (x+1)(x + 1): Cover (x+1)(x + 1) and set x=−1x = -1: B=5x−2x−2∣x=−1=5(−1)−2−1−2=−7−3=73B = \left. \frac{5x - 2}{x - 2} \right|_{x=-1} = \frac{5(-1) - 2}{-1 - 2} = \frac{-7}{-3} = \frac{7}{3}
  • Instant Decomposition: 5x−2(x−2)(x+1)=8/3x−2+7/3x+1\frac{5x - 2}{(x - 2)(x + 1)} = \frac{8/3}{x - 2} + \frac{7/3}{x + 1}. Done in 10 seconds!

Repeated Linear Factor Example

Decompose and integrate x+3(x−1)2(x+1)\frac{x + 3}{(x - 1)^2(x + 1)}. Set

x+3(x−1)2(x+1)=Ax−1+B(x−1)2+Cx+1\frac{x + 3}{(x - 1)^2(x + 1)} = \frac{A}{x - 1} + \frac{B}{(x - 1)^2} + \frac{C}{x + 1}

  • Cover-up gives the top-power coefficient and the distinct factor: B=x+3x+1∣x=1=2B = \left.\frac{x + 3}{x + 1}\right|_{x=1} = 2 and C=x+3(x−1)2∣x=−1=24=12C = \left.\frac{x + 3}{(x - 1)^2}\right|_{x=-1} = \frac{2}{4} = \frac{1}{2}.
  • The remaining coefficient comes from comparing x2x^2 terms in x+3=A(x−1)(x+1)+B(x+1)+C(x−1)2x + 3 = A(x - 1)(x + 1) + B(x + 1) + C(x - 1)^2: 0=A+C0 = A + C, so A=−12A = -\frac{1}{2}.
  • Check at x=0x = 0: 3=−A+B+C=12+2+123 = -A + B + C = \frac{1}{2} + 2 + \frac{1}{2}. Correct.

∫x+3(x−1)2(x+1) dx=−12ln⁡∣x−1∣−2x−1+12ln⁡∣x+1∣+c\int \frac{x + 3}{(x - 1)^2(x + 1)}\,dx = -\frac{1}{2}\ln|x - 1| - \frac{2}{x - 1} + \frac{1}{2}\ln|x + 1| + c

Irreducible Quadratic Factor Example

1x(x2+1)=Ax+Bx+Cx2+1\frac{1}{x(x^2 + 1)} = \frac{A}{x} + \frac{Bx + C}{x^2 + 1}

Cover-up gives A=1A = 1. Then 1=(x2+1)+(Bx+C)x1 = (x^2 + 1) + (Bx + C)x forces B=−1B = -1 and C=0C = 0, so

∫dxx(x2+1)=ln⁡∣x∣−12ln⁡(x2+1)+c\int \frac{dx}{x(x^2 + 1)} = \ln|x| - \frac{1}{2}\ln(x^2 + 1) + c

Loading diagram...
Decision Flowchart for Selecting Integration Technique
Test Your Knowledge

What is the value of ∫ex(1+sin⁡x1+cos⁡x)dx\int e^x \left(\frac{1 + \sin x}{1 + \cos x}\right) dx?

A

exsin⁡x+ce^x \sin x + c

B

excos⁡(x/2)+ce^x \cos(x/2) + c

C

exsec⁡2(x/2)+ce^x \sec^2(x/2) + c

D

extan⁡(x/2)+ce^x \tan(x/2) + c

Test Your Knowledge

Evaluate ∫x2e3xdx\int x^2 e^{3x} dx using tabular integration.

A

e3x9(3x2−2x+2)+c\frac{e^{3x}}{9}(3x^2 - 2x + 2) + c

B

e3x27(9x2−6x+2)+c\frac{e^{3x}}{27}(9x^2 - 6x + 2) + c

C

e3x27(9x2+6x+2)+c\frac{e^{3x}}{27}(9x^2 + 6x + 2) + c

D

e3x3(x2−2x+2)+c\frac{e^{3x}}{3}(x^2 - 2x + 2) + c

Test Your Knowledge

Using the Heaviside cover-up method, what are the partial fraction coefficients AA and BB for 3x+5(x−1)(x+3)=Ax−1+Bx+3\frac{3x + 5}{(x - 1)(x + 3)} = \frac{A}{x - 1} + \frac{B}{x + 3}?

A

A=1,B=2A = 1, B = 2

B

A=2,B=−1A = 2, B = -1

C

A=2,B=1A = 2, B = 1

D

A=−2,B=1A = -2, B = 1

Sections you finish are checked off in the contents.