Free Mathematics Class 12 ICSE notes · practise this chapter with an AI quiz

← All study notes

How Integration by Parts Undoes the Product Rule

Integrate products with integration by parts, split proper rational functions into partial fractions with linear, repeated and irreducible quadratic factors, and integrate improper rational functions after division.

What do you do when an integrand is a product or a fraction?

Substitution works when a function sits beside its derivative, but products like xexxe^x and fractions like 1x2−1\dfrac{1}{x^2 - 1} need other tools. Integration by parts reverses the product rule, and partial fractions break a complicated fraction into simple pieces.

This lesson covers integration by parts, partial fractions with linear, repeated and quadratic factors, and improper rational functions.

How do you integrate a product of functions using integration by parts?

Integration by parts states that ∫uv dx=u∫v dx−∫(u′∫v dx)dx\int uv\,dx = u\int v\,dx - \int \left(u'\int v\,dx\right)dx, where u is chosen as the factor that becomes simpler when differentiated — usually following the order inverse trigonometric, logarithmic, algebraic, trigonometric, exponential.

Where it comes from.
Integrate the product rule (uw)′=u′w+uw′(uw)' = u'w + uw' and rearrange, with w=∫v dxw = \int v\,dx.

Worked example. Find ∫xex dx\int xe^x\,dx with u=xu = x and v=exv = e^x:

∫xex dx=xex−∫ex dx=ex(x−1)+C\int xe^x\,dx = xe^x - \int e^x\,dx = e^x(x - 1) + C

Worked example 2. Find ∫log⁡x dx\int \log x\,dx with u=log⁡xu = \log x and v=1v = 1:

∫log⁡x dx=xlog⁡x−∫x×1x dx=xlog⁡x−x+C\int \log x\,dx = x\log x - \int x \times \frac{1}{x}\,dx = x\log x - x + C

Worked example 3 (applied twice). ∫x2sin⁡x dx=−x2cos⁡x+2∫xcos⁡x dx=−x2cos⁡x+2xsin⁡x+2cos⁡x+C\int x^2\sin x\,dx = -x^2\cos x + 2\int x\cos x\,dx = -x^2\cos x + 2x\sin x + 2\cos x + C.

A special form. ∫ex[f(x)+f′(x)] dx=exf(x)+C\int e^x[f(x) + f'(x)]\,dx = e^xf(x) + C, so ∫ex(sin⁡x+cos⁡x) dx=exsin⁡x+C\int e^x(\sin x + \cos x)\,dx = e^x\sin x + C.

An everyday example. The total amount of a medicine released into the blood when the release rate follows te−tte^{-t} is found by integration by parts.

The substance. A poor choice of u makes the integral harder
— taking u=exu = e^x in ∫xex dx\int xe^x\,dx produces ∫x22ex dx\int \dfrac{x^2}{2}e^x\,dx, which is worse.

How do you split a proper rational function with linear and repeated linear factors into partial fractions?

A proper fraction whose denominator has distinct linear factors splits as Ax−a+Bx−b\dfrac{A}{x - a} + \dfrac{B}{x - b}, a repeated factor (x−a)2(x - a)^2 needs both Ax−a\dfrac{A}{x - a} and B(x−a)2\dfrac{B}{(x - a)^2}, and the constants are found by clearing denominators and substituting convenient values of x.

Worked example (distinct factors).


x+5(x−1)(x+2)=Ax−1+Bx+2\frac{x + 5}{(x - 1)(x + 2)} = \frac{A}{x - 1} + \frac{B}{x + 2}

So x+5=A(x+2)+B(x−1)x + 5 = A(x + 2) + B(x - 1). Putting x=1x = 1 gives A=2A = 2, and putting x=−2x = -2 gives B=−1B = -1. Hence

∫x+5(x−1)(x+2) dx=2log⁡∣x−1∣−log⁡∣x+2∣+C\int \frac{x + 5}{(x - 1)(x + 2)}\,dx = 2\log|x - 1| - \log|x + 2| + C

Worked example (repeated factor). Write 3x+1(x−1)2(x+1)=Ax−1+B(x−1)2+Dx+1\dfrac{3x + 1}{(x - 1)^2(x + 1)} = \dfrac{A}{x - 1} + \dfrac{B}{(x - 1)^2} + \dfrac{D}{x + 1}, so 3x+1=A(x−1)(x+1)+B(x+1)+D(x−1)23x + 1 = A(x - 1)(x + 1) + B(x + 1) + D(x - 1)^2.

- At x=1x = 1: 4=2B4 = 2B, so B=2B = 2
- At x=−1x = -1: −2=4D-2 = 4D, so D=−12D = -\dfrac{1}{2}
- Comparing coefficients of x2x^2: 0=A+D0 = A + D, so A=12A = \dfrac{1}{2}

The integral is 12log⁡∣x−1∣−2x−1−12log⁡∣x+1∣+C\dfrac{1}{2}\log|x - 1| - \dfrac{2}{x - 1} - \dfrac{1}{2}\log|x + 1| + C.

An everyday example. Splitting a shared restaurant bill into each person's share turns one complicated total into simple parts, just as partial fractions do.

The substance. A repeated factor needs every power up to its multiplicity — using only Ax−1\dfrac{A}{x - 1} for (x−1)2(x - 1)^2 can never match the numerator.

How do you split a rational function with an irreducible quadratic factor into partial fractions?

For a quadratic factor such as x2+1x^2 + 1 that cannot be factorised over the real numbers, the partial fraction has a linear numerator, Bx+Dx2+1\dfrac{Bx + D}{x^2 + 1}, and it integrates into a logarithm plus an inverse tangent.

Worked example.


2x+3(x−1)(x2+1)=Ax−1+Bx+Dx2+1\frac{2x + 3}{(x - 1)(x^2 + 1)} = \frac{A}{x - 1} + \frac{Bx + D}{x^2 + 1}

Clearing denominators, 2x+3=A(x2+1)+(Bx+D)(x−1)2x + 3 = A(x^2 + 1) + (Bx + D)(x - 1).

- At x=1x = 1: 5=2A5 = 2A, so A=52A = \dfrac{5}{2}
- Comparing coefficients of x2x^2: 0=A+B0 = A + B, so B=−52B = -\dfrac{5}{2}
- Comparing constants: 3=A−D3 = A - D, so D=−12D = -\dfrac{1}{2}

Then

∫2x+3(x−1)(x2+1) dx=52log⁡∣x−1∣−54log⁡(x2+1)−12tan⁡−1x+C\int \frac{2x + 3}{(x - 1)(x^2 + 1)}\,dx = \frac{5}{2}\log|x - 1| - \frac{5}{4}\log(x^2 + 1) - \frac{1}{2}\tan^{-1}x + C

Numerical check. At x=2x = 2 the fraction equals 75=1.4\dfrac{7}{5} = 1.4, and the partial fractions give 2.5+−5−0.55=2.5−1.1=1.42.5 + \dfrac{-5 - 0.5}{5} = 2.5 - 1.1 = 1.4.

An everyday example. An engineer analysing how a circuit responds to a signal routinely splits such fractions, where the quadratic part corresponds to an oscillation.

The substance. A constant numerator over a quadratic factor is not enough — the numerator must be the general linear form Bx+DBx + D.

How do you integrate an improper rational function by first reducing it to a proper fraction?

When the degree of the numerator is at least the degree of the denominator, divide first to write the fraction as a polynomial plus a proper fraction, then integrate the polynomial directly and the proper fraction by partial fractions.

Worked example. Find ∫x3+x+1x2−1 dx\int \dfrac{x^3 + x + 1}{x^2 - 1}\,dx.

- Division: x3+x+1=x(x2−1)+2x+1x^3 + x + 1 = x(x^2 - 1) + 2x + 1, so the integrand is x+2x+1x2−1x + \dfrac{2x + 1}{x^2 - 1}
- Partial fractions: 2x+1(x−1)(x+1)=3/2x−1+1/2x+1\dfrac{2x + 1}{(x - 1)(x + 1)} = \dfrac{3/2}{x - 1} + \dfrac{1/2}{x + 1}

∫x3+x+1x2−1 dx=x22+32log⁡∣x−1∣+12log⁡∣x+1∣+C\int \frac{x^3 + x + 1}{x^2 - 1}\,dx = \frac{x^2}{2} + \frac{3}{2}\log|x - 1| + \frac{1}{2}\log|x + 1| + C

Numerical check. At x=2x = 2 the integrand is 113≈3.667\dfrac{11}{3} \approx 3.667, and 2+32+16≈3.6672 + \dfrac{3}{2} + \dfrac{1}{6} \approx 3.667.

Worked example 2. x2x2+4=1−4x2+4\dfrac{x^2}{x^2 + 4} = 1 - \dfrac{4}{x^2 + 4}, so ∫x2x2+4 dx=x−2tan⁡−1x2+C\int \dfrac{x^2}{x^2 + 4}\,dx = x - 2\tan^{-1}\dfrac{x}{2} + C.

An everyday example. Sharing 17 rupees among 5 people as 3 rupees each with 2 left over is the same step — separate the whole part before dealing with the remainder.

The substance. Partial fractions apply only to proper fractions — trying them on an improper fraction leads to equations with no solution.
Exam tip

What earns full marks on integration by parts and partial fractions?

Write the partial fraction form with all unknown constants before solving for them, and in integration by parts state clearly which factor is u.

- ∫uv dx=u∫v dx−∫(u′∫v dx)dx\int uv\,dx = u\int v\,dx - \int \left(u'\int v\,dx\right)dx
- Distinct linear factors: Ax−a\dfrac{A}{x - a}; repeated factors: add B(x−a)2\dfrac{B}{(x - a)^2}
- Irreducible quadratic factor: numerator Bx+DBx + D
- Improper fractions: divide first

The trap. Using a constant numerator over a quadratic factor. The numerator must be Bx+DBx + D.
Did you know

Why do engineers split fractions to understand circuits and vibrations?

Many real systems — electrical circuits, vehicle suspensions and buildings swaying in the wind — are described by fractions of polynomials in a variable that represents frequency.

Splitting such a fraction into partial fractions separates the response into simple parts: linear factors give smoothly fading behaviour, while irreducible quadratic factors give oscillations. Each part can then be studied on its own.

The same algebra from this chapter helps engineers predict whether a bridge will shake or a circuit will hum.
Exam relevance

How are integration by parts and partial fractions tested in JEE Main?

Integrals is a recurring JEE Main chapter, and these two methods, often combined with substitution, appear in both indefinite and definite integral questions.

What gets asked. Integrals of the form ex[f(x)+f′(x)]e^x[f(x) + f'(x)], products involving logarithms and inverse trigonometric functions, and rational functions that need partial fractions after a substitution.

Question types. Multiple-choice and numerical-value questions, sometimes asking for a constant in the final answer.

The trap that costs marks. Choosing u badly
in integration by parts, which turns a two-line integral into an impossible one.
Key takeaways

What must you be able to do from this lesson?

- Integration by parts: ∫uv dx=u∫v dx−∫(u′∫v dx)dx\int uv\,dx = u\int v\,dx - \int \left(u'\int v\,dx\right)dx, with u chosen to simplify on differentiation
- Linear and repeated factors: Ax−a\dfrac{A}{x - a} terms, plus B(x−a)2\dfrac{B}{(x - a)^2} for repeated factors
- Quadratic factors: Bx+Dx2+px+q\dfrac{Bx + D}{x^2 + px + q}, giving logarithms and inverse tangents
- Improper fractions: divide first, then use partial fractions

Can you find ∫xlog⁡x dx\int x\log x\,dx using integration by parts?

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Integration by Parts and Partial FractionsCreate a free account
← Back to all articles