Derivative, TXT
Derivative, TXT
Derivative, TXT
Differentiation
Differentiation is the action of computing a derivative. The derivative of a
function y = f(x) of a variable x is a measure of the rate at which the value y of
the function changes with respect to the change of the variable x. It is called the
derivative of f with respect to x. If x and y are real numbers, and if the graph of
f is plotted against x, the derivative is the slope of this graph at each point.
The simplest case, apart from the trivial case of a constant function, is when y is
a linear function of x, meaning that the graph of y is a line. In this case, y =
f(x) = mx + b, for real numbers m and b, and the slope m is given by
change in
y
change in
where the symbol Δ (Delta) is an abbreviation for "change in", and the combinations
Δ
{\displaystyle \Delta x}
and
{\displaystyle \Delta y}
Δ
x
(
x
m
x
Thus
Δ
If the function f is not linear (i.e. its graph is not a straight line), then the
change in y divided by the change in x varies over the considered range:
differentiation is a method to find a unique value for this rate of change, not
across a certain range
suggesting the ratio of two infinitesimal quantities. (The above expression is read
as "the derivative of y with respect to x", "dy by dx", or "dy over dx". The oral
form "dy dx" is often used conversationally, although it may lead to confusion.)
Newton's notation for differentiation (also called the dot notation for
differentiation) places a dot over the dependent variable. That is, if y is a
function of t, then the derivative of y with respect to t is
y
y
.
Newton's notation is generally used when the independent variable denotes time. If
location y is a function of t, then
denotes acceleration.
Rigorous definition
The most common approach to turn this intuitive idea into a precise definition is
to define the derivative as a limit of difference quotients of real numbers. This
is the approach described below.
Δ
f
a
+
h
.
lim
0
f
lim
h
h
)
which has the intuitive interpretation (see Figure 1) that the tangent line to f at
a gives the best linear approximation
f
′
to f near a (i.e., for small h). This interpretation is the easiest to generalize
to other settings (see below).
)
−
Q(h) is the slope of the secant line between (a, f(a)) and (a + h, f(a + h)). If f
is a continuous function, meaning that its graph is an unbroken curve with no gaps,
then Q is a continuous function away from h = 0. If the limit limh→0Q(h) exists,
meaning that there is a way of choosing a value for Q(0) that makes Q a continuous
function, then the function f is differentiable at a, and its derivative at a
equals Q(0).
Example
The square function given by f(x) = x2 is differentiable at x = 3, and its
derivative there is 6. This result is established by calculating the limit as h
approaches zero of the difference quotient of f(3):
f
lim
+
h
lim
)
2
lim
0
9
lim
0
6
lim
h
)
The last expression shows that the difference quotient equals 6 + h when h ≠ 0 and
is undefined when h = 0, because of the definition of the difference quotient.
However, the definition of the limit says the difference quotient does not need to
be defined when h = 0. The limit is the result of letting h go to zero, meaning it
is the value that 6 + h tends to as h becomes very small:
lim
h
)
6.
Hence the slope of the graph of the square function at the point (3, 9) is 6, and
so its derivative at x = 3 is f′(3) = 6.
More generally, a similar computation shows that the derivative of the square
function at x = a is f′(a) = 2a:
)
lim
h
lim
2
h
lim
a
h
lim
0
2
lim
0
(
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 function 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. Informally, this means that hardly any random continuous functions have
a derivative at even one point.
{\displaystyle x}
{\displaystyle f}
at
x
{\displaystyle x}
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 is strictly smaller than the domain of f.
For comparison, consider the doubling function given by f(x) = 2x; f is a real-
valued function of a real number, meaning that it takes numbers as inputs and has
numbers as outputs:
2
,
6.
{\displaystyle {\begin{aligned}1&{}\mapsto 2,\\2&{}\mapsto 4,\\3&{}\mapsto
6.\end{aligned}}}
,
D
↦
x
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 nth derivative as the derivative of the (n-1)th derivative. These
repeated derivatives are called higher-order derivatives. The nth derivative is
also called the derivative of order n.
2
,
if
if
x
≤
0.
{\displaystyle x}
is given by
x
)
if
,
if
0.
{\displaystyle x}
, and it does not have a derivative at zero. Similar examples show that a function
can have a kth 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 kth derivative is continuous, then the function
is said to be of differentiability class Ck. (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.
+
1
lim
h
→
−
1
0.
{\displaystyle \lim _{h\to 0}{\frac {f(x+h)-f(x)-f'(x)h-{\frac {1}{2}}f''(x)h^{2}}
{h^{2}}}=0.}
Inflection point
A point where the second derivative of a function changes sign is called an
inflection point. 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
{\displaystyle f(x)=x^{3}}
(
x
Notation (details)
Leibniz's notation
The symbols
{\displaystyle dx}
,
d
{\displaystyle dy}
, and
or
d
n
y
x
n
or
n
f
{\displaystyle y=f(x)}
. These are abbreviations for multiple applications of the derivative operator. For
example,
2
y
(
d
{\displaystyle y}
at the point
x
a
{\displaystyle x=a}
a
d
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
d
u
d
Lagrange's notation
Sometimes referred to as prime notation, one of the most common modern notation for
differentiation is due to Joseph-Louis Lagrange and uses the prime mark, so that
the derivative of a function
{\displaystyle f}
is denoted
′
{\displaystyle f'}
{\displaystyle (f')'=f''}
and
(
f
{\displaystyle (f'')'=f'''.}
To denote the number of derivatives beyond this point, some authors use Roman
numerals in superscript, whereas others place the number in parentheses:
v
{\displaystyle f^{\mathrm {iv} }}
or
{\displaystyle f^{(4)}.}
)
{\displaystyle f^{(n)}}
{\displaystyle f}
– 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
{\displaystyle y=f(t)}
, then
y
and
{\displaystyle y}
. 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. 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
{\displaystyle D}
{\displaystyle f}
{\displaystyle Df}
{\displaystyle D^{n}f}
x
y
{\displaystyle D_{x}y}
or
{\displaystyle D_{x}f(x)}
,although this subscript is often omitted when the variable x 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:
1
.
x
.
x
ln
>
ln
>
0.
x
log
ln
x
,
>
Trigonometric functions:
sin
cos
x
)
cos
sin
x
)
tan
sec
2
cos
tan
2
arcsin
)
1
<
<
1.
arccos
2
,
<
<
1.
arctan
x
)
f
′
0.
{\displaystyle f'(x)=0.}
Sum rule:
′
+
{\displaystyle \alpha }
and
{\displaystyle \beta }
.Product rule:
(
{\displaystyle (fg)'=f'g+fg'}
for all functions f and g. As a special case, this rule includes the fact
f
)
whenever
{\displaystyle \alpha }
is a constant, because
f
0
′
f
for all functions f and g at all inputs where g ≠ 0.Chain rule for composite
functions: If
(
x
{\displaystyle f(x)=h(g(x))}
, then
′
(
Computation example
The derivative of the function given by
)
x
sin
ln
x
+
is
(
4
cos
(
ln
d
x
ln
)
d
cos
(
ln
e
x
Here the second term was computed using the chain rule and third using the product
rule. The known derivatives of the elementary functions x2, x4, sin(x), ln(x) and
exp(x) = ex, as well as the constant 7, were also used.
In higher dimensions
Vector-valued functions
A vector-valued function y of a real variable sends real numbers to vectors in some
vector space Rn. A vector-valued function can be split up into its coordinate
functions y1(t), y2(t), ..., yn(t), meaning that y(t) = (y1(t), ..., yn(t)). This
includes, for example, parametric curves in R2 or R3. 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,
′
(
)
.
Equivalently,
lim
0
y
{\displaystyle \mathbf {y} '(t)=\lim _{h\to 0}{\frac {\mathbf {y} (t+h)-\mathbf {y}
(t)}{h}},}
If e1, ..., en is the standard basis for Rn, then y(t) can also be written as
y1(t)e1 + … + yn(t)en. If we assume that the derivative of a vector-valued function
retains the linearity property, then the derivative of y(t) must be
y
(
t
Partial derivatives
Suppose that f is a function that depends on more than one variable—for instance,
x
2
{\displaystyle f(x,y)=x^{2}+xy+y^{2}.}
)
f
{\displaystyle f(x,y)=f_{x}(y)=x^{2}+xy+y^{2}.}
In other words, every value of x chooses a function, denoted fx, which is a
function of one real number. That is,
)
x
{\displaystyle f_{x}(y)=x^{2}+xy+y^{2}.}
a
(
{\displaystyle f_{a}(y)=a^{2}+ay+y^{2}.}
{\displaystyle f_{a}'(y)=a+2y.}
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:
∂
f
a
n
lim
a
i
a
i
In the above difference quotient, all the variables except xi are held fixed. That
choice of fixed values determines a function of one variable
f
a
,
a
,
a
n
)
and, by definition,
a
i
d
x
i
(
(
∂
n
)
1
,
Directional derivatives
If f is a real-valued function on Rn, 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
v
(
D
v
lim
x
+
)
k
(
x
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, Dv(f) = λDu(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:
v
f
∂
f
The same definition also works when f is a function with values in Rm. The above
definition is applied to each component of the vectors. In this case, the
directional derivative is a vector in Rm.
(
a
.
{\displaystyle f(\mathbf {a} +\mathbf {v} )\approx f(\mathbf {a} )+f'(\mathbf
{a} )\mathbf {v} .}
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
Rn while the other terms would be vectors in Rm, 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 Rn to vectors in Rm, 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
a
)
+
v
w
)
′
(
{\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} .}
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:
f
(
a
+
v
+
a
)
)
≈
)
v
This suggests that f ′(a) is a linear transformation from the vector space Rn to
the vector space Rm. 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 Rm while the denominator lies in the domain Rn.
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
lim
−
(
0.
This is equivalent to
lim
h
′
(
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.
(
a
‖
0.
{\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.}
Here h is a vector in Rn, so the norm in the denominator is the standard length on
Rn. However, f′(a)h is a vector in Rm, and the norm in the numerator is the
standard length on Rm. 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 = (f1, f2, ..., fm), 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:
Jac
a
(
j
)
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
(
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 kth 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 Rp. The kth order total derivative may be
interpreted as a map
D
k
n
×
−
a
⋯
f
(
D
⋯
f
i
−
f
)
k
−
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.
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.
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
Notes
References
Bibliography
Print
Online books
External links
"Derivative", Encyclopedia of Mathematics, EMS Press, 2001 [1994]