Ma · Mathematics

How to Use the Leibniz Formula in a Differential Equation

Published By the 9to5Science editorial team

At a glance

  1. 1. Identify the product

    Find the factor or factors whose derivatives appear in the differential equation.

  2. 2. Expand the derivative

    Apply the Leibniz formula, using binomial coefficients and derivatives of each factor.

  3. 3. Simplify the equation

    Use zero derivatives or collect terms to put the equation in a familiar form.

  4. 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 (x2y)′′′(x^2y)''', 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 uu and vv have enough derivatives, then

dndxn(uv)=∑k=0n(nk)u(k)v(n−k).\frac{d^n}{dx^n}(uv)=\sum_{k=0}^{n}\binom{n}{k}u^{(k)}v^{(n-k)}.

Here u(k)u^{(k)} means the kkth derivative, with u(0)=uu^{(0)}=u. The coefficient is the binomial coefficient

(nk)=n!k!(n−k)!.\binom{n}{k}=\frac{n!}{k!(n-k)!}.

For example, the first three cases are

(uv)′=u′v+uv′,(uv)′′=u′′v+2u′v′+uv′′,(uv)′′′=u′′′v+3u′′v′+3u′v′′+uv′′′.\begin{aligned} (uv)'&=u'v+uv',\\ (uv)''&=u''v+2u'v'+uv'',\\ (uv)'''&=u'''v+3u''v'+3u'v''+uv'''. \end{aligned}

The coefficients 1,2,11,2,1 and 1,3,3,11,3,3,1 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

d3dx3(x2y)=0,x>0.\frac{d^3}{dx^3}(x^2y)=0, \qquad x>0.

Set u=x2u=x^2 and v=yv=y. Since u′=2xu'=2x, u′′=2u''=2, and u′′′=0u'''=0, the third-derivative formula gives

(x2y)′′′=u′′′y+3u′′y′+3u′y′′+uy′′′=0⋅y+3(2)y′+3(2x)y′′+x2y′′′=6y′+6xy′′+x2y′′′.\begin{aligned} (x^2y)'''&=u'''y+3u''y'+3u'y''+uy'''\\ &=0\cdot y+3(2)y'+3(2x)y''+x^2y'''\\ &=6y'+6xy''+x^2y'''. \end{aligned}

Thus the product-form equation is equivalent, for x>0x>0, to

x2y′′′+6xy′′+6y′=0.x^2y'''+6xy''+6y'=0.

The product form also makes solving straightforward. Let z=x2yz=x^2y. Then z′′′=0z'''=0, so integrating three times gives

z=Ax2+Bx+C,z=Ax^2+Bx+C,

where AA, BB, and CC are constants. Since z=x2yz=x^2y and x>0x>0,

y=A+Bx+Cx2.y=A+\frac{B}{x}+\frac{C}{x^2}.

You can verify the result by noting that x2y=Ax2+Bx+Cx^2y=Ax^2+Bx+C, whose third derivative is zero. The restriction x>0x>0 matters because dividing by x2x^2 is not valid at x=0x=0; 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,

x2y′′+2xy′=0x^2y''+2xy'=0

is exactly (x2y′)′=0(x^2y')'=0, because

(x2y′)′=2xy′+x2y′′.(x^2y')'=2xy'+x^2y''.

Recognizing this structure lets you integrate once instead of treating the equation as a general second-order equation:

x2y′=C1,y′=C1x2.x^2y'=C_1, \qquad y' = \frac{C_1}{x^2}.

On an interval not containing zero, integrating again gives y=C2−C1/xy=C_2-C_1/x. 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 33, not 11.
  • Differentiating only one factor. Each term in the formula assigns some derivatives to each factor; it is not just u(n)v+uv(n)u^{(n)}v+uv^{(n)}.
  • 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 xx or x2x^2 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 (uv)′=0(uv)'=0, 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, ddx∫axf(t) dt=f(x)\frac{d}{dx}\int_a^x f(t)\,dt=f(x) when ff is continuous. That rule appears in ODEs involving integral terms, but it is not the repeated product rule used above.

References

  1. 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.