Home » Math Theory » Calculus » Integration By Parts

Integration By Parts

Quick answer

Integration by parts reverses the product rule: ∫u dv = uv − ∫v du. Choose u with the LIATE order (Log, Inverse trig, Algebraic, Trig, Exponential) so that ∫v du is simpler.

Example: ∫x eˣ dx = x eˣ − ∫eˣ dx = x eˣ − eˣ + C

Reviewed by the Helping with Math Team · Updated October 23, 2026

Related: It reverses the product rule from derivative rules.

Try it: choose u and dv

Pick an integral and choose u. The tool fills in du and v, shows the new integral, and warns you when a choice makes it harder.

Integration by parts with LIATE
LIATE order: logarithmic, inverse trig, algebraic, trigonometric, exponential

    Step through choosing u and dv, finding du and v, and applying the formula. The LIATE bar shows why u was chosen.
    At a glance: ∫u dv = uv − ∫v du; u: LIATE order; repeat if needed∫u dv = uv − ∫v duu: LIATE orderrepeat if needed
    At a glance: the key ideas for integration by parts. The green card is the main rule.

    Integration By Parts

    We will be demonstrating a technique of integration that is widely used, called Integration by Part.

    Introduction

    Since

    $\int e^{x}dx = e^{x} + C$

    and

    $\int e^{2x}dx = \frac{1}{2}e^{2x} + C$

    Clearly,

    $\int e^{x}\cdot e^{x}dx \neq \int e^{x}dx\cdot \int e^{x}dx$

    In other words, the integration of the product of two functions is not equal to the product of individual integration of functions. i.e.

    $\int f(x)g(x)dx \neq \int f(x)dx\cdot \int g(x)dx$

    Integration by parts is the technique to integrate the functions when typical Integration does not work. For this method, the integrand is of the form

    $\int f(x)g(x)dx$

    This technique is useful when one function can be differentiated repeatedly, and other function can be integrated repeatedly. For example, we can apply integration by parts to integrate functions that are products of additional functions, as in finding.

    $\int x^2 ln x dx$

    Here, the integrand is the product of the functions x2 and ln x . Also, ln x can be differentiated repeatedly, and x2 can be integrated repeatedly. Integration by parts can also apply to the following integrals

    $\int x^n\cdot e^{cx}dx$                          $\int x^r\cdot ln ln (cx) dx$

    $\int x^n ( sin\:sin\:cx\:or\:cos\:cos\:cx)dx$                  $\int e^{cx} ⋅(sin\:sin\:cx\: or\: cos\: cos\: cx)dx$

    where c and r are constants and n is a positive integer.

    Product Rule In Integral Form

    For all differentiable functions f and g.

    $\frac{d}{dx}[f(x)g(x)] = f'(x)g(x) + f(x)g'(x)$

    or $f(x)g'(x)=\frac{d}{dx}[f(x)g(x)]-f'(x)g(x)$

    By integrating both sides with respect to x, we have

    $\int f(x)g'(x)dx = \int [\frac{d}{dx}(f(x)g(x))\:-\:f'(x)g(x)]dx$

    =$\int \frac{d}{dx}(f(x)g(x))\:-\:\int f'(x)g(x)dx$

    =$f(x)g(x)\:-\:\int f'(x)g(x)dx$ (By Definition)

    i.e. $\int f(x)g'(x)dx\:=\:f(x)g(x)\:-\:\int f'(x)g(x)dx$

    Thus, we have the rule Integration by parts for the integration of functions that are the product of other functions.

    In words,

    $\int(Integral\: of \: the \: product \: of \: two \: functions)=(first \: function) x (integration \: of \: the \: second \: function)
    \int [(derivative \: of \: the \: first \: function) × (integration \: of\: the \: second\: function)]dx$

    Note: Integration by parts formula is only applicable when one function from the product of two functions can be integrated easily.

    Steps of This Technique

    There are four steps to apply the integration by parts technique.

    1. Assign functions (f(x),g'(x))
    2. Differentiate and Integrate correct functions
    3. Apply integration by parts formula
    4. Repeat the process if necessary

    Step 1. Assign functions

    The main problem with this formula is to assign functions correctly. There are two possibilities to choose the correct functions for integrating and differentiating.

    i) If one of the functions cannot be integrated, assign first function f(x).

    Example i: $\int$ ln x dx

    Here, ln x cannot be integrated so, f(x)=ln x and g'(x)=1

    Note: 1 can be considered a function.

    ii) If the integration of both functions is possible, assign first function f(x) to the function that eventually differentiates to zero.

    Example ii: $\int x\cdot e^xdx$

    Here, both functions can be integrated so we will assign first f(x)=x and g'(x)= ex because x differentiates to 1, which makes the new integral simpler.

    Step 2. Differentiate and Integrate correct functions

    In step 1, we assigned functions; in step 2, we will differentiate and integrate correct functions. The helpful way is writing functions in a column, the assigned function f(x) will be differentiated, and the other function g'(x) will be integrated.

    Example i: $\int$ ln x dx

    Let f(x)=ln x and g'(x)=1

    $\Rightarrow\:\:f'(x)=\frac{d}{dx}ln x$ $\int g'(x)dx=\int 1dx$

    $\Rightarrow$ f'(x)=1/x g(x)=x

    Example ii: $\int$ xexdx

    Let f(x)=x and g'(x)=ex

    $\Rightarrow\:\: f'(x)=\frac{d}{dx}x$ $\int g'(x)dx= \int e^xdx$

    $\Rightarrow$ f'(x)=1 g(x)=ex

    Step 3. Apply integration by parts formula

    Substitute assigned functions and differentiated and integrated functions in the formula and simply.

    Example i: $\int$ ln x dx

    Let f(x)=ln x and g'(x)=1

    $\Rightarrow\:\: f'(x)=\frac{d}{dx} ln x$ $\int g'(x)dx= \int 1dx$

    f'(x)=1/x g(x)=x

    $\int f(x)g'(x)dx = f(x)g(x) – \int f'(x)g(x)dx$

    $\int ln x 1dx = ln x× x- \int \frac{1}{x}×xdx$

    = x ln x − $\int$1dx

    = x ln x − x + c

    Example ii: $\int$xexdx

    Let f(x)= x and g'(x)=ex

    $\Rightarrow\:f'(x)=\frac{d}{dx}x \int g'(x)dx = \int e^{x}dx$

    $\Rightarrow\:f'(x)=1$ $g(x) = ex$

    $\int f(x)g'(x)dx = f(x)g(x) – \int f'(x)g(x)dx$

    $\int xe^{x}dx = xe^{x} – \int 1e^{x}dx$

    $=xe^x – \int e^xdx$

    $=xe^x – e^x + c$

    Step 4. Repeat the process if necessary

    In some integrals may be necessary to repeat the three previous steps several times before reaching a solution.

    Example: $\int$ x2e2xdx

    Let f(x)=x2 and g'(x)=e2x

    $\Rightarrow f'(x) = \frac{d}{dx}x^2$ $\int g'(x)dx = \int e^{2x}dx$

    $\Rightarrow f'(x)=2x$ $g(x)=\frac{e^{2x}}{2}$

    Apply integration by parts formula

    $\int f(x)g'(x)dx = f(x)g(x) – \int f'(x)g(x)dx$

    $\int x^{2}e^{2x}dx = x^{2} \times \frac{e^{2x}}{2} – \int 2x \times \frac{e^{2x}}{2}dx$

    =$\frac{1}{2}x^{2}e^{2x} – \int xe^{2x}dx$

    Repeat the process for $\int$ xe2xdx.

    Let f(x)= x and g'(x) = e2x

    $\Rightarrow f'(x) = \frac{d}{dx}x$ $g'(x)dx = \int e^{2x}dx$

    $\Rightarrow f'(x)=1$ $g(x) = \frac{e^{2x}}{2}$

    $\int xe^{2x}dx = x\times \frac{e^{2x}}{2} – \int 1 \times \frac{e^{2x}}{2}dx = \frac{1}{2} xe^{2x} – \frac{1}{4} e^{2x} + c_1$

    Thus, $\int x^{2}e^{2x}dx = \frac{1}{2} x^{2}e^{2x} – [\frac{1}{2}xe^{2x} – \frac{1}{4}e^{2x} + c_1]$

    =$\frac{1}{2}x^{2}e^{2x} – \frac{1}{2}xe^{2x} + \frac{1}{4}e^{2x} + c$ where c = -c1

    Rule For the Choice Of First Function

    A simple mnemonic to assign the functions for step 1 that we discussed in the previous section. The first function is selected according to the letters in the group LIATE.

    LLogarithms Function
    IInverse Trigonometric Function
    AAlgebraic Function
    TTrigonometric Function
    EExponential Function

    Illustrative Examples

    Example (1) Evaluate $\int xe^{5x}dx‍$

    Solution: Observe that

    A: x is an algebraic function,

    E: e5x is an exponential function.

    According to the LIATE table, we choose

    x as first function and e5x as second function.

    Let f(x)=x and g'(x)=e5x,

    then f'(x)=1 and g(x)=$\frac{e^{5x}}{5}$

    Apply integration by parts formula, we have

    $\int xe^{5x}dx = x \times \frac{e^{5x}}{5} – \int 1 \times \frac{e^{5x}}{5}dx$

    =$\frac{1}{5}xe^{5x} – \frac{1}{25}e^{5x}+c$

    Example (2) Evaluate ‍$\int$ x5 ln x dx

    Solution: : Observe that

    A: x5 is an algebraic function,

    L: ln x is a logarithmic function.

    According to the LIATE table, we choose

    ln x as first function and x5 as second function.

    Let f(x)=lnx and g'(x)= x5 ,

    then f'(x)=$\frac{1}{x}$ and g(x)=$\frac{x^6}{6}$

    Apply integration by parts formula, we have

    $\int$ x5 ln x dx =‍ $\int$ ln x x5 dx

    =(ln x )$\frac{x^6}{6} – \int \frac{1}{x} \times \frac{x^6}{6}dx$

    =(ln x )$\frac{x^6}{6} – \frac{1}{6} \int x^5dx$

    =$\frac{x^6}{6} ln x – \frac{1}{6}[\frac{x^6}{6} + c_1]$

    =$\frac{x^6}{6} ln x – \frac{x^6}{36} + c$ where c = $-\frac{c_1}{6}$

    Example (3) Evaluate ‍$\int$ xcosxdx

    Solution: Observe that

    A: x is an algebraic function,

    T: cosx is a trigonometric function.

    According to the LIATE table, we choose

    x as first function and cosx as second function.

    Let f(x)=x and g'(x) = cosx,

    then f'(x)=1 and g(x) = sinx

    Apply integration by parts formula, we have

    $\int$ x cos x dx = x sin x − $\int$ 1 × sin x dx

    = xsinx − ( − cosx )+ c

    = xsinx + cosx + c

    Choosing u and dv

    This section will introduce another notation for the formula of integration by parts that is easy to remember.

    Consider u and dv such that

    u = f(x) and v = g(x),

    du = f'(x)dx dv = g'(x)dx

    Substitute in (1)

    $\int$f(x)g'(x)dx = f(x)g(x) −$\int$ f'(x)g(x)dx

    $\int$ udv = uv −$\int$ vdu

    Now, we will discuss some cases to choose u and dv with example.

    Case 1. If function is product of inverse trigonometric function and algebraic function. Then the choice for u and dv will be

    u= inverse trigonometric function and dv= algebraic function.

    Example: ‍$\int$ sin-1xdx =‍ $\int$ sin-1x.1dx

    We choose u = sin−1x and dv = 1dx

    $\Rightarrow du = \frac{1}{\sqrt{1-x^2}}dx$ and v=x

    Integrating by parts

    $\int \sin^{-1}x\,dx = x \sin^{-1}x – \int x.\frac{1}{\sqrt{1-x^2}}dx$

    =$x\sin^{-1}x – \int (1-x^2)^{-\frac{1}{2}}(x)dx$

    =$x\sin^{-1}x + \frac{1}{2} \int (1-x^2)^{-\frac{1}{2}}(-2x)dx$

    =$x\sin^{-1}x + \frac{1}{2} \int (1-x^2)^{-\frac{1}{2}}\frac{d}{dx}(1-x^2)dx$

    =$x\sin^{-1}x + \frac{1}{2} \frac{(1-x^2)^{-\frac{1}{2}+1}}{-\frac{1}{2}+1} + c$

    =$x\sin^{-1}x + \frac{1}{2} \frac{(1-x^2)^{\frac{1}{2}}}{1/2} + c$

    =$x\sin^{-1}x + \sqrt{1-x^2} + c$

    Case 2. If function is product of trigonometric function and algebraic function. Then the choice for u and dv will be

    u= algebraic function and dv= trigonometric function.

    Example: ‍$\int$ x2sinxdx

    We choose u=x2 and dv = sinxdx

    $\Rightarrow$ du = 2xdx and v = -cosx

    Integrating by parts

    ‍$\int x^2sinxdx = x^2(-cosx)-\int-cosx.2xdx$

    =$-x^2cosx + 2\int xcosxdx$

    Again we choose u=x and dv = cosxdx

    $\Rightarrow$ du =1dx and v = sinx

    Integrating by parts

    ‍$\int x^2sinxdx = -x^2cosx + 2xsinx -\int sinx\times1dx$

    =$-x^2cosx + 2xsinx – 2(-cosx) + c$

    =$-x^2cosx + 2xsinx + 2cosx + c$

    Case 3. If function is product of logarithmic function and trigonometric function. Then the choice for u and dv will be

    u= logarithmic function and dv= trigonometric function

    Example: $\int$ ln (tan x) sec2x dx

    We choose u = ln (tan x) and dv = sec2x dx

    $\Rightarrow du = \frac{\sec^2 x}{\tan x}\, dx$ and v = tan x

    Integrating by parts

    $\int \ln (\tan x) \sec^2 x\,dx = \ln (\tan x)\cdot \tan x – \int \tan x \cdot \frac{\sec^2 x}{\tan x}\,dx$

    = tan x ln (tan x) − $\int$sec2x dx

    = tan x ln (tan x) − tan x + c

    Case 4. If function is product of algebraic function and logarithmic function. Then the choice for u and dv will be

    u= logarithmic function and dv= algebraic function

    Example: ‍$\int$x2 ln x dx

    We choose u = ln x and dv = x2dx

    $\Rightarrow$du = $\frac{1}{x}$dx and v = $\frac{x^3}{3}$

    Integrating by parts

    ‍$\int x^2 ln x dx =\int ln\: x x^2dx$

    =$(ln x )\frac{x^3}{3} -\int \frac{x^3}{3}\cdot \frac{1}{x}dx$

    =$\frac{x^3}{3}ln x -\frac{1}{3}\int x^2dx$

    =$\frac{x^3}{3}ln x -\frac{1}{3}[\frac{x^3}{3}+c_1]$

    =$\frac{x^3}{3}ln x -\frac{x^3}{9}+c$ where c = -$\frac{c_1}{3}$

    By following the LIATE table, we can choose u and dv easily, and by applying integration by parts formula, we can find the integration of functions that are products of other functions.

    Integration By Parts When the Integral of function Reappears

    There are some integrals that are unique in that they return on the right-hand side (along with other terms) when the Integration by Parts formula is used.

    Example: $\int$ ecx .{sin cx or cos cx}dx where c is constant.

    Example Evaluate ‍‍ $\int$ e-xsinxdx

    Solution: Let I =‍ $\int$e-xsinxdx

    Observe that

    A: ‍e-x is an algebraic function,

    T: sinx is a trigonometric function.

    According to the LIATE table, we choose

    sinx as first function and e-x as second function.

    Let f (x) = sin(x) and g'(x) = e-x,

    then f’ (x) = cos(x) and g(x) = -e-x

    Apply integration by parts formula, we have

    I = sinx $\times$ (-1)e-x −$\int$cosx $\times$(-1)e-xdx‍

    =-e-xsinx + $\int$e-xcosxdx

    Again, repeat the process

    I= -e-xsinx + cosx $\times$(-1)e-x-$\int$-sinx $\times$(-1)e-xdx‍

    I= -e-xsinx − e-x cosx -‍ $\int$ e-x sinxdx

    I= -e-xsinx − e-x cosx − I + c1 (Integrals repeated)

    I+I= -e-xsinx − e-x cosx + c1

    2I= -e-x(sinx +cosx) + c1

    I=-$\frac{1}{2}$ e-x(sinx +cosx) + c where c= $\frac{1}{2}$c1

    Example: Let I = $\int$exsin x cos x dx

    =$\frac{1}{2} \int e^x\cdot$ 2sin x cos x dx

    =$\frac{1}{2} \int e^x$ sin 2 xdx ∵sin 2 x = 2sin x cos x

    We choose u = sin 2 x and dv = exdx

    $\Rightarrow$ du = 2cos 2 xdx and v = ex

    Integrating by parts

    I=$\frac{1}{2}[sin 2x\cdot e^x – \int e^x \cdot 2cos 2 xdx]$

    =$\frac{1}{2}e^x sin 2x – \int e^x cos 2 xdx$

    Again, we choose u = cos 2 x and dv = exdx

    $\Rightarrow$ du = -2cos 2 xdx and v = ex

    Again, integrating by parts

    l=$\frac{1}{2}e^x sin 2x – (cos 2x\cdot e^x – \int e^x \cdot (-2)sin 2 xdx )$

    = $\frac{1}{2}e^x sin 2x – (e^x cos 2x + 2 \int e^x sin 2\:xdx)$ (Integral Repeated)

    = $\frac{1}{2}e^x sin 2x – e^x cos 2x – 4I + c$

    $\Rightarrow I + 4I = \frac{1}{2}e^x sin 2x – e^x cos 2x + c$

    $\Rightarrow 5I= \frac{1}{2}e^x sin 2x – e^x cos 2x + c$

    $\Rightarrow I=-\frac{1}{5} e^x cos 2x + \frac{1}{10} e^x sin 2x+\frac{1}{5}c$

    Definite Integral

    Integration by parts can be used with definite integrals.

    For all differentiable functions f and g

    $\int_{a}^{b}f(x)g'(x)dx = [f(x)g(x)]|{a}^{b} -\int{a}^{b}f'(x)g(x)dx$

    Example: Evaluate I = $\int_{0}^{\frac{\pi}{2}} x\:sin(x)dx$

    Solution:

    $\int_{0}^{\frac{\pi}{2}} x\:sin(x)dx = -x\:cos x |_{0}^{\frac{\pi}{2}} + \int_{0}^{\frac{\pi}{2}} \:cos(x)dx$

    =$0 + sin x |_{0}^{\frac{\pi}{2}}$
    =1-0=1

    Worked examples

    Example 1

    Algebraic × exponential. ∫x e³ˣ dx.

    Solution

    u = x, dv = e³ˣ dx, v = e³ˣ/3. = x e³ˣ/3 − ∫e³ˣ/3 dx = x e³ˣ/3 − e³ˣ/9 + C.

    Example 2

    Log alone. ∫ln x dx.

    Solution

    u = ln x, dv = dx, v = x. = x ln x − ∫x · (1/x) dx = x ln x − x + C.

    Example 3

    Twice. ∫x² cos x dx.

    Solution

    u = x²: x² sin x − ∫2x sin x dx. Again u = 2x: −2x cos x + 2 sin x. Total x² sin x + 2x cos x − 2 sin x + C.

    Common mistakes

    • Mistake: Choosing u = eˣ in ∫x eˣ dx. Fix: Then ∫v du has x²/2 in it, which is harder. Pick u = x.
    • Mistake: Forgetting the minus sign in uv − ∫v du. Fix: Write the formula out every time.
    • Mistake: Dropping the constant of integration. Fix: Add + C at the end of every indefinite integral.
    • Mistake: Stopping when the integral reappears. Fix: Call it I and solve for I, as in ∫e⁻ˣ sin x dx.

    Practice generator

    Every question is made at random. Get several right in a row to build your streak.

    Practice generatorStreak 0Best 0

    Type your answer and press Check.

    Type one number.

    Cheat sheet

    Integration By Parts cheat sheet
    IdeaWhat to remember
    Formula∫u dv = uv − ∫v du
    Definite∫ₐᵇ u dv = [uv]ₐᵇ − ∫ₐᵇ v du
    LIATELog, Inverse trig, Algebraic, Trig, Exponential
    ∫x eˣ dxx eˣ − eˣ + C
    ∫ln x dxx ln x − x + C
    Reappearingset I = integral, solve for I

    Quick quiz

    Check yourself: integration by parts
    5 quick questions. Tap an answer to see if you are right.

    1. Integration by parts comes from the:

    2. For ∫x sin x dx choose u =

    3. ∫e²ˣ dx =

    4. ∫ln x dx =

    5. ∫x cos x dx =

    Answered 0 of 5.

    Each answer shows a short explanation. Press Try again to reset the quiz.

    Integration By Parts FAQs

    What is the integration by parts formula?

    ∫u dv = uv − ∫v du. It comes from integrating both sides of the product rule d(uv) = u dv + v du.

    How do I choose u and dv?

    Use LIATE: pick u as the first type in the list Log, Inverse trig, Algebraic, Trig, Exponential. The rest of the integrand is dv.

    When should I use integration by parts?

    Use it for a product of two different kinds of functions, such as x eˣ, x sin x or x² ln x, and for single functions like ln x or arctan x.

    What if the original integral comes back?

    For integrals such as ∫e⁻ˣ sin x dx, apply parts twice, call the integral I and solve the equation for I.

    Can I use integration by parts for definite integrals?

    Yes: ∫ₐᵇ u dv = [uv]ₐᵇ − ∫ₐᵇ v du. Evaluate uv at both limits.

    More practice: Multiplication of Functions (Travel and Tours Themed) Worksheets, Division of Functions (Health and Fitness Themed) Worksheets and Subtraction of Functions (Tropical Themed) Worksheets.

    Browse All Worksheets

    Link/Reference Us

    We spend a lot of time researching and compiling the information on this site. If you find this useful in your research, please use the tool below to properly link to or reference Helping with Math as the source. We appreciate your support!

    • "Integration By Parts". Helping with Math. Accessed on November 12, 2026. https://helpingwithmath.com/integration-by-parts/.

    • "Integration By Parts". Helping with Math, https://helpingwithmath.com/integration-by-parts/. Accessed 12 November, 2026.

    • Integration By Parts. Helping with Math. Retrieved from https://helpingwithmath.com/integration-by-parts/.