LightMySky
به انگلیسی

Integration by Parts

Reverse the product rule to evaluate integrals. Choose useful parts, repeat the calculation when needed, and solve for a returning integral.

No account needed. Progress saves in this browser.

What a learner can do afterwards

  • Choose useful parts and apply the formula to indefinite integrals or definite function data
  • Apply integration by parts repeatedly, including solving for an integral that reappears
  • Integrate logarithms and logarithmic powers by taking dv = dx, and explain the resulting cancellations

1 · Read

Substitution reverses a chain-rule pattern. Integration by parts uses the product rule instead. For u and v with continuous derivatives, (uv)' = u'v+uv'. Integrating and rearranging gives ∫u dv = uv-∫v du, where du = u' dx and dv = v' dx. Choose an antiderivative v you can find, then examine the remaining integral. Keep one antiderivative during the calculation and add C at the end.

(uv)' = u'v+uv'uv = ∫v du+∫u dv∫u dv = uv-∫v du
Try it together

For ∫(x+3)e^x dx, take u = x+3 and dv = e^x dx. Then du = dx and v = e^x, giving (x+3)e^x-∫e^x dx = (x+2)e^x+C. Differentiating the polynomial lowers its degree. Reversing this split raises the degree in the remaining integral. For a ≠ 0, ∫e^(ax) dx = e^(ax)/a+C. LIATE orders logarithms, inverse trig, algebra, trig and exponentials as possible choices for u. It is a guide; check the resulting integral.

u = x+3; du = dxdv = e^x dx; v = e^xremaining: ∫e^x dx

For x > 0, the derivative of ln x is 1/x. In ∫x^n ln x dx, with n a nonnegative integer, choose u = ln x and dv = x^n dx. Then v = x^(n+1)/(n+1), so v du = x^n dx/(n+1). The remaining integral uses the power rule and contains no logarithm. For n ≥ 1, choosing the polynomial as u instead leaves a logarithm in the remaining integral.

du = dx/xv = x^(n+1)/(n+1)v du = x^n dx/(n+1)

Use radians for trigonometric arguments. The antiderivatives are ∫cos x dx = sin x+C and ∫sin x dx = -cos x+C. For a polynomial p, parts gives ∫p(x)cos x dx = p(x)sin x-∫p'(x)sin x dx. With sine instead, v = -cos x, so subtracting ∫v du adds ∫p'(x)cos x dx. Check the signs by differentiating the complete answer using the product rule.

dv = sin x dxv = -cos x-∫v du = +∫cos x du
Try it together

For x > 0, integrate ln x by taking u = ln x and dv = dx. Then du = dx/x and v = x. Thus ∫ln x dx = x ln x-∫1 dx = x ln x-x+C. For definite bounds a and b, use F(b)-F(a), where F(x) = x ln x-x. For example, from 1 to e² the endpoint values are e² and -1, giving e²+1. The arbitrary constant cancels.

u = ln x; dv = dxF(x) = x ln x-xvalue = F(b)-F(a)

Let R_n stand for ∫x^n e^(ax) dx, with n a nonnegative integer and a ≠ 0. For n ≥ 1, take u = x^n and dv = e^(ax) dx. Then R_n = x^n e^(ax)/a-(n/a)R_(n-1), up to a constant. Repeat on the remaining integral. Each application lowers the polynomial degree by one. After n applications, integrate the remaining constant times e^(ax) directly. Keep each factor 1/a and each outside subtraction.

u = x^nv = e^(ax)/anext power: x^(n-1)

Let I = ∫e^(ax)cos x dx and J = ∫e^(ax)sin x dx, with a ≠ 0. Taking the trig factor as u gives I = e^(ax)cos x/a+J/a and J = e^(ax)sin x/a-I/a, up to constants. Substitute the expression for J into I. Collecting terms gives (a²+1)I = e^(ax)(a cos x+sin x). Divide by a²+1 and add C. A returning integral can be solved with algebra.

I = A+J/aJ = B-I/aI = A+B/a-I/a²

Here A = e^(ax)cos x/a and B = e^(ax)sin x/a.

You can also start with the sine product. Let S = ∫e^(ax)sin x dx and T = ∫e^(ax)cos x dx, with a ≠ 0. Since (sin x)' = cos x, parts gives S = e^(ax)sin x/a-T/a. Since (cos x)' = -sin x, the next application gives T = e^(ax)cos x/a+S/a. Substitute the whole expression for T, including its plus sign, into the subtracted term.

u = cos xdu = -sin x dx-∫v du = +S/a

For u and v with continuous derivatives on [a,b], definite parts is ∫ from a to b of u dv = u(b)v(b)-u(a)v(a)-∫ from a to b of v du. Supplied endpoint values and a remaining integral can be enough, even without a formula for the function. For u = mx+c and dv = f'(x) dx, use du = m dx and v = f(x). Evaluate the upper product minus the lower product, then subtract m∫f(x) dx over the same bounds.

upper uv minus lower uvdu = m dx; v = f(x)subtract m∫f(x) dx

For x > 0, powers of ln x can need repeated parts. With a positive integer m, choose u = (ln x)^m and dv = dx. Then du = m(ln x)^(m-1) dx/x and v = x. Cancelling x gives ∫(ln x)^m dx = x(ln x)^m-m∫(ln x)^(m-1) dx, up to a constant. Repeat until the remaining integral is ∫ln x dx or ∫1 dx. Distribute every outside minus sign.

u = (ln x)^mv = xv du = m(ln x)^(m-1) dx

Any antiderivative of dv may be used as v. For ∫ln x dx on x > 0, choosing v = x+k still gives dv = dx, where k is constant. Now v du = (1+k/x) dx. Parts gives (x+k)ln x-x-k ln x+C. The added logarithmic terms cancel, leaving x ln x-x+C. Choosing a constant in v does not change the final family of antiderivatives.

v = x+kv du = (1+k/x) dx+k ln x-k ln x = 0
x³3x²6x6
For x³ times e^x, three parts applications leave a constant times e^x. Integrate that last exponential directly.

Choose an integrable dv and compute uv-∫v du. Repeat or solve for a returning integral when needed. Evaluate definite bounds in order and check antiderivatives by differentiating.

Integration-by-parts teaching, practice questions and flashcards written for this learning dataset.

Readings, extra questions and flashcards written for this learning dataset. The linked video lessons are listed by Khan Academy; their licensing terms remain unverified.

More to read

Check the split before continuing

Integration by parts starts with a product identity. If u and v have continuous derivatives, integrating (uv)' = u'v+uv' gives ∫u dv = uv-∫v du. Both the product uv and the remaining integral matter.

Consider ∫(x-4)e^(2x) dx. Choose u = x-4 and dv = e^(2x) dx. Then du = dx and v = e^(2x)/2. The remaining integral is ∫e^(2x)/2 dx, which equals e^(2x)/4 up to a constant. The result is e^(2x)(x/2-9/4)+C.

Differentiate to check: the derivative is e^(2x)(x-9/2)+e^(2x)/2 = e^(2x)(x-4). A factor 1/2 was needed each time the exponential was integrated.

LIATE can suggest a split, but the calculation decides whether it helps. A different valid split may leave more work.

Keep the outside coefficients

A repeated parts calculation substitutes a new expression into an earlier one. Keep brackets around that expression until you have distributed the coefficient and its sign.

Let I = ∫e^(4x)cos x dx and J = ∫e^(4x)sin x dx, using radians. Parts gives I = e^(4x)cos x/4+J/4 and J = e^(4x)sin x/4-I/4, up to constants. Substituting the second relation gives I = e^(4x)cos x/4+e^(4x)sin x/16-I/16.

Multiply by 16 and add I to both sides: 17I = e^(4x)(4cos x+sin x). Divide by 17 and include C. The answer is e^(4x)(4cos x+sin x)/17+C.

Returning to I did not finish the problem by itself. The useful step was obtaining an equation whose I terms could be collected and divided by a nonzero coefficient.

Why a constant in v cancels

For ∫ln x dx on x > 0, choose u = ln x and dv = dx. Usually we take v = x. But x+2 is also an antiderivative of 1, so it is a valid choice for v.

With v = x+2 and du = dx/x, the remaining product is (1+2/x) dx. Parts then gives (x+2)ln x-x-2ln x+C. Expanding the product cancels the two terms involving 2ln x. The answer is still x ln x-x+C.

The same principle works with any constant added to v. Choosing that constant as zero keeps the working shorter.

For a definite integral, evaluate an antiderivative at the upper bound and subtract its value at the lower bound. The final arbitrary constant also cancels in that subtraction.

Explore more

2 · Watch

به انگلیسی

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Then practise

14 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Spotted a problem on this page? Tell us
Integration by Parts · Mathematics, ages 19 to 20 · LightMySky