PYQ Vault

CBSE Class 12 Maths · Integrals

Integration by Parts

The integral of a product of two functions equals the first function times the integral of the second, minus the integral of the derivative of the first times the integral of the second.

Why this matters

67 questions, thirty of them from board papers: four in 2022, six in 2023, seven in 2024, seven in 2025 and six in 2026. The board asks polynomials times logs and inverse functions (x squared log(x² + 1) in 2023, x squared log(x² − 1) and x squared times the inverse sine of x to the power 3/2 in 2024, the inverse tan of (1 − x)/(1 + x) in 2026), integrals that come back to themselves (e to the x sin 2x in 2022, sec cubed in 2024) and the form e to the x times f(x) + f′(x) (2023, 2024, 2025), and (x + sin x) over (1 + cos x), which splits into a part done by parts and a part that cancels (2025). Twelve of the board items ask for a definite integral worked out by parts, four of them in 2026. The textbook adds Examples 17 to 22, Exercise 7.6 and Miscellaneous questions.

Concept 1 of 4: The rule and the choice of first function

Integration by parts trades one product for another. It helps only when the new product is easier, so choose as the first function the one that becomes simpler when differentiated: xx or a polynomial, which loses a power each time. But if the other function is a log or an inverse trigonometric function, take that one first, because you cannot integrate it directly.

Definition

  • ∫f(x)g(x) dx=f(x)∫g(x) dx−∫[f′(x)∫g(x) dx]dx\int f(x)g(x)\,dx = f(x)\int g(x)\,dx - \int \left[f'(x)\int g(x)\,dx\right]dx.
  • First function: usually the power of xx or the polynomial.
  • Exception: if the other function is a logarithm or an inverse trigonometric function, that one is the first function.
  • Write no constant when you integrate the second function inside the rule; one +C+ C goes at the very end.
  • For x2exx^2 e^x or x2sin⁡xx^2\sin x, apply the rule twice.
  • If the remaining integral is an improper fraction, as in ∫x4x2+1 dx\int \dfrac{x^4}{x^2 + 1}\,dx, divide first.

Integration by parts

∫f(x) g(x) dx=f(x)∫g(x) dx−∫[ddxf(x)⋅∫g(x) dx]dx\int f(x)\,g(x)\,dx = f(x)\int g(x)\,dx - \int \left[\dfrac{d}{dx}f(x) \cdot \int g(x)\,dx\right]dx
  • ffthe first function, differentiated
  • ggthe second function, integrated

Worked example

Find ∫xcos⁡2x dx\int x\cos 2x\,dx.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/3/1 · 29 (b)Moderate

Example 1 · Integrals · Integration by Parts

Find : ∫x2log⁡(x2+1) dx\int x^2 \log (x^2 + 1) \, dx

Choosing the log as the second function

In ∫x3log⁡x dx\int x^3\log x\,dx, taking x3x^3 first forces you to integrate log⁡x\log x, which is harder than the question. The log is always the first function.

The minus sign in the rule

The second term is subtracted. With ∫sin⁡x dx=−cos⁡x\int \sin x\,dx = -\cos x inside it, two minus signs meet; write the bracket in full before you simplify.

Concept 2 of 4: Logs and inverse trigonometric functions

log⁡x\log x and tan⁡−1x\tan^{-1} x have no integral in the standard list, but their derivatives are simple fractions. So write them as a product with 1: take the log or inverse function first and 1 as the second. Differentiating removes the hard function, and what is left is an algebraic integral.

Definition

  • ∫log⁡x dx=xlog⁡x−x+C\int \log x\,dx = x\log x - x + C.
  • ∫tan⁡−1x dx=xtan⁡−1x−12log⁡(1+x2)+C\int \tan^{-1} x\,dx = x\tan^{-1} x - \dfrac{1}{2}\log(1 + x^2) + C.
  • ∫sin⁡−1x dx=xsin⁡−1x+1−x2+C\int \sin^{-1} x\,dx = x\sin^{-1} x + \sqrt{1 - x^2} + C.
  • With a polynomial, as in xtan⁡−1xx\tan^{-1} x, the inverse function is still the first function.
  • Simplify an inverse function first where you can: putting x=tan⁡θx = \tan\theta gives tan⁡−11+x1−x=π4+tan⁡−1x\tan^{-1}\dfrac{1 + x}{1 - x} = \dfrac{\pi}{4} + \tan^{-1} x for x<1x < 1.
  • An inverse function of a power, such as sin⁡−1(x3/2)\sin^{-1}(x^{3/2}), is substituted first and then done by parts.

Writing the function as a product with 1

∫log⁡x dx=∫log⁡x⋅1 dx=xlog⁡x−∫1x⋅x dx\int \log x\,dx = \int \log x \cdot 1\,dx = x\log x - \int \dfrac{1}{x} \cdot x\,dx

Worked example

Find ∫sin⁡−1x dx\int \sin^{-1} x\,dx.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2026 · 65/3/1 · 26 (b)Moderate

Example 2 · Integrals · Integration by Parts

Find : ∫tan⁡−1(1−x1+x)dx\int \tan^{-1} \left(\dfrac{1 - x}{1 + x}\right) dx

Not simplifying the inverse function first

An inverse tangent of a fraction in xx, taken by parts straight away, gives a long derivative. Put x=tan⁡θx = \tan\theta first: it usually becomes a constant plus or minus tan⁡−1x\tan^{-1} x, and only ∫tan⁡−1x dx\int \tan^{-1} x\,dx is left.

A wrong sign in the integral of sin⁻¹ x

∫sin⁡−1x dx=xsin⁡−1x+1−x2+C\int \sin^{-1} x\,dx = x\sin^{-1} x + \sqrt{1 - x^2} + C, with a plus sign; for cos⁡−1x\cos^{-1} x it is minus. Differentiate the answer to check the sign.

Concept 3 of 4: When the integral comes back

For excos⁡xe^x\cos x, applying the rule twice brings back the very integral you started with. Call it II, collect the two II's on one side, and divide. The same happens with sec⁡3x\sec^3 x and with sin⁡(log⁡x)\sin(\log x).

Definition

  • Let II be the integral. Apply the rule, then apply it again to the new integral, keeping the same kind of function first both times.
  • When II reappears, move it to the left side: for example 2I=…2I = \ldots or 5I=…5I = \ldots.
  • Divide by the number in front of II, then add CC.
  • ∫sec⁡3x dx=12(sec⁡xtan⁡x+log⁡∣sec⁡x+tan⁡x∣)+C\int \sec^3 x\,dx = \dfrac{1}{2}\left(\sec x\tan x + \log|\sec x + \tan x|\right) + C.

Collecting I

I=∫excos⁡x dx⇒2I=ex(sin⁡x+cos⁡x)I = \int e^{x}\cos x\,dx \Rightarrow 2I = e^{x}(\sin x + \cos x)

Worked example

Find ∫excos⁡x dx\int e^x\cos x\,dx.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2022 · 65/5/1 · 10 (a)Moderate

Example 3 · Integrals · Integration by Parts

Find : ∫ex⋅sin⁡2x dx\int e^x \cdot \sin 2x\, dx

Switching the first function halfway

If exe^x is the first function in the first step and the trigonometric function is first in the second, the two steps undo each other and you get I=II = I. Keep the same choice both times.

Forgetting to divide

From 2I=ex(sin⁡x+cos⁡x)2I = e^x(\sin x + \cos x) the answer is I=ex2(sin⁡x+cos⁡x)+CI = \dfrac{e^x}{2}(\sin x + \cos x) + C. Writing ex(sin⁡x+cos⁡x)e^x(\sin x + \cos x) as the answer gives twice the integral.

Concept 4 of 4: The form e to the x times f(x) + f′(x)

If the bracket after exe^x is a function plus its own derivative, the answer is simply exe^x times that function. The whole skill is to rewrite the bracket until you can see the pair: split a fraction, or turn 1+cos⁡2x1 + \cos 2x into 2cos⁡2x2\cos^2 x.

Definition

  • ∫ex[f(x)+f′(x)] dx=exf(x)+C\int e^x[f(x) + f'(x)]\,dx = e^x f(x) + C.
  • Reason: ddx[exf(x)]=exf(x)+exf′(x)\dfrac{d}{dx}[e^x f(x)] = e^x f(x) + e^x f'(x).
  • Split fractions: x−1x2=1x−1x2\dfrac{x - 1}{x^2} = \dfrac{1}{x} - \dfrac{1}{x^2}, and −1x2-\dfrac{1}{x^2} is the derivative of 1x\dfrac{1}{x}.
  • With half angles: 1+sin⁡x1+cos⁡x=12sec⁡2x2+tan⁡x2\dfrac{1 + \sin x}{1 + \cos x} = \dfrac{1}{2}\sec^2\dfrac{x}{2} + \tan\dfrac{x}{2}, so f(x)=tan⁡x2f(x) = \tan\dfrac{x}{2}.
  • Name f(x)f(x) and f′(x)f'(x) in your answer; that line earns the method mark.

The e to the x form

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

Worked example

Find ∫ex(log⁡x+1x)dx\int e^x\left(\log x + \dfrac{1}{x}\right)dx.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/3/1 · 29 (a)Hard

Example 4 · Integrals · Integration by Parts

Find : ∫2+sin⁡2x1+cos⁡2x ex dx\int \dfrac{2 + \sin 2x}{1 + \cos 2x}\, e^x\, dx

Picking the wrong f

In ex(cot⁡x−cosec⁡2x)e^x(\cot x - \operatorname{cosec}^2 x), f(x)=cot⁡xf(x) = \cot x, because its derivative is −cosec⁡2x-\operatorname{cosec}^2 x. Taking f(x)=−cosec⁡2xf(x) = -\operatorname{cosec}^2 x does not fit the pattern.

A sign inside the bracket

e−xe^{-x} does not fit the rule as it stands: ddx[e−xf(x)]=e−x[f′(x)−f(x)]\dfrac{d}{dx}[e^{-x}f(x)] = e^{-x}[f'(x) - f(x)]. Check the pattern by differentiating your answer.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

  • The rule and the choice of first function

    Integration by parts

    ∫f(x) g(x) dx=f(x)∫g(x) dx−∫[ddxf(x)⋅∫g(x) dx]dx\int f(x)\,g(x)\,dx = f(x)\int g(x)\,dx - \int \left[\dfrac{d}{dx}f(x) \cdot \int g(x)\,dx\right]dx
  • Logs and inverse trigonometric functions

    Writing the function as a product with 1

    ∫log⁡x dx=∫log⁡x⋅1 dx=xlog⁡x−∫1x⋅x dx\int \log x\,dx = \int \log x \cdot 1\,dx = x\log x - \int \dfrac{1}{x} \cdot x\,dx
  • When the integral comes back

    Collecting I

    I=∫excos⁡x dx⇒2I=ex(sin⁡x+cos⁡x)I = \int e^{x}\cos x\,dx \Rightarrow 2I = e^{x}(\sin x + \cos x)
  • The form e to the x times f(x) + f′(x)

    The e to the x form

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

Watch out for (8)

Test yourself on Integrals

20 past CBSE Class 12 questions from this chapter, timed at 30 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.

Take the Integrals chapter test