🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Integration by Parts

CBSE Class 12 MathsIntegralsđŸŸĸ Free Lesson

Integration by Parts

What You'll Learn

  • 1Derive the parts formula from the product rule for differentiation
  • 2Choose u and dv quickly with the LIATE ladder and know when the ladder fails
  • 3Iterate the formula twice to tame products of polynomials with sine or cosine
  • 4Solve cyclic integrals such as e to the x times sine x by treating the original integral as an unknown
  • 5Apply the definite-integral version and verify antiderivatives numerically

Differentiating a product is mechanical: apply the product rule and you are done. Integrating the same product is not, because integration has no direct product rule — it has a mirror image of one. Integration by parts trades a difficult integral for an easier one plus a boundary term, and it is the workhorse behind , , and every table of integrals you have ever seen. The technique is one line long; the skill lies entirely in choosing which factor to differentiate.

The formula and where it comes from

The product rule states . Integrating both sides over an interval and rearranging gives exactly the parts formula, with the boundary term evaluated at the limits when the integral is definite. Read the formula as a trade: you surrender the factor you cannot integrate directly (, which you integrate into ) and pay a penalty of one extra integral, . The trade is worth making when the penalty integral is strictly easier — usually because differentiating kills a power of or converts a logarithm into an algebraic expression.

Choice of What happens to Typical integral
becomes , algebraic
degree drops by one
becomes , no gain alonepaired with
unchanged, so rarely chosen as acts as partner

Choosing u with the LIATE ladder

Choose in order of preference:

  1. Logarithmic functions
  2. Inverse trigonometric functions
  3. Algebraic functions ()
  4. Trigonometric functions
  5. Exponential functions

LIATE is a priority queue, not a law. It works because logarithms and inverse trigonometric functions have derivatives that are algebraic, algebraic functions have derivatives of lower degree, and exponentials are indifferent to differentiation — so putting L or I first guarantees the penalty integral gets simpler. Two documented failures are worth memorising. For no ordering of LIATE reduces the complexity; the integral cannot be expressed in elementary functions. For LIATE correctly selects , but swapping the roles and integrating by parts twice in a row also works if you track the boundary terms carefully. When the first application of the formula looks like it is going in circles, stop and re-check the assignment before grinding on.

Worked example: a polynomial against an exponential

Evaluate .

The derivative check is instant: differentiating gives , the original integrand. That check — differentiate the answer and see the integrand reappear — should be reflex; it catches sign errors that no amount of staring at the working will.

Two rounds: damping a trigonometric factor

Evaluate .

Each application reduced the power of by one, so a degree- polynomial against sine or cosine needs exactly applications — a pattern that turns the method into a reliable algorithm. Watch the signs closely: contributes a minus that flips the sign of the whole middle integral, and the final comes from integrating once more. Differentiating the answer regroups neatly: the from the first term cancels the from the second, the cancels the , and only survives — the cancellation happens only if both sign flips were tracked correctly.

The cyclic case: the integral comes back

Sometimes integration by parts leads back to the original integral. In such cases, solve algebraically.

Evaluate .

Two features make the cycle close after exactly two rounds: the pair merely swaps between function and derivative with each differentiation, so neither ever simplifies away. The factor of in the denominator is the price of going around the loop twice, and the same structure produces with in the denominator — the template behind the Laplace transforms you will meet in differential equations.

Definite integrals with parts

The formula extends directly to definite integrals: evaluate the boundary term at the limits and apply limits to the remaining integral as well.

The classic mistake here is evaluating the boundary term but forgetting to attach limits to the second integral, which silently drops area. A second classic is choosing and looping forever: with the polynomial dies after one round, which is the whole point.

Verifying antiderivatives in Python

The first script numerically differentiates the closed-form answer to confirm it returns the integrand, then evaluates the definite integral by quadrature.

python
import math

def antideriv(x):
    return math.exp(x) * (x - 1)

def integrand(x):
    return x * math.exp(x)

h = 1e-6
for x in (0.5, 1.0, 2.0):
    num = (antideriv(x + h) - antideriv(x - h)) / (2 * h)
    print(f"x = {x}: d(antideriv) = {num:.6f}  integrand = {integrand(x):.6f}")

a, b, n = 0.0, 2.0, 20000
width = (b - a) / n
total = sum(integrand(a + (k + 0.5) * width) for k in range(n)) * width
print("quadrature      :", round(total, 6))
print("closed form     :", round(antideriv(b) - antideriv(a), 6))

Both routes agree to six decimal places, which is the numerical signature of a correct antiderivative.

The second script checks the cyclic result and the definite integral of from the previous section.

python
import math

def cyclic(x):
    return math.exp(x) * (math.sin(x) - math.cos(x)) / 2

h = 1e-6
for x in (0.3, 1.2, 2.5):
    num = (cyclic(x + h) - cyclic(x - h)) / (2 * h)
    print(f"x = {x}: derivative = {num:.6f}  e^x sin x = {math.exp(x) * math.sin(x):.6f}")

n = 20000
width = math.pi / n
total = sum((a := (k + 0.5) * width) * math.sin(a) for k in range(n)) * width
print("int x sin x on [0, pi] =", round(total, 6), " pi =", round(math.pi, 6))

The finite-difference derivatives reproduce , and the quadrature lands on , confirming both closed forms.

Where the method slips

Most lost marks come from four places. Choosing so that cannot be integrated in closed form (the trap) wastes time before the student notices. A sign slip on a negative , such as , propagates through every later line. Adding the constant of integration in the middle of a cyclic calculation creates terms that cancel only if you are extremely careful. And in definite integrals, evaluating the boundary term but leaving the second integral un-attacked misses half the answer. Each of these is prevented by one habit: differentiate the final answer before moving on.

Common Mistakes

Picking u and dv in the opposite order to LIATE without checking the result

Fix: For a logarithm or inverse trigonometric factor, differentiate it; for an exponential factor, integrate it, and confirm the new integral is simpler before continuing.

Losing the minus sign when v is negative cosine

Fix: Write v equals minus cosine on its own line and carry that sign through the outer subtraction carefully; the minus of the formula and the minus of v cancel once, not twice.

Forgetting to apply the limits to the remaining integral in a definite-parts problem

Fix: After evaluating the uv boundary term, rewrite the leftover integral with its limits before integrating; the x sine x example contributes zero there, but only after the limits are applied.

Key Takeaways

  • Integration by parts is the product rule integrated, and every application trades one integral for a boundary term plus a hopefully easier integral
  • The LIATE ladder chooses u by asking which factor simplifies when differentiated, and exponentials usually belong in dv
  • Polynomial times sine or cosine needs one application per power of x, while exponential times sine closes after two rounds and solves algebraically
  • Definite integrals need the boundary term evaluated at the limits and the remaining integral carried with its limits intact
  • Differentiating the finished antiderivative is the fastest available check and catches every sign error this technique can produce
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-15

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert CBSE Class 12 Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement