Finding the nth derivative of a simple function is routine. Finding the nth derivative of a product, such as x² times e^(2x), by repeated differentiation quickly becomes unmanageable. Leibnitz’s theorem gives a formula that does the work in one step. It appears in the differential calculus module of VTU Engineering Mathematics 1 (BMATS101 under the 2022 scheme, 18MAT11 under 2018), and it is the first tool many students need in that module. This guide explains the theorem from first principles, works through examples in full, and points out the mistakes that cost marks.
What Leibnitz’s Theorem Says
Let u and v be functions of x, each differentiable as many times as needed. Then the nth derivative of their product is:
(uv)ⁿ = C(n,0) uⁿ v + C(n,1) uⁿ⁻¹ v₁ + C(n,2) uⁿ⁻² v₂ + … + C(n,n) u v
Here uᵏ means the kth derivative of u, v₁ means the first derivative of v, and C(n,r) = n! / (r!(n−r)!) is the binomial coefficient. Notice that this looks exactly like the binomial expansion (a+b)ⁿ, with the powers replaced by derivatives. Students who remember the binomial theorem will find the pattern familiar. The one difference is that the exponents describe how many times each function is differentiated, not powers of a number.
Why the Theorem Is Useful
Suppose you need the 5th derivative of y = x² e^(2x). Differentiating term by term five times produces long expressions with many chances for error. Leibnitz’s theorem lets you write the answer almost directly. In most VTU questions, one of the two functions is a polynomial, which has only a few non-zero derivatives. That makes the sum short, and it is the situation the theorem is designed for.
Worked Example 1: nth Derivative of x² e^(2x)
Let u = x² and v = e^(2x).
First list the derivatives. For u = x²:
- u₁ = 2x
- u₂ = 2
- u₃ = 0 (and all higher derivatives are zero)
For v = e^(2x), every derivative is a constant multiple of e^(2x):
- vₖ = 2ᵏ e^(2x) for any k
Because u has only three non-zero derivatives, only the first three terms of the Leibnitz sum survive:
(uv)ⁿ = C(n,0) u v_n + C(n,1) u₁ v_(n−1) + C(n,2) u₂ v_(n−2)
Substitute the values:
(uv)ⁿ = x² · 2ⁿ e^(2x) + n · 2x · 2ⁿ⁻¹ e^(2x) + [n(n−1)/2] · 2 · 2ⁿ⁻² e^(2x)
Simplify each term. The second term becomes 2ⁿ · n x e^(2x). The third becomes n(n−1) · 2ⁿ⁻² · e^(2x).
Simplifying each term gives the general form, with the middle term carrying the factor n and the last term carrying n(n−1)·2ⁿ⁻²·e^(2x).
Leave the answer in this form and check it with a specific value. Take n = 5. Then:
- C(5,0) = 1, giving x² · 2⁵ e^(2x) = 32x² e^(2x)
- C(5,1) = 5, giving 5 · 2x · 2⁴ e^(2x) = 160x e^(2x)
- C(5,2) = 10, giving 10 · 2 · 2³ e^(2x) = 160 e^(2x)
So the 5th derivative of x² e^(2x) is:
y⁽⁵⁾ = e^(2x)(32x² + 160x + 160)
You can confirm this by differentiating five times directly. It takes much longer, but it is the best way to check your understanding the first time you meet the theorem.
Worked Example 2: nth Derivative of x³ e^x
Take u = x³ and v = eˣ. The derivatives of u are u₁ = 3x², u₂ = 6x, u₃ = 6, and u₄ = 0. Every derivative of eˣ is eˣ.
Only the first four terms are needed:
(uv)ⁿ = eˣ [ x³ + n · 3x² + C(n,2) · 6x + C(n,3) · 6 ]
For n = 4 this becomes:
y⁽⁴⁾ = eˣ [ x³ + 4 · 3x² + 6 · 6x + 4 · 6 ]
Check the binomial coefficients: C(4,1) = 4, C(4,2) = 6, C(4,3) = 4. Hence:
y⁽⁴⁾ = eˣ (x³ + 12x² + 36x + 24)
This example shows the pattern clearly. The powers of x decrease by one in each successive term, while the derivatives of the exponential stay the same.
Worked Example 3: Using the Theorem for a Trigonometric Product
Find the nth derivative of y = x sin x.
Let u = x and v = sin x. The derivatives of u are u₁ = 1 and u₂ = 0. The derivatives of sin x cycle through sin x, cos x, −sin x, and −cos x, so vₖ = sin(x + kπ/2).
Using the theorem with only two terms:
yⁿ = x sin(x + nπ/2) + n sin(x + (n−1)π/2)
This is the standard result for the nth derivative of x sin x, and it can be checked for n = 1: the formula gives x cos x + sin x, which is the first derivative of x sin x. Correct.
How to Set Up a Leibnitz Question in an Exam
Most marks are lost before any calculation begins. Follow this order every time:
- Identify u and v. Choose u to be the factor that becomes zero quickly under differentiation, usually a polynomial. Choose v to be the factor whose derivatives are easy to write, such as an exponential, sine, or cosine.
- List the derivatives of u until they become zero. Write them out. Do not skip this step, because a missed term changes the answer.
- Write the derivatives of v in general form. For eᵃˣ, the kth derivative is aᵏ eᵃˣ. For sin(ax), it is aᵏ sin(ax + kπ/2).
- Write the Leibnitz sum with only the non-zero terms. Compute each binomial coefficient carefully.
- Simplify. Factor out the common exponential or trigonometric term if it helps.
- Check with n = 1 or n = 2. If the formula reproduces the first or second derivative you can compute easily, it is almost certainly right.
Common Mistakes That Cost Marks
Mistake 1: Forgetting the binomial coefficients. Writing the terms with coefficient 1 instead of C(n,r) is the most common error. The coefficients are what make the formula work, so write them out every time, even when they seem obvious.
Mistake 2: Using the wrong derivative order. The term with C(n,r) uses u^(r) and v^(n−r). Students often reverse these, which gives a different answer that still looks plausible. Check each term by asking, “how many times is u differentiated here?”
Mistake 3: Stopping too early for polynomials. A polynomial of degree 3 has a fourth derivative equal to zero, so terms beyond the third are removed. Students sometimes continue computing terms that are zero, which wastes time but does not change the answer. The opposite mistake, stopping before the last non-zero term, does change the answer.
Mistake 4: Forgetting the powers of constants. For e^(2x), the kth derivative includes 2ᵏ, not just e^(2x). Students who forget the 2ᵏ get the wrong power of two in every term.
Practice Questions
Try these before checking the answers below.
- Find the nth derivative of x e^(3x).
- Find the 4th derivative of x² cos x.
- Find y⁽³⁾ for y = (x² + 1) e^(−x).
Answers to check your work against:
- yⁿ = e^(3x)(3ⁿ x + n · 3ⁿ⁻¹)
- y⁽⁴⁾ = x² cos(x + 2π) + 4 · 2x cos(x + 3π/2) + 6 · 2 cos(x + π) = x² cos x + 8x sin x − 12 cos x. Recheck each term before relying on this answer, since sign errors are common.
- y⁽³⁾ = −e^(−x)(x² + 1 − 6x + 6). Compute the derivatives of u = x² + 1 (which are 2x, 2, 0) and of v = e^(−x) (which are (−1)ᵏ e^(−x)) to verify.
A Trigonometric Example: nth Derivative of x² sin x
Trigonometric products follow the same pattern, but the derivatives of sine shift by π/2 each time, so the sign bookkeeping needs care. Take y = x² sin x and find the fourth derivative.
Let u = x² and v = sin x. The derivatives of u are u₁ = 2x, u₂ = 2, and u₃ = 0. The kth derivative of sin x is sin(x + kπ/2). Only three terms survive:
y⁽⁴⁾ = C(4,0) x² sin(x + 2π) + C(4,1) · 2x · sin(x + 3π/2) + C(4,2) · 2 · sin(x + π)
Use the identities sin(x + 2π) = sin x, sin(x + 3π/2) = −cos x, and sin(x + π) = −sin x. The three terms become x² sin x, −8x cos x, and −12 sin x. Therefore:
y⁽⁴⁾ = x² sin x − 8x cos x − 12 sin x
To check, differentiate directly. The first derivative is 2x sin x + x² cos x. The second is 2 sin x + 4x cos x − x² sin x. The third is 6 cos x − 6x sin x − x² cos x. The fourth is −12 sin x − 8x cos x + x² sin x, which matches the Leibnitz result.
Recognising When the Theorem Saves Time
The theorem is worth using when one factor is a polynomial of low degree and the other factor has derivatives that are easy to write. Under those conditions the sum has only a few terms. If neither factor terminates, or if the product is of three or more functions, direct differentiation or a series method is usually better. A useful rule is to count the terms before starting: if the sum would have more than about four non-zero terms, consider another method.
Students also make the mistake of using the theorem for a function that is not a product. The theorem applies to uv only. For a quotient or a composite function, use the chain or quotient rule instead. Identify the structure of the expression before choosing a method, because the wrong method wastes time even when the arithmetic is correct.
Connecting This Topic to the Full Module
Leibnitz’s theorem is one part of the differential calculus module. The same derivative skills are used in Taylor series, curvature, and partial differentiation, so it helps to see the module as a whole. Our VTU Engineering Maths 1 Notes — Complete Module-Wise Guide (BMATS101) sets out every module in order, with notes on what is tested and where marks are usually lost.
Frequently Asked Questions
Q: Can I use Leibnitz’s theorem when both functions are complicated?
It still works, but the sum has many terms and the advantage disappears. In that case, direct differentiation or a series method is often faster. The theorem is most useful when one factor is a polynomial.
Q: Does the order of u and v matter?
The final answer is the same either way. Choose the factor that terminates to keep the sum short.
Q: Where does this fit in the syllabus?
It belongs to the differential calculus module, alongside Taylor and Maclaurin series. The complete module-wise outline is in our VTU Engineering Maths 1 notes guide.
For a full set of worked problems in this topic, along with formula sheets and predicted questions, see the Engineering Math Survival Kit. The problems are set for the current VTU scheme. Use the contact page if you want to discuss batch options for this module.