# Derivative

__: Instantaneous rate of change (mathematics)__

**Short description**Part of a series of articles about |

Calculus |
---|

In mathematics, the **derivative** shows the sensitivity of change of a function's output with respect to the input. Derivatives are a fundamental tool of calculus. For example, the derivative of the position of a moving object with respect to time is the object's velocity: this measures how quickly the position of the object changes when time advances.

The derivative of a function of a single variable at a chosen input value, when it exists, is the slope of the tangent line to the graph of the function at that point. The tangent line is the best linear approximation of the function near that input value. For this reason, the derivative is often described as the "instantaneous rate of change", the ratio of the instantaneous change in the dependent variable to that of the independent variable.

Derivatives can be generalized to functions of several real variables. In this generalization, the derivative is reinterpreted as a linear transformation whose graph is (after an appropriate translation) the best linear approximation to the graph of the original function. The Jacobian matrix is the matrix that represents this linear transformation with respect to the basis given by the choice of independent and dependent variables. It can be calculated in terms of the partial derivatives with respect to the independent variables. For a real-valued function of several variables, the Jacobian matrix reduces to the gradient vector.

The process of finding a derivative is called **differentiation**.^{[1]} The reverse process is called *antidifferentiation*. The fundamental theorem of calculus relates antidifferentiation with integration. Differentiation and integration constitute the two fundamental operations in single-variable calculus.^{[Note 1]}

## Definition

A function of a real variable *f*(*x*) is *differentiable* at a point a of its domain, if its domain contains an open interval I containing a, and the limit

- [math]\displaystyle{ L=\lim_{h \to 0}\frac{f(a+h)-f(a)}h }[/math]

exists.^{[2]} This means that, for every positive real number [math]\displaystyle{ \varepsilon }[/math] (even very small), there exists a positive real number [math]\displaystyle{ \delta }[/math] such that, for every h such that [math]\displaystyle{ |h| \lt \delta }[/math] and [math]\displaystyle{ h\ne 0 }[/math] then [math]\displaystyle{ f(a+h) }[/math] is defined, and

- [math]\displaystyle{ \left|L-\frac{f(a+h)-f(a)}h\right|\lt \varepsilon, }[/math]

where the vertical bars denote the absolute value (see (ε, δ)-definition of limit).

If the function f is differentiable at a, that is if the limit L exists, then this limit is called the *derivative* of f at a, and denoted [math]\displaystyle{ f'(a) }[/math] (read as "*f* prime of *a*") or [math]\displaystyle{ \frac{df}{dx}(a) }[/math] (read as "the derivative of *f* with respect to *x* at a" or "*df* by (or over) *dx* at a"); see § Notation (details), below.

## Continuity and differentiability

If *f* is differentiable at *a*, then *f* must also be continuous at *a*. As an example, choose a point *a* and let *f* be the step function that returns the value 1 for all *x* less than *a*, and returns a different value 10 for all *x* greater than or equal to *a*. *f* cannot have a derivative at *a*. If *h* is negative, then [math]\displaystyle{ a+h }[/math] is on the low part of the step, so the secant line from *a* to [math]\displaystyle{ a+h }[/math] is very steep; as *h* tends to zero, the slope tends to infinity. If *h* is positive, then [math]\displaystyle{ a+h }[/math] is on the high part of the step, so the secant line from *a* to [math]\displaystyle{ a+h }[/math] has slope zero. Consequently, the secant lines do not approach any single slope, so the limit of the difference quotient does not exist.

However, even if a function is continuous at a point, it may not be differentiable there. For example, the absolute value function given by [math]\displaystyle{ f(x)=|x| }[/math] is continuous at [math]\displaystyle{ x=0 }[/math], but it is not differentiable there. If *h* is positive, then the slope of the secant line from 0 to *h* is one; if *h* is negative, then the slope of the secant line from 0 to *h* is -1. This can be seen graphically as a "kink" or a "cusp" in the graph at [math]\displaystyle{ x=0 }[/math]. Even a function with a smooth graph is not differentiable at a point where its tangent is vertical: For instance, the function given by [math]\displaystyle{ f(x)=x^{1/3} }[/math] is not differentiable at [math]\displaystyle{ x=0 }[/math].

In summary, a function that has a derivative is continuous, but there are continuous functions that do not have a derivative.

Most functions that occur in practice have derivatives at all points or at almost every point. Early in the history of calculus, many mathematicians assumed that a continuous function was differentiable at most points. Under mild conditions (for example, if the function is a monotone or a Lipschitz function), this is true. However, in 1872, Weierstrass found the first example of a function that is continuous everywhere but differentiable nowhere. This example is now known as the Weierstrass function. In 1931, Stefan Banach proved that the set of functions that have a derivative at some point is a meager set in the space of all continuous functions.^{[3]} Informally, this means that hardly any random continuous functions have a derivative at even one point.

## Derivative as a function

Let *f* be a function that has a derivative at every point in its domain. We can then define a function that maps every point x to the value of the derivative of f at x. This function is written *f*′ and is called the *derivative function* or the *derivative of* *f*.

Sometimes *f* has a derivative at most, but not all, points of its domain. The function whose value at a equals *f*′(*a*) whenever *f*′(*a*) is defined and elsewhere is undefined is also called the derivative of *f*. It is still a function, but its domain may be smaller than the domain of *f*.

Using this idea, differentiation becomes a function of functions: The derivative is an operator whose domain is the set of all functions that have derivatives at every point of their domain and whose range is a set of functions. If we denote this operator by *D*, then *D*(*f*) is the function *f*′. Since *D*(*f*) is a function, it can be evaluated at a point a. By the definition of the derivative function, *D*(*f*)(*a*) = *f*′(*a*).

For comparison, consider the doubling function given by *f*(*x*) = 2*x*; *f* is a real-valued function of a real number, meaning that it takes numbers as inputs and has numbers as outputs:

- [math]\displaystyle{ \begin{align} 1 &{}\mapsto 2,\\ 2 &{}\mapsto 4,\\ 3 &{}\mapsto 6. \end{align} }[/math]

The operator *D*, however, is not defined on individual numbers. It is only defined on functions:

- [math]\displaystyle{ \begin{align} D(x \mapsto 1) &= (x \mapsto 0),\\ D(x \mapsto x) &= (x \mapsto 1),\\ D\left(x \mapsto x^2\right) &= (x \mapsto 2\cdot x). \end{align} }[/math]

Because the output of *D* is a function, the output of *D* can be evaluated at a point. For instance, when *D* is applied to the square function, *x* ↦ *x*^{2}, *D* outputs the doubling function *x* ↦ 2*x*, which we named *f*(*x*). This output function can then be evaluated to get *f*(1) = 2, *f*(2) = 4, and so on.

## Higher derivatives

Let *f* be a differentiable function, and let *f* ′ be its derivative. The derivative of *f* ′ (if it has one) is written *f* ′′ and is called the *second derivative of f*. Similarly, the derivative of the second derivative, if it exists, is written *f* ′′′ and is called the *third derivative of f*. Continuing this process, one can define, if it exists, the *n*th derivative as the derivative of the (*n*−1)th derivative.^{[1]} These repeated derivatives are called **higher-order derivatives**.^{[4]} The *n*th derivative is also called the **derivative of order n** (or

**: first-, second-, third-order derivative, etc.) and denoted**

*n*th-order derivative*f*

^{(n)}.

If *x*(*t*) represents the position of an object at time *t*, then the higher-order derivatives of *x* have specific interpretations in physics. The first derivative of *x* is the object's velocity. The second derivative of *x* is the acceleration.^{[1]} The third derivative of *x* is the jerk.^{[5]} And finally, the fourth through sixth derivatives of *x* are snap, crackle, and pop.^{[6]}

A function *f* need not have a derivative (for example, if it is not continuous). Similarly, even if *f* does have a derivative, it may not have a second derivative. For example, let

- [math]\displaystyle{ f(x) = \begin{cases} +x^2, & \text{if }x\ge 0 \\ -x^2, & \text{if }x \le 0.\end{cases} }[/math]

Calculation shows that *f* is a differentiable function whose derivative at [math]\displaystyle{ x }[/math] is given by

- [math]\displaystyle{ f'(x) = \begin{cases} +2x, & \text{if }x\ge 0 \\ -2x, & \text{if }x \le 0.\end{cases} }[/math]

*f'*(*x*) is twice the absolute value function at [math]\displaystyle{ x }[/math], and it does not have a derivative at zero. Similar examples show that a function can have a *k*th derivative for each non-negative integer *k* but not a (*k* + 1)th derivative. A function that has *k* successive derivatives is called *k times differentiable*. If in addition the *k*th derivative is continuous, then the function is said to be of differentiability class *C ^{k}*.

^{[7]}(This is a stronger condition than having

*k*derivatives, as shown by the second example of Smoothness § Examples.) A function that has infinitely many derivatives is called

*infinitely differentiable*or

*smooth*.

On the real line, every polynomial function is infinitely differentiable. By standard differentiation rules, if a polynomial of degree *n* is differentiated *n* times, then it becomes a constant function. All of its subsequent derivatives are identically zero. In particular, they exist, so polynomials are smooth functions.

The derivatives of a function *f* at a point *x* provide polynomial approximations to that function near *x*. For example, if *f* is twice differentiable, then

- [math]\displaystyle{ f(x+h) \approx f(x) + f'(x)h + \tfrac{1}{2} f''(x) h^2 }[/math]

in the sense that

- [math]\displaystyle{ \lim_{h\to 0}\frac{f(x+h) - f(x) - f'(x)h - \frac{1}{2} f''(x) h^2}{h^2} = 0. }[/math]

If *f* is infinitely differentiable, then this is the beginning of the Taylor series for *f* evaluated at *x* + *h* around *x*.

### Inflection point

A point where the second derivative of a function changes sign is called an *inflection point*.^{[8]} At an inflection point, the second derivative may be zero, as in the case of the inflection point *x* = 0 of the function given by [math]\displaystyle{ f(x) = x^3 }[/math], or it may fail to exist, as in the case of the inflection point *x* = 0 of the function given by [math]\displaystyle{ f(x) = x^{1/3} }[/math]. At an inflection point, a function switches from being a convex function to being a concave function or vice versa.

## Notation (details)

### Leibniz's notation

The symbols [math]\displaystyle{ dx }[/math], [math]\displaystyle{ dy }[/math], and [math]\displaystyle{ \frac{dy}{dx} }[/math] were introduced by Gottfried Wilhelm Leibniz in 1675.^{[9]} It is still commonly used when the equation [math]\displaystyle{ y=f(x) }[/math] is viewed as a functional relationship between dependent and independent variables. Then the first derivative is denoted by

- [math]\displaystyle{ \frac{dy}{dx},\quad\frac{d f}{dx}, \text{ or }\frac{d}{dx}f, }[/math]

and was once thought of as an infinitesimal quotient.^{[10]} Higher derivatives are expressed using the notation

- [math]\displaystyle{ \frac{d^ny}{dx^n}, \quad\frac{d^n f}{dx^n}, \text{ or } \frac{d^n}{dx^n}f }[/math]

for the [math]\displaystyle{ n }[/math]-th derivative of [math]\displaystyle{ y = f(x) }[/math]. These are abbreviations for multiple applications of the derivative operator. For example,^{[4]}

- [math]\displaystyle{ \frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right). }[/math]

With Leibniz's notation, we can write the derivative of [math]\displaystyle{ y }[/math] at the point [math]\displaystyle{ x = a }[/math] in two different ways:

- [math]\displaystyle{ \left.\frac{dy}{dx}\right|_{x=a} = \frac{dy}{dx}(a). }[/math]

Leibniz's notation allows one to specify the variable for differentiation (in the denominator), which is relevant in partial differentiation. It also can be used to write the chain rule as^{[11]}^{[Note 2]}

- [math]\displaystyle{ \frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}. }[/math]

### Lagrange's notation

Sometimes referred to as *prime notation*,^{[12]} one of the most common modern notations for differentiation is due to Joseph-Louis Lagrange and uses the prime mark, so that the derivative of a function [math]\displaystyle{ f }[/math] is denoted [math]\displaystyle{ f' }[/math]. Similarly, the second and third derivatives are denoted^{[13]}

- [math]\displaystyle{ (f')'=f'' }[/math] and [math]\displaystyle{ (f'')'=f'''. }[/math]

To denote the number of derivatives beyond this point, some authors use Roman numerals in superscript, whereas others place the number in parentheses:^{[14]}

- [math]\displaystyle{ f^{\mathrm{iv}} }[/math] or [math]\displaystyle{ f^{(4)}. }[/math]

The latter notation generalizes to yield the notation [math]\displaystyle{ f^{(n)} }[/math] for the *n*th derivative of [math]\displaystyle{ f }[/math] – this notation is most useful when we wish to talk about the derivative as being a function itself, as in this case the Leibniz notation can become cumbersome.

### Newton's notation

Newton's notation for differentiation, also called the dot notation, places a dot over the function name to represent a time derivative. If [math]\displaystyle{ y = f(t) }[/math], then

- [math]\displaystyle{ \dot{y} }[/math] and [math]\displaystyle{ \ddot{y} }[/math]

denote, respectively, the first and second derivatives of [math]\displaystyle{ y }[/math]. This notation is used exclusively for derivatives with respect to time or arc length. It is typically used in differential equations in physics and differential geometry.({{{1}}}, {{{2}}}) The dot notation, however, becomes unmanageable for high-order derivatives (order 4 or more) and cannot deal with multiple independent variables.

### Euler's notation

Euler's notation uses a differential operator [math]\displaystyle{ D }[/math], which is applied to a function [math]\displaystyle{ f }[/math] to give the first derivative [math]\displaystyle{ Df }[/math]. The [math]\displaystyle{ n }[/math]th derivative is denoted [math]\displaystyle{ D^nf }[/math].^{[10]}

If [math]\displaystyle{ y=f(x) }[/math] is a dependent variable, then often the subscript [math]\displaystyle{ x }[/math] is attached to the [math]\displaystyle{ D }[/math] to clarify the independent variable [math]\displaystyle{ x }[/math]. Euler's notation is then written

- [math]\displaystyle{ D_x y }[/math] or [math]\displaystyle{ D_x f(x) }[/math],

although this subscript is often omitted when the variable [math]\displaystyle{ x }[/math] is understood, for instance when this is the only independent variable present in the expression.

Euler's notation is useful for stating and solving linear differential equations.

## Rules of computation

The derivative of a function can, in principle, be computed from the definition by considering the difference quotient, and computing its limit. In practice, once the derivatives of a few simple functions are known, the derivatives of other functions are more easily computed using *rules* for obtaining derivatives of more complicated functions from simpler ones.

### Rules for basic functions

Here are the rules for the derivatives of the most common basic functions, where *a* is a real number.

*Derivatives of powers*:^{[15]}- [math]\displaystyle{ \frac{d}{dx}x^a = ax^{a-1}. }[/math]

*Exponential and logarithmic functions*:^{[16]}- [math]\displaystyle{ \frac{d}{dx}e^x = e^x. }[/math]
- [math]\displaystyle{ \frac{d}{dx}a^x = a^x\ln(a),\qquad a \gt 0 }[/math]
- [math]\displaystyle{ \frac{d}{dx}\ln(x) = \frac{1}{x},\qquad x \gt 0. }[/math]
- [math]\displaystyle{ \frac{d}{dx}\log_a(x) = \frac{1}{x\ln(a)},\qquad x, a \gt 0 }[/math]

*Trigonometric functions*:^{[17]}- [math]\displaystyle{ \frac{d}{dx}\sin(x) = \cos(x). }[/math]
- [math]\displaystyle{ \frac{d}{dx}\cos(x) = -\sin(x). }[/math]
- [math]\displaystyle{ \frac{d}{dx}\tan(x) = \sec^2(x) = \frac{1}{\cos^2(x)} = 1 + \tan^2(x). }[/math]

*Inverse trigonometric functions*:^{[18]}- [math]\displaystyle{ \frac{d}{dx}\arcsin(x) = \frac{1}{\sqrt{1-x^2}},\qquad -1\lt x\lt 1. }[/math]
- [math]\displaystyle{ \frac{d}{dx}\arccos(x)= -\frac{1}{\sqrt{1-x^2}},\qquad -1\lt x\lt 1. }[/math]
- [math]\displaystyle{ \frac{d}{dx}\arctan(x)= \frac{1}{{1+x^2}} }[/math]

### Rules for combined functions

Here are some of the most basic rules for deducing the derivative of a compound function from derivatives of basic functions.^{[19]}

*Constant rule*: if [math]\displaystyle{ f }[/math] is constant, then for all [math]\displaystyle{ x }[/math],- [math]\displaystyle{ f'(x) = 0. }[/math]

*Sum rule*:- [math]\displaystyle{ (\alpha f + \beta g)' = \alpha f' + \beta g' }[/math] for all functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math] and all real numbers
*[math]\displaystyle{ \alpha }[/math]*and*[math]\displaystyle{ \beta }[/math]*.

- [math]\displaystyle{ (\alpha f + \beta g)' = \alpha f' + \beta g' }[/math] for all functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math] and all real numbers
*Product rule*:- [math]\displaystyle{ (fg)' = f 'g + fg' }[/math] for all functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math]. As a special case, this rule includes the fact [math]\displaystyle{ (\alpha f)' = \alpha f' }[/math] whenever [math]\displaystyle{ \alpha }[/math] is a constant, because [math]\displaystyle{ \alpha' f = 0 \cdot f = 0 }[/math] by the constant rule.

*Quotient rule*:- [math]\displaystyle{ \left(\frac{f}{g} \right)' = \frac{f'g - fg'}{g^2} }[/math] for all functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math] at all inputs where
*g*≠ 0.

- [math]\displaystyle{ \left(\frac{f}{g} \right)' = \frac{f'g - fg'}{g^2} }[/math] for all functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math] at all inputs where
*Chain rule*for composite functions: If [math]\displaystyle{ f(x) = h(g(x)) }[/math], then- [math]\displaystyle{ f'(x) = h'(g(x)) \cdot g'(x). }[/math]

### Computation example

The derivative of the function given by

- [math]\displaystyle{ f(x) = x^4 + \sin \left(x^2\right) - \ln(x) e^x + 7 }[/math]

is

- [math]\displaystyle{ \begin{align} f'(x) &= 4 x^{(4-1)}+ \frac{d\left(x^2\right)}{dx}\cos \left(x^2\right) - \frac{d\left(\ln {x}\right)}{dx} e^x - \ln(x) \frac{d\left(e^x\right)}{dx} + 0 \\ &= 4x^3 + 2x\cos \left(x^2\right) - \frac{1}{x} e^x - \ln(x) e^x. \end{align} }[/math]

Here the second term was computed using the chain rule and third using the product rule. The known derivatives of the elementary functions *x*^{2}, *x*^{4}, sin(*x*), ln(*x*) and exp(*x*) = *e*^{x}, as well as the constant 7, were also used.

## Definition with hyperreals

Relative to a hyperreal extension [math]\displaystyle{ \R\subset\,^*\!\R }[/math] of the real numbers, the derivative of a real function [math]\displaystyle{ y=f(x) }[/math] at a real point [math]\displaystyle{ x }[/math] can be defined as the shadow of the quotient [math]\displaystyle{ \tfrac{\Delta y}{\Delta x} }[/math] for infinitesimal [math]\displaystyle{ \Delta x }[/math], where [math]\displaystyle{ \Delta y=f(x+\Delta x)-f(x) }[/math]. Here the natural extension of [math]\displaystyle{ f }[/math] to the hyperreals is still denoted [math]\displaystyle{ f }[/math]. Here the derivative is said to exist if the shadow is independent of the infinitesimal chosen.

## In higher dimensions

### Vector-valued functions

A vector-valued function **y** of a real variable sends real numbers to vectors in some vector space **R**^{n}. A vector-valued function can be split up into its coordinate functions *y*_{1}(*t*), *y*_{2}(*t*), ..., *y*_{n}(*t*), meaning that **y**(*t*) = (*y*_{1}(*t*), ..., *y*_{n}(*t*)). This includes, for example, parametric curves in **R**^{2} or **R**^{3}. The coordinate functions are real valued functions, so the above definition of derivative applies to them. The derivative of **y**(*t*) is defined to be the vector, called the tangent vector, whose coordinates are the derivatives of the coordinate functions. That is,

- [math]\displaystyle{ \mathbf{y}'(t) = (y'_1(t), \ldots, y'_n(t)). }[/math]

Equivalently,

- [math]\displaystyle{ \mathbf{y}'(t)=\lim_{h\to 0}\frac{\mathbf{y}(t+h) - \mathbf{y}(t)}{h}, }[/math]

if the limit exists. The subtraction in the numerator is the subtraction of vectors, not scalars. If the derivative of **y** exists for every value of *t*, then **y**′ is another vector-valued function.

If **e**_{1}, ..., **e**_{n} is the standard basis for **R**^{n}, then **y**(*t*) can also be written as *y*_{1}(*t*)**e**_{1} + ⋯ + *y*_{n}(*t*)**e**_{n}. If we assume that the derivative of a vector-valued function retains the linearity property, then the derivative of **y**(*t*) must be

- [math]\displaystyle{ y'_1(t)\mathbf{e}_1 + \cdots + y'_n(t)\mathbf{e}_n }[/math]

because each of the basis vectors is a constant.

This generalization is useful, for example, if **y**(*t*) is the position vector of a particle at time *t*; then the derivative **y**′(*t*) is the velocity vector of the particle at time *t*.

### Partial derivatives

Suppose that *f* is a function that depends on more than one variable—for instance,

- [math]\displaystyle{ f(x,y) = x^2 + xy + y^2. }[/math]

*f* can be reinterpreted as a family of functions of one variable indexed by the other variables:

- [math]\displaystyle{ f(x,y) = f_x(y) = x^2 + xy + y^2. }[/math]

In other words, every value of *x* chooses a function, denoted *f _{x}*, which is a function of one real number.

^{[Note 3]}That is,

- [math]\displaystyle{ x \mapsto f_x, }[/math]
- [math]\displaystyle{ f_x(y) = x^2 + xy + y^2. }[/math]

Once a value of *x* is chosen, say *a*, then *f*(*x*, *y*) determines a function *f _{a}* that sends

*y*to

*a*

^{2}+

*ay*+

*y*

^{2}:

- [math]\displaystyle{ f_a(y) = a^2 + ay + y^2. }[/math]

In this expression, *a* is a *constant*, not a *variable*, so *f _{a}* is a function of only one real variable. Consequently, the definition of the derivative for a function of one variable applies:

- [math]\displaystyle{ f_a'(y) = a + 2y. }[/math]

The above procedure can be performed for any choice of *a*. Assembling the derivatives together into a function gives a function that describes the variation of *f* in the *y* direction:

- [math]\displaystyle{ \frac{\partial f}{\partial y}(x,y) = x + 2y. }[/math]

This is the partial derivative of *f* with respect to *y*. Here ∂ is a rounded *d* called the **partial derivative symbol**. To distinguish it from the letter *d*, ∂ is sometimes pronounced "der", "del", or "partial" instead of "dee".

In general, the **partial derivative** of a function *f*(*x*_{1}, …, *x*_{n}) in the direction *x _{i}* at the point (

*a*

_{1}, ...,

*a*

_{n}) is defined to be:

- [math]\displaystyle{ \frac{\partial f}{\partial x_i}(a_1,\ldots,a_n) = \lim_{h \to 0}\frac{f(a_1,\ldots,a_i+h,\ldots,a_n) - f(a_1,\ldots,a_i,\ldots,a_n)}{h}. }[/math]

In the above difference quotient, all the variables except *x _{i}* are held fixed. That choice of fixed values determines a function of one variable

- [math]\displaystyle{ f_{a_1,\ldots,a_{i-1},a_{i+1},\ldots,a_n}(x_i) = f(a_1,\ldots,a_{i-1},x_i,a_{i+1},\ldots,a_n), }[/math]

and, by definition,

- [math]\displaystyle{ \frac{df_{a_1,\ldots,a_{i-1},a_{i+1},\ldots,a_n}}{dx_i}(a_i) = \frac{\partial f}{\partial x_i}(a_1,\ldots,a_n). }[/math]

In other words, the different choices of *a* index a family of one-variable functions just as in the example above. This expression also shows that the computation of partial derivatives reduces to the computation of one-variable derivatives.

This is fundamental for the study of the functions of several real variables. Let *f*(*x*_{1}, ..., *x*_{n}) be such a real-valued function. If all partial derivatives ∂*f* / ∂*x*_{j} of f are defined at the point *a* = (*a*_{1}, ..., *a*_{n}), these partial derivatives define the vector

- [math]\displaystyle{ \nabla f(a_1, \ldots, a_n) = \left(\frac{\partial f}{\partial x_1}(a_1, \ldots, a_n), \ldots, \frac{\partial f}{\partial x_n}(a_1, \ldots, a_n)\right), }[/math]

which is called the gradient of *f* at *a*. If *f* is differentiable at every point in some domain, then the gradient is a vector-valued function ∇*f* that maps the point (*a*_{1}, ..., *a*_{n}) to the vector ∇*f*(*a*_{1}, ..., *a*_{n}). Consequently, the gradient determines a vector field.

### Directional derivatives

If *f* is a real-valued function on **R**^{n}, then the partial derivatives of *f* measure its variation in the direction of the coordinate axes. For example, if *f* is a function of *x* and *y*, then its partial derivatives measure the variation in *f* in the *x* direction and the *y* direction. They do not, however, directly measure the variation of *f* in any other direction, such as along the diagonal line *y* = *x*. These are measured using directional derivatives. Choose a vector

- [math]\displaystyle{ \mathbf{v} = (v_1,\ldots,v_n). }[/math]

The **directional derivative** of *f* in the direction of **v** at the point **x** is the limit

- [math]\displaystyle{ D_{\mathbf{v}}{f}(\mathbf{x}) = \lim_{h \rightarrow 0}{\frac{f(\mathbf{x} + h\mathbf{v}) - f(\mathbf{x})}{h}}. }[/math]

In some cases it may be easier to compute or estimate the directional derivative after changing the length of the vector. Often this is done to turn the problem into the computation of a directional derivative in the direction of a unit vector. To see how this works, suppose that **v** = *λ***u** where **u** is a unit vector in the direction of **v**. Substitute *h* = *k*/*λ* into the difference quotient. The difference quotient becomes:

- [math]\displaystyle{ \frac{f(\mathbf{x} + (k/\lambda)(\lambda\mathbf{u})) - f(\mathbf{x})}{k/\lambda} = \lambda\cdot\frac{f(\mathbf{x} + k\mathbf{u}) - f(\mathbf{x})}{k}. }[/math]

This is *λ* times the difference quotient for the directional derivative of *f* with respect to **u**. Furthermore, taking the limit as *h* tends to zero is the same as taking the limit as *k* tends to zero because *h* and *k* are multiples of each other. Therefore, *D*_{v}(*f*) = λ*D*_{u}(*f*). Because of this rescaling property, directional derivatives are frequently considered only for unit vectors.

If all the partial derivatives of *f* exist and are continuous at **x**, then they determine the directional derivative of *f* in the direction **v** by the formula:

- [math]\displaystyle{ D_{\mathbf{v}}{f}(\boldsymbol{x}) = \sum_{j=1}^n v_j \frac{\partial f}{\partial x_j}. }[/math]

This is a consequence of the definition of the total derivative. It follows that the directional derivative is linear in **v**, meaning that *D*_{v + w}(*f*) = *D*_{v}(*f*) + *D*_{w}(*f*).

The same definition also works when *f* is a function with values in **R**^{m}. The above definition is applied to each component of the vectors. In this case, the directional derivative is a vector in **R**^{m}.

### Total derivative, total differential and Jacobian matrix

When *f* is a function from an open subset of **R**^{n} to **R**^{m}, then the directional derivative of *f* in a chosen direction is the best linear approximation to *f* at that point and in that direction. But when *n* > 1, no single directional derivative can give a complete picture of the behavior of *f*. The total derivative gives a complete picture by considering all directions at once. That is, for any vector **v** starting at **a**, the linear approximation formula holds:

- [math]\displaystyle{ f(\mathbf{a} + \mathbf{v}) \approx f(\mathbf{a}) + f'(\mathbf{a})\mathbf{v}. }[/math]

Just like the single-variable derivative, *f* ′(**a**) is chosen so that the error in this approximation is as small as possible.

If *n* and *m* are both one, then the derivative *f* ′(*a*) is a number and the expression *f* ′(*a*)*v* is the product of two numbers. But in higher dimensions, it is impossible for *f* ′(**a**) to be a number. If it were a number, then *f* ′(**a**)**v** would be a vector in **R**^{n} while the other terms would be vectors in **R**^{m}, and therefore the formula would not make sense. For the linear approximation formula to make sense, *f* ′(**a**) must be a function that sends vectors in **R**^{n} to vectors in **R**^{m}, and *f* ′(**a**)**v** must denote this function evaluated at **v**.

To determine what kind of function it is, notice that the linear approximation formula can be rewritten as

- [math]\displaystyle{ f(\mathbf{a} + \mathbf{v}) - f(\mathbf{a}) \approx f'(\mathbf{a})\mathbf{v}. }[/math]

Notice that if we choose another vector **w**, then this approximate equation determines another approximate equation by substituting **w** for **v**. It determines a third approximate equation by substituting both **w** for **v** and **a** + **v** for **a**. By subtracting these two new equations, we get

- [math]\displaystyle{ f(\mathbf{a} + \mathbf{v} + \mathbf{w}) - f(\mathbf{a} + \mathbf{v}) - f(\mathbf{a} + \mathbf{w}) + f(\mathbf{a}) \approx f'(\mathbf{a} + \mathbf{v})\mathbf{w} - f'(\mathbf{a})\mathbf{w}. }[/math]

If we assume that **v** is small and that the derivative varies continuously in **a**, then *f* ′(**a** + **v**) is approximately equal to *f* ′(**a**), and therefore the right-hand side is approximately zero. The left-hand side can be rewritten in a different way using the linear approximation formula with **v** + **w** substituted for **v**. The linear approximation formula implies:

- [math]\displaystyle{ \begin{align} 0 &\approx f(\mathbf{a} + \mathbf{v} + \mathbf{w}) - f(\mathbf{a} + \mathbf{v}) - f(\mathbf{a} + \mathbf{w}) + f(\mathbf{a}) \\ &= (f(\mathbf{a} + \mathbf{v} + \mathbf{w}) - f(\mathbf{a})) - (f(\mathbf{a} + \mathbf{v}) - f(\mathbf{a})) - (f(\mathbf{a} + \mathbf{w}) - f(\mathbf{a})) \\ &\approx f'(\mathbf{a})(\mathbf{v} + \mathbf{w}) - f'(\mathbf{a})\mathbf{v} - f'(\mathbf{a})\mathbf{w}. \end{align} }[/math]

This suggests that *f* ′(**a**) is a linear transformation from the vector space **R**^{n} to the vector space **R**^{m}. In fact, it is possible to make this a precise derivation by measuring the error in the approximations. Assume that the error in these linear approximation formula is bounded by a constant times ||**v**||, where the constant is independent of **v** but depends continuously on **a**. Then, after adding an appropriate error term, all of the above approximate equalities can be rephrased as inequalities. In particular, *f* ′(**a**) is a linear transformation up to a small error term. In the limit as **v** and **w** tend to zero, it must therefore be a linear transformation. Since we define the total derivative by taking a limit as **v** goes to zero, *f* ′(**a**) must be a linear transformation.

In one variable, the fact that the derivative is the best linear approximation is expressed by the fact that it is the limit of difference quotients. However, the usual difference quotient does not make sense in higher dimensions because it is not usually possible to divide vectors. In particular, the numerator and denominator of the difference quotient are not even in the same vector space: The numerator lies in the codomain **R**^{m} while the denominator lies in the domain **R**^{n}. Furthermore, the derivative is a linear transformation, a different type of object from both the numerator and denominator. To make precise the idea that *f* ′(**a**) is the best linear approximation, it is necessary to adapt a different formula for the one-variable derivative in which these problems disappear. If *f* : **R** → **R**, then the usual definition of the derivative may be manipulated to show that the derivative of *f* at *a* is the unique number *f* ′(*a*) such that

- [math]\displaystyle{ \lim_{h \to 0} \frac{f(a + h) - (f(a) + f'(a)h)}{h} = 0. }[/math]

This is equivalent to

- [math]\displaystyle{ \lim_{h \to 0} \frac{|f(a + h) - (f(a) + f'(a)h)|}{|h|} = 0 }[/math]

because the limit of a function tends to zero if and only if the limit of the absolute value of the function tends to zero. This last formula can be adapted to the many-variable situation by replacing the absolute values with norms.

The definition of the **total derivative** of *f* at **a**, therefore, is that it is the unique linear transformation *f* ′(**a**) : **R**^{n} → **R**^{m} such that

- [math]\displaystyle{ \lim_{\mathbf{h}\to 0} \frac{\lVert f(\mathbf{a} + \mathbf{h}) - (f(\mathbf{a}) + f'(\mathbf{a})\mathbf{h})\rVert}{\lVert\mathbf{h}\rVert} = 0. }[/math]

Here **h** is a vector in **R**^{n}, so the norm in the denominator is the standard length on **R**^{n}. However, *f*′(**a**)**h** is a vector in **R**^{m}, and the norm in the numerator is the standard length on **R**^{m}. If *v* is a vector starting at *a*, then *f* ′(**a**)**v** is called the pushforward of **v** by *f* and is sometimes written *f*_{∗}**v**.

If the total derivative exists at **a**, then all the partial derivatives and directional derivatives of *f* exist at **a**, and for all **v**, *f* ′(**a**)**v** is the directional derivative of *f* in the direction **v**. If we write *f* using coordinate functions, so that *f* = (*f*_{1}, *f*_{2}, ..., *f*_{m}), then the total derivative can be expressed using the partial derivatives as a matrix. This matrix is called the **Jacobian matrix** of *f* at **a**:

- [math]\displaystyle{ f'(\mathbf{a}) = \operatorname{Jac}_{\mathbf{a}} = \left(\frac{\partial f_i}{\partial x_j}\right)_{ij}. }[/math]

The existence of the total derivative *f*′(**a**) is strictly stronger than the existence of all the partial derivatives, but if the partial derivatives exist and are continuous, then the total derivative exists, is given by the Jacobian, and depends continuously on **a**.

The definition of the total derivative subsumes the definition of the derivative in one variable. That is, if *f* is a real-valued function of a real variable, then the total derivative exists if and only if the usual derivative exists. The Jacobian matrix reduces to a 1×1 matrix whose only entry is the derivative *f*′(*x*). This 1×1 matrix satisfies the property that *f*(*a* + *h*) − (*f*(*a*) + *f* ′(*a*)*h*) is approximately zero, in other words that

- [math]\displaystyle{ f(a+h) \approx f(a) + f'(a)h. }[/math]

Up to changing variables, this is the statement that the function [math]\displaystyle{ x \mapsto f(a) + f'(a)(x-a) }[/math] is the best linear approximation to *f* at *a*.

The total derivative of a function does not give another function in the same way as the one-variable case. This is because the total derivative of a multivariable function has to record much more information than the derivative of a single-variable function. Instead, the total derivative gives a function from the tangent bundle of the source to the tangent bundle of the target.

The natural analog of second, third, and higher-order total derivatives is not a linear transformation, is not a function on the tangent bundle, and is not built by repeatedly taking the total derivative. The analog of a higher-order derivative, called a jet, cannot be a linear transformation because higher-order derivatives reflect subtle geometric information, such as concavity, which cannot be described in terms of linear data such as vectors. It cannot be a function on the tangent bundle because the tangent bundle only has room for the base space and the directional derivatives. Because jets capture higher-order information, they take as arguments additional coordinates representing higher-order changes in direction. The space determined by these additional coordinates is called the jet bundle. The relation between the total derivative and the partial derivatives of a function is paralleled in the relation between the *k*th order jet of a function and its partial derivatives of order less than or equal to *k*.

By repeatedly taking the total derivative, one obtains higher versions of the Fréchet derivative, specialized to **R**^{p}. The *k*th order total derivative may be interpreted as a map

- [math]\displaystyle{ D^k f: \mathbb{R}^n \to L^k(\mathbb{R}^n \times \cdots \times \mathbb{R}^n, \mathbb{R}^m) }[/math]

which takes a point **x** in **R**^{n} and assigns to it an element of the space of *k*-linear maps from **R**^{n} to **R**^{m} – the "best" (in a certain precise sense) *k*-linear approximation to *f* at that point. By precomposing it with the diagonal map Δ, **x** → (**x**, **x**), a generalized Taylor series may be begun as

- [math]\displaystyle{ \begin{align} f(\mathbf{x}) & \approx f(\mathbf{a}) + (D f)(\mathbf{x-a}) + \left(D^2 f\right)(\Delta(\mathbf{x-a})) + \cdots\\ & = f(\mathbf{a}) + (D f)(\mathbf{x - a}) + \left(D^2 f\right)(\mathbf{x - a}, \mathbf{x - a})+ \cdots\\ & = f(\mathbf{a}) + \sum_i (D f)_i (x_i-a_i) + \sum_{j, k} \left(D^2 f\right)_{j k} (x_j-a_j) (x_k-a_k) + \cdots \end{align} }[/math]

where f(**a**) is identified with a constant function, *x*_{i} − *a*_{i} are the components of the vector **x** − **a**, and (*Df*)_{i} and (*D*^{2}*f*)_{jk} are the components of *Df* and *D*^{2}*f* as linear transformations.

## Generalizations

The concept of a derivative can be extended to many other settings. The common thread is that the derivative of a function at a point serves as a linear approximation of the function at that point.

- An important generalization of the derivative concerns complex functions of complex variables, such as functions from (a domain in) the complex numbers [math]\displaystyle{ \C }[/math] to [math]\displaystyle{ \C }[/math]. The notion of the derivative of such a function is obtained by replacing real variables with complex variables in the definition.
^{[20]}If [math]\displaystyle{ \C }[/math] is identified with [math]\displaystyle{ \R^2 }[/math] by writing a complex number [math]\displaystyle{ z }[/math] as [math]\displaystyle{ x+iy }[/math], then a differentiable function from [math]\displaystyle{ \C }[/math] to [math]\displaystyle{ \C }[/math] is certainly differentiable as a function from [math]\displaystyle{ \R^2 }[/math] to [math]\displaystyle{ \R^2 }[/math] (in the sense that its partial derivatives all exist), but the converse is not true in general: the complex derivative only exists if the real derivative is*complex linear*and this imposes relations between the partial derivatives called the Cauchy–Riemann equations – see holomorphic functions. - Another generalization concerns functions between differentiable or smooth manifolds. Intuitively speaking such a manifold [math]\displaystyle{ M }[/math] is a space that can be approximated near each point [math]\displaystyle{ x }[/math] by a vector space called its tangent space: the prototypical example is a smooth surface in [math]\displaystyle{ \R^3 }[/math]. The derivative (or differential) of a (differentiable) map [math]\displaystyle{ f:M\to N }[/math] between manifolds, at a point [math]\displaystyle{ x }[/math] in [math]\displaystyle{ M }[/math], is then a linear map from the tangent space of [math]\displaystyle{ M }[/math] at [math]\displaystyle{ x }[/math] to the tangent space of [math]\displaystyle{ N }[/math] at [math]\displaystyle{ f(x) }[/math]. The derivative function becomes a map between the tangent bundles of [math]\displaystyle{ M }[/math] and [math]\displaystyle{ N }[/math]. This definition is fundamental in differential geometry and has many uses – see pushforward (differential) and pullback (differential geometry).
- Differentiation can also be defined for maps between infinite dimensional vector spaces such as Banach spaces and Fréchet spaces. There is a generalization both of the directional derivative, called the Gateaux derivative, and of the differential, called the Fréchet derivative.
- One deficiency of the classical derivative is that very many functions are not differentiable. Nevertheless, there is a way of extending the notion of the derivative so that all continuous functions and many other functions can be differentiated using a concept known as the weak derivative. The idea is to embed the continuous functions in a larger space called the space of distributions and only require that a function is differentiable "on average".
- The properties of the derivative have inspired the introduction and study of many similar objects in algebra and topology — see, for example, differential algebra.
- The discrete equivalent of differentiation is finite differences. The study of differential calculus is unified with the calculus of finite differences in time scale calculus.
- Also see arithmetic derivative.

## History

Calculus, known in its early history as *infinitesimal calculus*, is a mathematical discipline focused on limits, functions, derivatives, integrals, and infinite series. Isaac Newton and Gottfried Leibniz independently discovered calculus in the mid-17th century. However, each inventor claimed the other stole his work in a bitter dispute that continued until the end of their lives.

## See also

- Applications of derivatives
- Automatic differentiation
- Differentiability class
- Differentiation rules
- Differintegral
- Fractal derivative
- Generalizations of the derivative
- Hasse derivative
- History of calculus
- Integral
- Infinitesimal
- Linearization
- Mathematical analysis
- Multiplicative inverse
- Numerical differentiation
- Rate (mathematics)
- Radon–Nikodym theorem
- Symmetric derivative
- Schwarzian derivative

## Notes

- ↑ Differential calculus, as discussed in this article, is a very well established mathematical discipline for which there are many sources. See Apostol 1967, Apostol 1969, and Spivak 1994.
- ↑ In the formulation of calculus in terms of limits, the
*du*symbol has been assigned various meanings by various authors. Some authors do not assign a meaning to*du*by itself, but only as part of the symbol*du*/*dx*. Others define*dx*as an independent variable, and define*du*by*du*=*dx*⋅*f*′(*x*). In non-standard analysis*du*is defined as an infinitesimal. It is also interpreted as the exterior derivative of a function*u*. See differential (infinitesimal) for further information. - ↑ This can also be expressed as the operation known as currying.

## References

- ↑
^{1.0}^{1.1}^{1.2}Apostol 1967, p. 160. - ↑ Stewart 2002, p. 127.
- ↑ Banach 1931, cited in Hewitt & Stromberg 1965.
- ↑
^{4.0}^{4.1}Varberg, Purcell & Rigdon 2007, p. 125. - ↑ Stewart 2002, p. 193.
- ↑ Eager, Pendrill & Reistad 2016.
- ↑ Warner 1983, p. 5.
- ↑ Apostol 1967, p. 191.
- ↑ Cajori 2007, p. 204.
- ↑
^{10.0}^{10.1}Apostol 1967, p. 172. - ↑ Varberg, Purcell & Rigdon 2007, p. 119.
- ↑ MIT 1998.
- ↑ Cajori 2007, p. 228.
- ↑ Apostol 1967, p. 171.
- ↑ Varberg, Purcell & Rigdon 2007, p. 133.
- ↑ Varberg, Purcell & Rigdon 2007, p. 326, 338–339, 344.
- ↑ Varberg, Purcell & Rigdon 2007, p. 115–116.
- ↑ Varberg, Purcell & Rigdon 2007, p. 369.
- ↑ Apostol 1967, p. 161, 164.
- ↑ Roussos 2014, p. 303.

## Bibliography

### Printed books

- Anton, Howard; Bivens, Irl; Davis, Stephen (February 2, 2005),
*Calculus: Early Transcendentals Single and Multivariable*(8th ed.), New York: Wiley, ISBN 978-0-471-47244-5 - Apostol, Tom M. (June 1967),
*Calculus, Vol. 1: One-Variable Calculus with an Introduction to Linear Algebra*,**1**(2nd ed.), Wiley, ISBN 978-0-471-00005-1, https://archive.org/details/calculus01apos - Apostol, Tom M. (June 1969),
*Calculus, Vol. 2: Multi-Variable Calculus and Linear Algebra with Applications*,**1**(2nd ed.), Wiley, ISBN 978-0-471-00007-5, https://archive.org/details/calculus01apos - Cajori, Florian (2007),
*A History of Mathematical Notations*,**2**, Cosimo Classics, ISBN 978-1-60206-713-4, https://books.google.com/books?id=RUz1Us2UDh4C&pg=PA204 - Courant, Richard; John, Fritz (December 22, 1998),
*Introduction to Calculus and Analysis, Vol. 1*, Springer-Verlag, doi:10.1007/978-1-4613-8955-2, ISBN 978-3-540-65058-4 - Evans, Lawrence (1999),
*Partial Differential Equations*, American Mathematical Society, ISBN 0-8218-0772-2 - Eves, Howard (January 2, 1990),
*An Introduction to the History of Mathematics*(6th ed.), Brooks Cole, ISBN 978-0-03-029558-4 -
*Real and abstract analysis*, Springer-Verlag, 1965, pp. Theorem 17.8, doi:10.1007/978-3-662-29794-0 - Kreyszig, Erwin (1991),
*Differential Geometry*, New York: Dover, ISBN 0-486-66721-9 - Larson, Ron; Hostetler, Robert P.; Edwards, Bruce H. (February 28, 2006),
*Calculus: Early Transcendental Functions*(4th ed.), Houghton Mifflin Company, ISBN 978-0-618-60624-5 - Roussos, Ioannis M. (2014),
*Improper Riemann Integral*, CRC Press, ISBN 978-1-4665-8807-3, https://books.google.com/books?id=nX1cAgAAQBAJ - Spivak, Michael (September 1994),
*Calculus*(3rd ed.), Publish or Perish, ISBN 978-0-914098-89-8 - Stewart, James (December 24, 2002),
*Calculus*(5th ed.), Brooks Cole, ISBN 978-0-534-39339-7, https://archive.org/details/calculus0000stew - Thompson, Silvanus P. (September 8, 1998),
*Calculus Made Easy*(Revised, Updated, Expanded ed.), New York: St. Martin's Press, ISBN 978-0-312-18548-0 - Varberg, Dale E.; Purcell, Edwin J.; Rigdon, Steven E. (2007),
*Calculus*(9th ed.), Pearson Prentice Hall, ISBN 978-0131469686 - Warner, Frank W. (1983),
*Foundations of Differentiable Manifolds and Lie Groups*, Springer, p. 5, ISBN 978-0-387-90894-6, https://books.google.com/books?id=t6PNrjnfhuIC

### Online books

Library resources about Derivative |

- Crowell, Benjamin (2017),
*Fundamentals of Calculus*, http://www.lightandmatter.com/fund/ - (Govt. of TN), TamilNadu Textbook Corporation (2006),
*Mathematics- vol.2*, http://www.textbooksonline.tn.nic.in/Books/11/Std11-Maths-EM-2.pdf, retrieved 2014-11-29 - Garrett, Paul (2004),
*Notes on First-Year Calculus*, University of Minnesota, http://www.math.umn.edu/~garrett/calculus/ - Hussain, Faraz (2006),
*Understanding Calculus*, http://www.understandingcalculus.com/ - Keisler, H. Jerome (2000),
*Elementary Calculus: An Approach Using Infinitesimals*, http://www.math.wisc.edu/~keisler/calc.html - Mauch, Sean (2004),
*Unabridged Version of Sean's Applied Math Book*, http://www.its.caltech.edu/~sean/book/unabridged.html - Sloughter, Dan (2000),
*Difference Equations to Differential Equations*, http://synechism.org/drupal/de2de/ - Strang, Gilbert (1991),
*Calculus*, http://ocw.mit.edu/ans7870/resources/Strang/strangtext.htm - Stroyan, Keith D. (1997),
*A Brief Introduction to Infinitesimal Calculus*, http://homepage.math.uiowa.edu/~stroyan/Site/Infinitesimals.html -
*The Notation of Differentiation*, MIT, 1998, http://web.mit.edu/wwmath/calculus/differentiation/notation.html, retrieved 24 October 2012 - Wikibooks,
*Calculus*, http://en.wikibooks.org/wiki/Calculus

### Journals

- "Uber die Baire'sche Kategorie gewisser Funktionenmengen",
*Studia Math.***3**(3): 174–179, 1931, doi:10.4064/sm-3-1-174-179, https://scholar.google.com/scholar?output=instlink&q=info:SkKdCEmUd6QJ:scholar.google.com/&hl=en&as_sdt=0,50&scillfp=3432975470163241186&oi=lle. - Eager, David; Pendrill, Ann-Marie; Reistad, Nina (2016), "Beyond velocity and acceleration: jerk, snap and higher derivatives",
*European Journal of Physics***37**: 1–11, doi:10.1088/0143-0807/37/6/065008, ISSN 0143-0807

## External links

- Hazewinkel, Michiel, ed. (2001), "Derivative",
*Encyclopedia of Mathematics*, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=p/d031260 - Khan Academy: "Newton, Leibniz, and Usain Bolt"
- Weisstein, Eric W.. "Derivative". http://mathworld.wolfram.com/Derivative.html.
- Online Derivative Calculator from Wolfram Alpha.

Original source: https://en.wikipedia.org/wiki/Derivative.
Read more |