EZ Tuitions Logo
EZ Tuitions
Back to Blog

Integration by Parts: Choose the First Function, Class 12

5 min read• 12/4/2026• By Ananya Sharma, Academic Content Lead, EZ Tuitions• Exam Prep

Class 12 integration by parts: how to choose the first function, with 3 solved problems (x e^2x, x ln x, arctan x) and numerical checks.

A hand writing integral expressions in chalk on a dark blackboard
Key facts about this article
TopicExam Prep
FocusMathematics
Read time5 min
Words897
Published4 Dec 2026
Best forStudents & parents (exam prep)

Integration by parts is a short formula with one real decision inside it: which factor to call the first function. Choose well and the integral shrinks. Choose badly and you end up with something worse than you started with.

This guide follows NCERT Class 12 Mathematics, Chapter 7 (Integrals), section 7.6, and solves three original problems. Each answer ends with a check, either by differentiating or by a numerical estimate of the area.

The formula and the choice

For two functions f and g, the integral of f(x) g(x) dx equals f(x) times the integral of g(x) dx, minus the integral of [f'(x) times the integral of g(x) dx] dx. In words: differentiate the first function, integrate the second, and hope the new integral is easier.

NCERT's remark is to take a logarithmic or inverse trigonometric function as the first function, and otherwise a power of x. Many teachers shorten this to ILATE: inverse trigonometric, logarithmic, algebraic, trigonometric, exponential, in that order of priority. The NCERT example of x cos x shows why it matters. Taking cos x as first function leads to an x²/2 term and a harder integral.

Problem 1: a polynomial times an exponential

Problem 1. Find the integral of x e^(2x) dx.

Take x as the first function and e^(2x) as the second. The integral of e^(2x) is e^(2x)/2, and the derivative of x is 1. So the result is x e^(2x)/2 minus the integral of e^(2x)/2 dx, which is x e^(2x)/2 − e^(2x)/4 + C. This simplifies to e^(2x)(2x − 1)/4 + C.

Check: differentiate the answer. At x = 0.7 the derivative is 2.8386, and x e^(2x) at x = 0.7 is also 2.8386. A constant added to the integral of the second function, such as e^(2x)/2 + k, would only cancel out, so do not write one.

Problem 2: a logarithm in a definite integral

Problem 2. Evaluate the integral of x ln x dx from 1 to e.

The logarithm cannot be integrated directly in one step, so it goes first. With ln x first and x second: the integral of x dx is x²/2 and the derivative of ln x is 1/x. So the antiderivative is (x²/2) ln x minus the integral of x/2 dx, which is (x²/2) ln x − x²/4.

Now apply the limits. At x = e the value is e²/2 − e²/4 = e²/4. At x = 1 it is 0 − 1/4. The difference is (e² + 1)/4 = 2.0973. Check: a numerical estimate of the area under x ln x from 1 to e gives 2.0973 as well.

Problem 3: a single function with an inverse trig

Problem 3. Evaluate the integral of tan⁻¹ x dx from 0 to 1.

There is only one factor, so write the integrand as 1 times tan⁻¹ x. Take tan⁻¹ x as the first function and 1 as the second. Then the integral is x tan⁻¹ x minus the integral of x/(1 + x²) dx, which is x tan⁻¹ x − (1/2) ln(1 + x²).

At x = 1 this gives π/4 − (1/2) ln 2, and at x = 0 it gives 0. So the value is 0.7854 − 0.3466 = 0.4388. Check: a numerical estimate of the area under tan⁻¹ x from 0 to 1 is 0.43882.

Where marks are lost

The most common slip is choosing the second function badly, so the new integral is harder. The second is applying the limits only to the final integral and forgetting the uv term in a definite problem. The third is stopping early: x² e^x needs the method twice, and gives e^x (x² − 2x + 2) + C. Its integral from 0 to 1 is e − 2 = 0.7183.

Direct integration should come first when it works. If the integrand is a plain power, try the power rule check before reaching for parts, and for limits see the definite integral check.

Frequently asked questions

How do I know which function is the first function?

Pick the one that gets simpler when differentiated, usually a logarithm, an inverse trigonometric function or a power of x. The other factor must be something you can integrate without trouble, like an exponential or a sine.

Why do we not add a constant when integrating the second function?

Any constant added there cancels in the next step, so the final answer is the same. Write the single constant C only once, at the end of an indefinite integral.

Can integration by parts be used on a single function like ln x?

Yes. Write ln x as 1 times ln x, take ln x as the first function and 1 as the second. The same trick works for tan⁻¹ x and other functions that are easier to differentiate than to integrate.

When does integration by parts go wrong?

When the new integral is harder than the old one, you chose the wrong first function, so swap the order. Repeating the method can also loop, and then an algebraic rearrangement is needed to solve for the integral.

Method and photo sources

Method checked against NCERT Class 12 Mathematics, Chapter 7, section 7.6. The problems here are our own, and each answer was checked by differentiating or by numerical integration.

Photo: equations written on a blackboard on Pexels, under the Pexels licence, cropped to 16:9 and compressed.

Explore related tuition services: maths tuition · home tuition · online tuition