Integration by Parts: Formula, LIATE, Definite Integrals, the Loop Case and 11 Worked Examples
Learn integration by parts: where ∫u dv = uv − ∫v du comes from, how to choose u with LIATE, definite integrals, repeated parts, the eˣ sin x loop and the tabular method, with 11 A level and university examples.
Integration by parts is the integration method that reverses the product rule. Its formula is ∫u dv = uv − ∫v du: you choose one factor to differentiate (u) and one to integrate (dv), then swap a hard integral for an easier one. It handles products such as x eˣ, x sin x and ln x.
The method sits in the second half of A level Mathematics and returns in almost every first-year university calculus module, where it becomes a working tool rather than an exam topic. This guide sets it out the way FLN Tutors (Freelancer Network) maths tutors teach it: where the formula comes from, how to pick u, how to handle limits, and what to do when the integral seems to go round in a circle.
Every worked example below was checked with a script that differentiates each answer numerically and compares it with the original integrand, and that integrates each definite example numerically. Decimal values are given to 4 significant figures alongside the exact answer.
What is integration by parts?
Integration by parts is a rule for integrating a product of two functions when neither substitution nor a standard result works directly. You split the integrand into two pieces. One piece, called u, will be differentiated. The other piece, called dv, will be integrated to give v. The formula then turns the original integral into uv minus a new integral, ∫v du, which should be simpler than the one you started with.
| Key fact | Detail |
|---|---|
| Formula (u and v form) | ∫u dv = uv − ∫v du |
| Formula (dv/dx form, used in UK exam booklets) | ∫u (dv/dx) dx = uv − ∫v (du/dx) dx |
| Comes from | The product rule for differentiation, integrated and rearranged |
| Choosing u | Pick the factor that gets simpler when differentiated; LIATE or LATE is a guide |
| Definite version | ∫ from a to b of u dv = [uv] from a to b − ∫ from a to b of v du |
| Repeated parts | Needed for x² eˣ, x² sin x and similar; each round lowers the power by one |
| Loop case | eˣ sin x and eˣ cos x return to the start; solve for the integral as an unknown |
| Tabular (DI) method | A fast layout for repeated parts when u differentiates to zero |
| Where it is taught | Year 2 of A level Mathematics, and first-year university calculus |
Where does the integration by parts formula come from?
The formula is the product rule run backwards, which is why it can feel familiar. For two functions u and v of x, the product rule says that the derivative of uv is u (dv/dx) + v (du/dx).
Integrate both sides with respect to x. The left-hand side becomes uv, because integrating a derivative gives back the original function. The right-hand side becomes ∫u (dv/dx) dx + ∫v (du/dx) dx.
Now rearrange to make the first integral the subject: ∫u (dv/dx) dx = uv − ∫v (du/dx) dx. That is the full formula. Writing du for (du/dx) dx and dv for (dv/dx) dx gives the short version, ∫u dv = uv − ∫v du.
The derivation also explains why the method only helps when the new integral, ∫v du, is easier than the old one. The product rule gives you a trade, not a promise, so the skill lies in choosing which factor to differentiate.
How do you choose u and dv?
The aim is simple to state: choose u so that differentiating it makes it simpler, and choose dv so that you can actually integrate it. If x appears as a polynomial factor, it is usually u, because each derivative lowers the power. If ln x appears, it is almost always u, because ln x is awkward to integrate but differentiates to the friendly 1/x.
LIATE is a memory aid that ranks function types in the order you should pick them for u:
| Letter | Function type | Examples |
|---|---|---|
| L | Logarithmic | ln x, ln(2x + 1) |
| I | Inverse trigonometric | tan⁻¹ x, sin⁻¹ x |
| A | Algebraic (powers and polynomials) | x, x², 3x − 1 |
| T | Trigonometric | sin x, cos 2x, sec² x |
| E | Exponential | eˣ, e²ˣ |
Whichever type comes first in the list becomes u, and the rest of the integrand becomes dv. For x cos x, algebraic comes before trigonometric, so u = x. For x² ln x, logarithmic comes before algebraic, so u = ln x. Many UK teachers drop the I and use LATE, because inverse trigonometric functions rarely appear in A level parts questions. Some textbooks use ILATE, which swaps the first two letters; the two orders only disagree when a log and an inverse trig function are multiplied together, which almost never happens in exams.
When does LIATE not work?
LIATE is a rule of thumb, not a theorem, and it fails in three common situations.
The first is when the dv part cannot be integrated. In ∫x³ exp(x²) dx, LIATE says u = x³ and dv = exp(x²) dx, but exp(x²) has no elementary integral, so you are stuck. The fix is to split the powers differently: take u = x² and dv = x exp(x²) dx, because x exp(x²) integrates neatly to ½exp(x²). Example 11 below works this through.
The second is the loop case. In ∫eˣ sin x dx, either choice works, as long as you keep the same type of choice on the second round. LIATE picks the trig function for u, but picking eˣ for u gives the same answer.
The third is when parts is the wrong method altogether. ∫x exp(x²) dx looks like a product, but it is a substitution question, because x is a constant multiple of the derivative of x². Before reaching for parts, always check whether one factor is the derivative of something inside the other.
A reliable test is to look one step ahead: write down du and v for your choice and ask whether ∫v du looks easier. If it looks harder, swap.
How do you use integration by parts step by step?
Use the same layout every time. A fixed routine stops sign errors, and examiners can follow your working for method marks even if the final line slips.
- Write the integral and decide on u and dv.
- Write u and dv on one line, then du and v underneath, so all four pieces are visible.
- Substitute into uv − ∫v du, keeping the minus sign outside a bracket.
- Work out the new integral, using parts again if needed.
- Simplify, factorise if it helps, and add + C for an indefinite integral.
- Check by differentiating your answer, which should give back the integrand.
How does integration by parts work with definite integrals?
For a definite integral, the formula becomes ∫ from a to b of u dv = [uv] from a to b − ∫ from a to b of v du. The uv term is evaluated at both limits, exactly like the rest of the answer.
There are two equally valid ways to set out the work. You can carry the limits through every line, evaluating [uv] as soon as it appears. Or you can find the indefinite integral first, without + C, and then substitute the limits once at the end. The second way is less error-prone for long questions, because you only substitute once.
For example, ∫ from 0 to 1 of x eˣ dx has antiderivative eˣ(x − 1). At x = 1 this is 0, and at x = 0 it is −1, so the integral equals 0 − (−1) = 1. Students often lose the mark here by forgetting that the lower limit gives a non-zero value. Examples 5 and 6 below show the method with π and with e as limits.
When do you need to use integration by parts more than once?
Each round of parts lowers the power of the algebraic factor by one. So x eˣ needs one round, x² eˣ needs two and x³ eˣ needs three. The same is true for x² sin x and x² cos x, where the trig part keeps switching between sine and cosine and changes sign along the way.
When you repeat, keep the same type of choice. In ∫x² eˣ dx, the first round uses u = x². The new integral is ∫2x eˣ dx, and the second round must again use the algebraic factor, u = 2x. If you switched to u = eˣ on the second round, you would undo the first step and end up back where you started. Example 7 shows the full layout.
What is the loop case, such as eˣ sin x?
Some integrals never shrink. In ∫eˣ sin x dx, differentiating sin x gives cos x, differentiating again gives −sin x, and the exponential stays as eˣ throughout. After two rounds of parts the original integral reappears on the right-hand side.
That is not a failure. Call the integral I. After two rounds, the working reads I = eˣ sin x − eˣ cos x − I. Treat I as an unknown, add I to both sides to get 2I = eˣ(sin x − cos x), and divide by 2. The answer is I = ½eˣ(sin x − cos x) + C. Example 8 lays out each line.
Keep the same type of choice on both rounds, and name the integral I at the start so that you can spot it when it comes back. If you switch your choice on the second round, the working collapses to I = I, which is true but useless.
What is the tabular (DI) method?
The tabular method, also called the DI method, is a shortcut for repeated integration by parts. It works best when one factor is a polynomial that differentiates to zero, such as x³, and the other can be integrated again and again, such as e²ˣ or sin x.
Draw three columns. In the D column, write u and keep differentiating until you reach 0. In the I column, write dv and keep integrating, one step per row. In the sign column, alternate +, −, +, − starting with +. Then multiply each D entry by the I entry one row below it, attach the sign, and add the products.
The method is nothing more than the formula applied several times in a compact layout, so it gives the same answer as repeated parts. It is fast and easy to check, but some exam mark schemes expect to see the formula written at least once, so on a written paper show one line of the full method before switching to a table. Example 9 uses the tabular layout for x³ e²ˣ.
When should you use integration by parts instead of substitution?
Both methods deal with integrands that do not match a standard result, but they answer different questions. Substitution reverses the chain rule. It is the right choice when one part of the integrand is, apart from a constant, the derivative of another part. ∫2x cos(x²) dx is a substitution integral, because 2x is the derivative of x².
Parts reverses the product rule. It is the right choice when the integrand is a product of two unrelated types of function, such as a polynomial times an exponential, a polynomial times a trig function, or anything times ln x. ∫x cos x dx is a parts integral, because x is not the derivative of anything inside the cosine.
A quick test helps. Look for an inner function. If its derivative appears as a factor, try substitution first. If there is no inner function, or its derivative is missing, try parts.
What are some integration by parts worked examples?
The 11 examples below move from one-round questions to the loop case and the tabular layout. Each answer was confirmed by numeric differentiation at several points, and each definite answer by numeric integration.
Example 1: x eˣ
Find ∫x eˣ dx. Algebraic comes before exponential, so u = x and dv = eˣ dx. Then du = dx and v = eˣ.
Substituting gives x eˣ − ∫eˣ dx = x eˣ − eˣ + C. Factorised, the answer is eˣ(x − 1) + C. Check: differentiating gives eˣ(x − 1) + eˣ = x eˣ, which matches the integrand.
Example 2: x cos x
Find ∫x cos x dx. Take u = x and dv = cos x dx, so du = dx and v = sin x.
The formula gives x sin x − ∫sin x dx. Since the integral of sin x is −cos x, subtracting it gives a plus sign: the answer is x sin x + cos x + C. This sign change is where most errors happen in trig questions.
Example 3: ln x on its own
Find ∫ln x dx. There seems to be only one factor, so write the integrand as ln x × 1. Take u = ln x and dv = 1 dx, so du = (1/x) dx and v = x.
The formula gives x ln x − ∫x × (1/x) dx = x ln x − ∫1 dx. The answer is x ln x − x + C. This trick, treating 1 as dv, is the standard way to integrate ln x and also works for tan⁻¹ x in Example 10.
Example 4: x² ln x
Find ∫x² ln x dx. Logarithmic comes before algebraic, so u = ln x and dv = x² dx. Then du = (1/x) dx and v = x³/3.
The formula gives (x³/3) ln x − ∫(x³/3)(1/x) dx = (x³/3) ln x − ∫(x²/3) dx. The final answer is (x³/3) ln x − x³/9 + C. Choosing u = x² here would leave you needing to integrate ln x inside another product, which is much harder.
Example 5: a definite integral with π
Evaluate ∫ from 0 to π of x sin x dx. Take u = x and dv = sin x dx, so du = dx and v = −cos x.
The antiderivative is −x cos x + ∫cos x dx = −x cos x + sin x. At x = π: −π cos π + sin π = −π(−1) + 0 = π. At x = 0: 0 + 0 = 0. So the integral equals π, which is 3.142 to 4 significant figures. This is also the area between y = x sin x and the x-axis from 0 to π, because the curve stays above the axis on that interval.
Example 6: a definite integral with ln x
Evaluate ∫ from 1 to e of x ln x dx. Take u = ln x and dv = x dx, so du = (1/x) dx and v = x²/2.
The antiderivative is (x²/2) ln x − ∫(x/2) dx = (x²/2) ln x − x²/4. At x = e, ln e = 1, so the value is e²/2 − e²/4 = e²/4. At x = 1, ln 1 = 0, so the value is −1/4. Subtracting gives e²/4 + 1/4, so the integral equals (e² + 1)/4, which is 2.097 to 4 significant figures. The lower limit does not give zero here, which catches many students out.
Example 7: repeated parts with x² eˣ
Find ∫x² eˣ dx. First round: u = x², dv = eˣ dx, so du = 2x dx and v = eˣ. This gives x² eˣ − ∫2x eˣ dx.
Second round, on ∫2x eˣ dx: u = 2x, dv = eˣ dx, so du = 2 dx and v = eˣ. This gives 2x eˣ − ∫2eˣ dx = 2x eˣ − 2eˣ.
Put it back inside a bracket: x² eˣ − (2x eˣ − 2eˣ) + C = x² eˣ − 2x eˣ + 2eˣ + C. Factorised, the answer is eˣ(x² − 2x + 2) + C.
Example 8: the loop case with eˣ sin x
Find I = ∫eˣ sin x dx. First round: u = sin x, dv = eˣ dx, so du = cos x dx and v = eˣ. This gives I = eˣ sin x − ∫eˣ cos x dx.
Second round, keeping trig as u: u = cos x, dv = eˣ dx, so du = −sin x dx and v = eˣ. This gives ∫eˣ cos x dx = eˣ cos x + ∫eˣ sin x dx = eˣ cos x + I.
Substitute back: I = eˣ sin x − eˣ cos x − I. So 2I = eˣ(sin x − cos x), and the answer is I = ½eˣ(sin x − cos x) + C.
Example 9: the tabular method with x³ e²ˣ
Find ∫x³ e²ˣ dx. Put x³ in the D column, because it reaches zero after four derivatives, and e²ˣ in the I column.
| Sign | D (differentiate) | I (integrate) |
|---|---|---|
| + | x³ | e²ˣ |
| − | 3x² | ½e²ˣ |
| + | 6x | ¼e²ˣ |
| − | 6 | ⅛e²ˣ |
| + | 0 | (1/16)e²ˣ |
Multiply each D entry by the I entry one row down, with the sign of the D row: +x³ × ½e²ˣ, then −3x² × ¼e²ˣ, then +6x × ⅛e²ˣ, then −6 × (1/16)e²ˣ. Simplifying the coefficients gives ½x³ e²ˣ − ¾x² e²ˣ + ¾x e²ˣ − ⅜e²ˣ + C, which factorises to e²ˣ(½x³ − ¾x² + ¾x − ⅜) + C.
Example 10: tan⁻¹ x
Find ∫tan⁻¹ x dx. As with ln x, write the integrand as tan⁻¹ x × 1. Take u = tan⁻¹ x and dv = 1 dx, so du = 1/(1 + x²) dx and v = x.
The formula gives x tan⁻¹ x − ∫x/(1 + x²) dx. The new integral is a substitution-style integral, because the top is half the derivative of the bottom, so it equals ½ ln(1 + x²). The answer is x tan⁻¹ x − ½ ln(1 + x²) + C. No modulus sign is needed, because 1 + x² is always positive.
Example 11: when LIATE would mislead you
Find ∫x³ exp(x²) dx. LIATE suggests u = x³, but then dv = exp(x²) dx cannot be integrated. Split the power instead: u = x² and dv = x exp(x²) dx. Then du = 2x dx and v = ½exp(x²).
The formula gives ½x² exp(x²) − ∫½exp(x²) × 2x dx = ½x² exp(x²) − ∫x exp(x²) dx. The last integral equals ½exp(x²). The answer is ½x² exp(x²) − ½exp(x²) + C, or ½exp(x²)(x² − 1) + C.
What mistakes do students make with integration by parts?
Most lost marks come from a small set of slips. Watch for these:
- Choosing u the wrong way round. In ∫x eˣ dx, taking u = eˣ gives ½x² eˣ − ∫½x² eˣ dx, which is harder than the start.
- Losing the minus sign. Always write uv − (new integral) with a bracket, especially when the new integral itself contains a minus.
- Getting v wrong for trig functions. The integral of sin x is −cos x, and the integral of cos x is sin x. Mixing these up flips the sign of half the answer.
- Forgetting the coefficient when integrating dv. The integral of e²ˣ is ½e²ˣ, not e²ˣ, and the integral of cos 3x is ⅓ sin 3x.
- Switching choice halfway through a loop or repeated question, which undoes the first round.
- Evaluating [uv] at the upper limit only, or assuming the lower limit gives zero.
- Leaving out + C on indefinite integrals, or giving a decimal when the question asks for an exact answer.
- Using parts when a substitution is quicker, which wastes time even when the answer is right.
How is integration by parts tested at A level and university?
In England, integration by parts is part of the A level Mathematics content that every board teaches, usually in the second year alongside substitution. AQA's A level Mathematics specification, for example, asks students to carry out simple cases of integration by parts, notes that the method is the inverse of the product rule, allows it to be applied more than once and leaves reduction formulae out.
Typical exam questions include a one-round integral worth 4 or 5 marks, a definite integral with an exact answer in terms of e, π or ln 2, a two-round question, and an area or volume question where parts is only one step in a longer chain. Questions often say "use integration by parts" or "show that", which means the method must be shown, not just the final answer. A calculator that does definite integrals can confirm a decimal, but it will not earn method marks.
At university, the method returns in first-year calculus and in engineering, physics and statistics modules, where it is used to derive results such as Fourier coefficients and reduction formulae. In the US, it is part of AP Calculus BC and single-variable calculus courses.
Can a tutor help with integration by parts?
Parts errors are small and easy to repeat without noticing, so practice with feedback helps. A tutor can watch you choose u and spot the moment a sign goes wrong.
If integration in general feels shaky, start with the wider integration subject page and our calculus help page, which cover the standard results that parts relies on. A level students can see how the topic fits the whole course on our A level Mathematics course page, and US students taking the BC exam can use the AP Calculus BC page. For mechanics students meeting calculus in motion problems, our guide to SUVAT equations shows where integration links to constant acceleration. For one-to-one sessions, live tutoring lets you work through past paper questions with a maths tutor.
Frequently asked questions
What is the integration by parts formula?
The formula is ∫u dv = uv − ∫v du. In the dv/dx form used in UK formula booklets, it reads ∫u (dv/dx) dx = uv − ∫v (du/dx) dx. You choose u to differentiate and dv to integrate, then replace the original integral with uv minus a new integral that should be easier to work out.
How is the LIATE rule spelled out?
LIATE stands for logarithmic, inverse trigonometric, algebraic, trigonometric and exponential. It ranks types of function in the order you should choose them as u. Whichever type appears first in the integrand becomes u, and the rest becomes dv. UK teachers often shorten it to LATE, because inverse trig functions rarely appear in A level parts questions.
Is LIATE always right?
No. LIATE is a rule of thumb that works for most textbook questions but fails when the suggested dv cannot be integrated, as in x³ exp(x²), or when substitution is the better method. The real test is whether the new integral, ∫v du, is simpler than the original. If it looks harder after your choice, swap u and dv.
How do you integrate ln x by parts?
Write ln x as ln x × 1, then take u = ln x and dv = 1 dx. That gives du = (1/x) dx and v = x. The formula becomes x ln x − ∫1 dx, so the answer is x ln x − x + C. Differentiating x ln x − x gives back ln x.
Do you need + C when using integration by parts?
Add + C once, at the end of an indefinite integral. You do not need a constant when you find v from dv, because any constant there cancels out of the final answer. For a definite integral no constant is needed at all, since the limits are substituted and any constant would subtract away.
How do you use integration by parts with limits?
Use ∫ from a to b of u dv = [uv] from a to b − ∫ from a to b of v du. Evaluate the uv term at both limits, just like the remaining integral. Many students find it safer to get the full antiderivative first and substitute the limits once at the end, checking whether the lower limit gives a non-zero value.
Why does integration by parts sometimes go round in a circle?
With products such as eˣ sin x, neither factor ever disappears when differentiated, so after two rounds the original integral reappears. Call the integral I, carry out both rounds with the same type of choice, and you will get an equation such as I = (terms) − I. Solve it like any linear equation to find I.
How does the DI table speed up repeated integration by parts?
The DI method is the tabular layout for repeated integration by parts. List derivatives of u in a D column until you reach zero, list repeated integrals of dv in an I column and alternate the signs +, −, +, −. Multiply each D entry by the I entry diagonally below it, attach the sign and add the products.
How many times can you apply integration by parts?
As many times as needed. Each round lowers the power of a polynomial factor by one, so x³ times an exponential or trig function needs three rounds. AQA allows repeated use at A level but excludes reduction formulae. If more than three rounds are needed, the tabular method is usually faster and less likely to produce sign errors.
Is integration by parts in AS or full A level maths?
In most English A level Mathematics courses, integration by parts is taught in the second year rather than the AS year, alongside integration by substitution and partial fractions. AS content covers basic integration of powers of x and definite integrals for area. Check your own board's specification, because the order of teaching varies between schools and colleges.
How can you check an integration by parts answer?
Differentiate it. If your answer is right, differentiating gives back the original integrand, usually after using the product rule. For a definite integral, compare your exact answer with a calculator's numerical value. Both checks take less than a minute and catch nearly all sign errors and wrong choices of v before they cost marks.
Should you use integration by parts or substitution?
Substitution reverses the chain rule and suits integrands where one factor is the derivative of an inner function, such as 2x cos(x²). Integration by parts reverses the product rule and suits products of unrelated function types, such as x eˣ or x² ln x. Some longer questions need both methods, one after the other.
Which order should you practise integration by parts questions in?
Begin with one-round integrals such as x eˣ and x cos x, then ln x and x² ln x, then definite integrals, then two rounds, then the loop case. Write u, du, v and dv on separate lines every time. After each question, differentiate your answer to check it before looking at the solution.
Want a subject expert to help with this?
Book a tutor →Money-Back Guarantee
Full refund if we miss the agreed deadline, can't find a suitable expert, or major errors can't be fixed by revision.
How the money-back guarantee works →100% Confidential
Your identity, order details and institution are never shared with any third party.
How we keep your order confidential →Deadline-Backed Delivery
Every order has an agreed deadline. If we don't deliver by it, you can claim a full refund.
Read the refund policy →Get started today
Ready to get expert help?
Tell us what you need and get matched with a tutor who teaches your subject. Delivered on time, every time.
