Are there ways of finding the $n$-th derivative of a function without computing the $(n-1)$-th derivative?

Say we have a function $f(x)$ that is infinitely differentiable at some point.

Is it possible to find $f^{(n)}(x)$ without having to find first $f^{(n-1)}(x)$? If so, does it take less effort than computing preceding derivatives (i.e. $f'(x), f''(x), \cdots, f^{(n-1)}(x)$)?

I often find it very tedious to find multiple derivatives so I was wondering if someone knows the answer to this question.


It really depends on the function. Some functions admit compact general expressions for arbitrary order derivatives:

$$\begin{align*} \frac{\mathrm d^k}{\mathrm dx^k}x^n&=k!\binom{n}{k}x^{n-k}\\ \frac{\mathrm d^k}{\mathrm dx^k}\sin\,x&=\sin\left(x+\frac{k\pi}{2}\right)\\ \frac{\mathrm d^k}{\mathrm dx^k}\cos\,x&=\cos\left(x+\frac{k\pi}{2}\right)\\ \end{align*}$$

and as already mentioned, if your function satisfies a nice differential equation, you can use that differential equation to derive a general expression for your derivatives.

(As a bonus, the formula for the derivative of the power function can be generalized to complex $k$, barring exceptional values of $n$ and $k$; this is the realm of the fractional calculus. The formulae for sine and cosine are no longer as simple in the general complex case, though.)

In general, however, there isn't always a nice expression. This page for instance displays a number of representations for the derivative of the tangent function. None of them look particularly nice. Sometimes, functions won't even allow for an explicit expression for derivatives, as in the case of the Lambert function. (Note that the last formula in that page requires an auxiliary recursive definition for the polynomials that turn up in the differentiation.)

Relatedly: formulae like the Leibniz rule and the Faà di Bruno formula are helpful when determining general expressions for derivatives of more complicated functions. There are also a number of formulae listed here.


Yes, for the broad-class of functions admitting series expansions such that the coefficients satisfy a constant-coefficient difference equation (recurrence). In this case the coefficients (hence derivatives) can be computed quickly in polynomial time by converting to system form and repeatedly squaring the shift-matrix. This can be comprehended by examining the special case for Fibonacci numbers - see this prior question. Once you understand this 2-dimensional case it should be clear how it generalizes to higher-order constant coefficient recurrences.

Look up D-finite series and holonomic functions to learn more.


It is possible to write a single limit for the second derivative: $$f''(x) = \lim_{h \to 0} \frac{f(x+h) - 2f(x) + f(x-h)}{h^2}$$ and probably much more complicated ones for higher derivatives, but I'm not sure that's what you're looking for.

Source: Wikipedia.


Yes, there are many explicit formula for this. One useful one is the Cauchy integral formula which allows a simple contour integral to give this info.

But basically any formula that gives you coefficients in the series expansion works. Simpson multisection, for instance, gives you the series terms of index $m \pmod n$. You can compose these operators to get a formula for the mph coefficient only, which can be expressed in terms of the function at roots of unity times the variable, using the standard expansion. Or you can pull off the coefficient directly with a limit:

$$\frac{D^m f(x)}{(1)_m} = \lim_{x \to 0} \frac{\frac{1}{n}\left( \sum_{j=0}^{n-1} w_n^{-jm} f\left( w_n^j x\right)\right)}{x^m}$$

Where $w_n$ is an nth root of unity and $(1)_m$ is the pocchhammer.


I have been working on the problem of finding formulas for the nth derivative and the nth anti derivative of elementary and special functions for many years. I have got many results which have been already published. I am referring you to my website, where you can find an answer to your question. Here is the link to my website here.

For example, In this paper, a complete solution the problem of finding the nth derivative and the nth anti derivative of the power exponential class has been given. Just read section 6 in the paper which answers your question for this class of functions.