How to Use the Leibniz Formula in a Differential Equation
At a glance
- 1. Identify the product
Find the factor or factors whose derivatives appear in the differential equation.
- 2. Expand the derivative
Apply the Leibniz formula, using binomial coefficients and derivatives of each factor.
- 3. Simplify the equation
Use zero derivatives or collect terms to put the equation in a familiar form.
- 4. Solve and check
Solve on the stated interval, then substitute the result into the original equation.
The Leibniz formula is the repeated product rule. It is useful in a differential equation when a derivative acts on a product, such as , or when you need to differentiate a product involving an unknown function. Expanding the derivative can reveal a standard ODE or make the equation easier to integrate.
The phrase can also mean differentiating an integral with variable limits (the Leibniz integral rule). The usual interpretation in a question about derivatives and ODEs is the repeated product rule; that is the focus here.
The Leibniz formula for repeated derivatives
If and have enough derivatives, then
Here means the th derivative, with . The coefficient is the binomial coefficient
For example, the first three cases are
The coefficients and come from the corresponding rows of Pascal’s triangle. This formula is especially convenient when one factor is a polynomial: derivatives beyond the polynomial’s degree vanish.
Worked example: expand and solve an ODE
Consider the equation
Set and . Since , , and , the third-derivative formula gives
Thus the product-form equation is equivalent, for , to
The product form also makes solving straightforward. Let . Then , so integrating three times gives
where , , and are constants. Since and ,
You can verify the result by noting that , whose third derivative is zero. The restriction matters because dividing by is not valid at ; solutions on an interval containing zero require separate analysis.
Applying the formula when the product is not already grouped
Sometimes the equation contains terms that look like an expansion of a product derivative. For instance,
is exactly , because
Recognizing this structure lets you integrate once instead of treating the equation as a general second-order equation:
On an interval not containing zero, integrating again gives . This is an example of using the product rule in reverse to simplify an ODE.
Common mistakes
- Dropping the binomial coefficients. For a third derivative, the middle coefficients are both , not .
- Differentiating only one factor. Each term in the formula assigns some derivatives to each factor; it is not just .
- Using the polynomial shortcut for a non-polynomial factor. Derivatives of a polynomial eventually vanish, but derivatives of a general function usually do not.
- Dividing by a factor that can be zero. Dividing by or may exclude points from the interval. State the interval and check whether the original equation has solutions through the excluded point.
- Expanding when keeping the product is easier. If the equation is , integrate the whole derivative directly; expansion is not required unless it helps identify the structure.
If “Leibniz formula” refers instead to differentiating an integral with a variable endpoint, the relevant rule is different: for example, when is continuous. That rule appears in ODEs involving integral terms, but it is not the repeated product rule used above.
References
- George B. Thomas, Maurice D. Weir, and Joel Hass, Thomas’ Calculus
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.