← Back to all lessons
Class 12Calculus9:06Published 20 Sept 2024

Partial Fractions by Substitution (Part 1)

Four worked integrals that combine a substitution with partial fractions, from the Class 12 integrals exercise. Each one is reduced to a simple rational function and then split into partial fractions to integrate.

This lesson works through integrals where a clever substitution turns a messy rational expression into a clean one that splits into partial fractions. Starting with the spotting of the right substitution (often setting a power of x equal to t), each example is reduced, separated into simple fractions, and integrated to a logarithm. The questions come from the sure-question set for Class 12 integrals and build the habit of pairing substitution with partial fractions.

What you'll learn

  • How to spot when a substitution will simplify a rational integral before splitting it
  • Setting a power of x equal to a new variable and adjusting the differential
  • Breaking the reduced fraction into partial fractions and finding the constants
  • Putting the pieces together into a logarithm and substituting back the original variable

Lesson chapters

0:01First integral and the substitution
0:46Setting up and solving the partial fractions
2:27Second integral with an exponential substitution
4:17Third integral: x cubed over a quartic
6:51Fourth integral and the multiply-through trick

Lesson notes

This lesson works through four integrals from the Class 12 sure-question set where a substitution first simplifies the integrand, and partial fractions then finish the job. In each case we choose a substitution, reduce the integral to a simple rational function, split it into partial fractions, integrate, and substitute back.

First integral: ∫2x(x2+1)(x2+3) dx\int \dfrac{2x}{(x^2+1)(x^2+3)}\,dx

Because the numerator 2x2x is exactly the derivative of x2x^2, substitute x2=tx^2 = t, so 2x dx=dt2x\,dx = dt. The integral becomes

I=∫dt(t+1)(t+3).I = \int \frac{dt}{(t+1)(t+3)}.

Partial fractions

Write

1(t+1)(t+3)=At+1+Bt+3,\frac{1}{(t+1)(t+3)} = \frac{A}{t+1} + \frac{B}{t+3},

so 1=A(t+3)+B(t+1)1 = A(t+3) + B(t+1).

  • Put t=−3t = -3:   1=−2B\;1 = -2B, hence B=−12B = -\tfrac{1}{2}.
  • Put t=−1t = -1:   1=2A\;1 = 2A, hence A=12A = \tfrac{1}{2}.

Integrate

I=12∫dtt+1−12∫dtt+3=12ln⁡∣t+1∣−12ln⁡∣t+3∣.I = \tfrac{1}{2}\int \frac{dt}{t+1} - \tfrac{1}{2}\int \frac{dt}{t+3} = \tfrac{1}{2}\ln|t+1| - \tfrac{1}{2}\ln|t+3|.

Using ln⁡a−ln⁡b=ln⁡ab\ln a - \ln b = \ln\tfrac{a}{b} and resubstituting t=x2t = x^2,

I=12ln⁡∣x2+1x2+3∣+C.I = \tfrac{1}{2}\ln\left|\frac{x^2+1}{x^2+3}\right| + C.

Second integral: ∫1ax−1 dx\int \dfrac{1}{a^{x}-1}\,dx

Put ax=ta^{x} = t. Differentiating, axln⁡a dx=dta^{x}\ln a\,dx = dt, so dx=dtaxln⁡a=dttln⁡adx = \dfrac{dt}{a^{x}\ln a} = \dfrac{dt}{t\ln a}. Then

I=∫1t−1⋅dttln⁡a=1ln⁡a∫dtt(t−1).I = \int \frac{1}{t-1}\cdot\frac{dt}{t\ln a} = \frac{1}{\ln a}\int \frac{dt}{t(t-1)}.

Partial fractions

1t(t−1)=At+Bt−1,1=A(t−1)+Bt.\frac{1}{t(t-1)} = \frac{A}{t} + \frac{B}{t-1}, \qquad 1 = A(t-1) + Bt.

  • Put t=1t = 1:   1=B\;1 = B, so B=1B = 1.
  • Put t=0t = 0:   1=−A\;1 = -A, so A=−1A = -1.

Integrate

I=1ln⁡a[−∫dtt+∫dtt−1]=1ln⁡a(−ln⁡∣t∣+ln⁡∣t−1∣)=1ln⁡aln⁡∣t−1t∣.I = \frac{1}{\ln a}\left[-\int \frac{dt}{t} + \int \frac{dt}{t-1}\right] = \frac{1}{\ln a}\left(-\ln|t| + \ln|t-1|\right) = \frac{1}{\ln a}\ln\left|\frac{t-1}{t}\right|.

Resubstituting t=axt = a^{x},

I=1ln⁡aln⁡∣ax−1ax∣+C.I = \frac{1}{\ln a}\ln\left|\frac{a^{x}-1}{a^{x}}\right| + C.

Third integral: ∫x3x4+3x2+2 dx\int \dfrac{x^{3}}{x^{4}+3x^{2}+2}\,dx

Write the numerator as x2⋅xx^{2}\cdot x and the denominator as (x2)2+3x2+2(x^{2})^{2} + 3x^{2} + 2. Put x2=tx^{2} = t, so 2x dx=dt2x\,dx = dt, i.e. x dx=12 dtx\,dx = \tfrac{1}{2}\,dt. Then

I=12∫t dtt2+3t+2=12∫t dt(t+1)(t+2).I = \frac{1}{2}\int \frac{t\,dt}{t^{2}+3t+2} = \frac{1}{2}\int \frac{t\,dt}{(t+1)(t+2)}.

Partial fractions

t(t+1)(t+2)=At+1+Bt+2,t=A(t+2)+B(t+1).\frac{t}{(t+1)(t+2)} = \frac{A}{t+1} + \frac{B}{t+2}, \qquad t = A(t+2) + B(t+1).

  • Put t=−2t = -2:   −2=−B\;-2 = -B, so B=2B = 2.
  • Put t=−1t = -1:   −1=A\;-1 = A, so A=−1A = -1.

Integrate

I=12[−∫dtt+1+2∫dtt+2]=−12ln⁡∣t+1∣+ln⁡∣t+2∣.I = \frac{1}{2}\left[-\int \frac{dt}{t+1} + 2\int \frac{dt}{t+2}\right] = -\tfrac{1}{2}\ln|t+1| + \ln|t+2|.

Resubstituting t=x2t = x^{2},

I=ln⁡∣x2+2∣−12ln⁡∣x2+1∣+C.I = \ln|x^{2}+2| - \tfrac{1}{2}\ln|x^{2}+1| + C.

Fourth integral: ∫x+1x (1+x ex) dx\int \dfrac{x+1}{x\,(1 + x\,e^{x})}\,dx

The key first step: multiply numerator and denominator by exe^{x}.

I=∫(x+1) exx ex (1+x ex) dx.I = \int \frac{(x+1)\,e^{x}}{x\,e^{x}\,(1 + x\,e^{x})}\,dx.

Now put x ex=tx\,e^{x} = t. By the product rule, ddx(x ex)=x ex+ex=(x+1) ex\dfrac{d}{dx}(x\,e^{x}) = x\,e^{x} + e^{x} = (x+1)\,e^{x}, so (x+1) ex dx=dt(x+1)\,e^{x}\,dx = dt. The numerator and the leftover factor x exx\,e^{x} in the denominator become dtdt and tt, giving

I=∫dtt (1+t).I = \int \frac{dt}{t\,(1+t)}.

Partial fractions

1t(1+t)=At+B1+t,1=A(1+t)+Bt.\frac{1}{t(1+t)} = \frac{A}{t} + \frac{B}{1+t}, \qquad 1 = A(1+t) + Bt.

  • Put t=−1t = -1:   1=−B\;1 = -B, so B=−1B = -1.
  • Put t=0t = 0:   1=A\;1 = A, so A=1A = 1.

Integrate

I=∫dtt−∫dt1+t=ln⁡∣t∣−ln⁡∣1+t∣=ln⁡∣t1+t∣.I = \int \frac{dt}{t} - \int \frac{dt}{1+t} = \ln|t| - \ln|1+t| = \ln\left|\frac{t}{1+t}\right|.

Resubstituting t=x ext = x\,e^{x},

I=ln⁡∣x ex1+x ex∣+C.I = \ln\left|\frac{x\,e^{x}}{1 + x\,e^{x}}\right| + C.

Key takeaways

  • When the numerator is the derivative of a power of xx, substitute that power equal to tt to collapse the integral into a simple rational function.
  • After substituting, split into partial fractions and find the constants by putting in convenient values of tt.
  • Each piece integrates to a logarithm; combine them with ln⁡a−ln⁡b=ln⁡ab\ln a - \ln b = \ln\tfrac{a}{b} and remember to substitute the original variable back in.