Derivative Explained

Derivative should not be confused with Derivation (differential algebra).

In mathematics, the derivative is a fundamental tool that quantifies the sensitivity of change of a function's output with respect to its input. 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. The process of finding a derivative is called differentiation.

There are multiple different notations for differentiation, two of the most commonly used being Leibniz notation and prime notation. Leibniz notation, named after Gottfried Wilhelm Leibniz, is represented as the ratio of two differentials, whereas prime notation is written by adding a prime mark. Higher order notations represent repeated differentiation, and they are usually denoted in Leibniz notation by adding superscripts to the differentials, and in prime notation by adding additional prime marks. The higher order derivatives can be applied in physics; for example, while the first derivative of the position of a moving object with respect to time is the object's velocity, how the position changes as time advances, the second derivative is the object's acceleration, how the velocity changes as time advances.

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.

Definition

As a limit

f(x)

is differentiable at a point

a

of its domain, if its domain contains an open interval containing

a

, and the limitL=\lim_\frach exists. This means that, for every positive real number

\varepsilon

, there exists a positive real number

\delta

such that, for every

h

such that

|h|<\delta

and

h\ne0

then

f(a+h)

is defined, and \left|L-\frach\right|<\varepsilon,where the vertical bars denote the absolute value. This is an example of the (ε, δ)-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

. Multiple notations for the derivative exist. The derivative of

f

at

a

can be denoted

f'(a)

, read as "

f

prime of

a

"; or it can be denoted \frac(a), read as "the derivative of

f

with respect to

x

at

a

" or "

df

by (or over)

dx

at

a

". See below. If

f

is a function that has a derivative at every point in its domain, then a function can be defined by mapping 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

. The function

f

sometimes 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

.

For example, let

f

be the squaring function:

f(x)=x2

. Then the quotient in the definition of the derivative is\frac = \frac = \frac = 2a + h.The division in the last step is valid as long as

h0

. The closer

h

is to

0

, the closer this expression becomes to the value

2a

. The limit exists, and for every input

a

the limit is

2a

. So, the derivative of the squaring function is the doubling function:

f'(x)=2x

.

The ratio in the definition of the derivative is the slope of the line through two points on the graph of the function

f

, specifically the points

(a,f(a))

and

(a+h,f(a+h))

. As

h

is made smaller, these points grow closer together, and the slope of this line approaches the limiting value, the slope of the tangent to the graph of

f

at

a

. In other words, the derivative is the slope of the tangent.

Using infinitesimals

One way to think of the derivative \frac(a) is as the ratio of an infinitesimal change in the output of the function

f

to an infinitesimal change in its input. In order to make this intuition rigorous, a system of rules for manipulating infinitesimal quantities is required. The system of hyperreal numbers is a way of treating infinite and infinitesimal quantities. The hyperreals are an extension of the real numbers that contain numbers greater than anything of the form

1+1++1

for any finite number of terms. Such numbers are infinite, and their reciprocals are infinitesimals. The application of hyperreal numbers to the foundations of calculus is called nonstandard analysis. This provides a way to define the basic concepts of calculus such as the derivative and integral in terms of infinitesimals, thereby giving a precise meaning to the

d

in the Leibniz notation. Thus, the derivative of

f(x)

becomes f'(x) = \operatorname\left(\frac \right) for an arbitrary infinitesimal

dx

, where

\operatorname{st}

denotes the standard part function, which "rounds off" each finite hyperreal to the nearest real. Taking the squaring function

f(x)=x2

as an example again, \begin f'(x) &= \operatorname\left(\frac\right) \\ &= \operatorname\left(\frac\right) \\ &= \operatorname\left(\frac + \frac\right) \\ &= \operatorname\left(2x + dx\right) \\ &= 2x.\end

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

. The function

f

cannot have a derivative at

a

. If

h

is negative, then

a+h

is on the low part of the step, so the secant line from

a

to

a+h

is very steep; as

h

tends to zero, the slope tends to infinity. If

h

is positive, then

a+h

is on the high part of the step, so the secant line from

a

to

a+h

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

f(x)=|x|

is continuous at

x=0

, 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

x=0

. Even a function with a smooth graph is not differentiable at a point where its tangent is vertical: For instance, the function given by

f(x)=x1/3

is not differentiable at

x=0

. 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 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. Informally, this means that hardly any random continuous functions have a derivative at even one point.[1]

Notation

dy

and

dx

, which were introduced by Gottfried Wilhelm Leibniz in 1675. It is still commonly used when the equation

y=f(x)

is viewed as a functional relationship between dependent and independent variables. The first derivative is denoted by \frac , read as "the derivative of

y

with respect to

x

". This derivative can alternately be treated as the application of a differential operator to a function, \frac = \frac f(x). Higher derivatives are expressed using the notation \frac for the

n

-th derivative of

y=f(x)

. These are abbreviations for multiple applications of the derivative operator; for example, \frac = \frac\Bigl(\frac f(x)\Bigr). Unlike some alternatives, Leibniz notation involves explicit specification of the variable for differentiation, in the denominator, which removes ambiguity when working with multiple interrelated quantities. The derivative of a composed function can be expressed using the chain rule: if

u=g(x)

and

y=f(g(x))

then \frac = \frac \cdot \frac.[2]

Another common notation for differentiation is by using the prime mark in the symbol of a function

f(x)

. This is known as prime notation, due to Joseph-Louis Lagrange. The first derivative is written as

f'(x)

, read as "

f

prime of

x

", or

y'

, read as "

y

prime". Similarly, the second and the third derivatives can be written as

f''

and

f'''

, respectively. For denoting the number of higher derivatives beyond this point, some authors use Roman numerals in superscript, whereas others place the number in parentheses, such as

fiv

or

f(4).

The latter notation generalizes to yield the notation

f(n)

for the th derivative of

f

.

In Newton's notation or the dot notation, a dot is placed over a symbol to represent a time derivative. If

y

is a function of

t

, then the first and second derivatives can be written as
y
and

\ddot{y}

, respectively. 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. However, the dot notation becomes unmanageable for high-order derivatives (of order 4 or more) and cannot deal with multiple independent variables.

Another notation is D-notation, which represents the differential operator by the symbol

D.

The first derivative is written

Df(x)

and higher derivatives are written with a superscript, so the

n

-th derivative is

Dnf(x).

This notation is sometimes called Euler notation, although it seems that Leonhard Euler did not use it, and the notation was introduced by Louis François Antoine Arbogast. To indicate a partial derivative, the variable differentiated by is indicated with a subscript, for example given the function

u=f(x,y),

its partial derivative with respect to

x

can be written

Dxu

or

Dxf(x,y).

Higher partial derivatives can be indicated by superscripts or multiple subscripts, e.g. D_ f(x,y) = \frac \Bigl(\frac f(x,y) \Bigr) and D_^2 f(x,y) = \frac \Bigl(\frac f(x,y) \Bigr).

Rules of computation

See main article: Differentiation rules. In principle, the derivative of a function can be computed from the definition by considering the difference quotient and computing its limit. 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. This process of finding a derivative is known as differentiation.

Rules for basic functions

The following are the rules for the derivatives of the most common basic functions. Here,

a

is a real number, and

e

is the mathematical constant approximately .[3]
d
dx

xa=axa-1

d
dx

ex=ex

d
dx

ax=axln(a)

, for

a>0

d
dx

ln(x)=

1
x

, for

x>0

d
dx

loga(x)=

1
xln(a)

, for

x,a>0

d
dx

\sin(x)=\cos(x)

d
dx

\cos(x)=-\sin(x)

d
dx

\tan(x)=\sec2(x)=

1
\cos2(x)

=1+\tan2(x)

d
dx

\arcsin(x)=

1
\sqrt{1-x2
} , for

-1<x<1

d
dx

\arccos(x)=-

1
\sqrt{1-x2
} , for

-1<x<1

d
dx

\arctan(x)=

1
{1+x2
}

Rules for combined functions

Given that the

f

and

g

are the functions. The following are some of the most basic rules for deducing the derivative of functions from derivatives of basic functions.[4]

f

is constant, then for all

x

,

f'(x)=0.

(\alphaf+\betag)'=\alphaf'+\betag'

for all functions

f

and

g

and all real numbers

\alpha

and

\beta

.

(fg)'=f'g+fg'

for all functions

f

and

g

. As a special case, this rule includes the fact

(\alphaf)'=\alphaf'

whenever

\alpha

is a constant because

\alpha'f=0f=0

by the constant rule.
\left(f
g

\right)'=

f'g-fg'
g2
for all functions

f

and

g

at all inputs where .

f(x)=h(g(x))

, then

f'(x)=h'(g(x))g'(x).

Computation example

The derivative of the function given by

f(x)=x4+\sin\left(x2\right)-ln(x)ex+7

is \begin f'(x) &= 4 x^+ \frac\cos \left(x^2\right) - \frac e^x - \ln(x) \frac + 0 \\ &= 4x^3 + 2x\cos \left(x^2\right) - \frac e^x - \ln(x) e^x.\end Here the second term was computed using the chain rule and the third term 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.

Higher-order derivatives

Higher order derivatives means that a function is differentiated repeatedly. Given that

f

is a differentiable function, the derivative of

f

is the first derivative, denoted as

f'

. The derivative of

f'

is the second derivative, denoted as

f''

, and the derivative of

f''

is the third derivative, denoted as

f'''

. By continuing this process, if it exists, the th derivative as the derivative of the th derivative or the derivative of order

n

. As has been discussed above, the generalization of derivative of a function

f

may be denoted as

f(n)

. A function that has

k

successive derivatives is called

k

times differentiable
. If the th derivative is continuous, then the function is said to be of differentiability class

Ck

. A function that has infinitely many derivatives is called infinitely differentiable or smooth. One example of the infinitely differentiable function is polynomial; differentiate this function repeatedly results the constant function, and the infinitely subsequent derivative of that function are all zero.

In one of its applications, the higher-order derivatives may have specific interpretations in physics. Suppose that a function represents the position of an object at the time. The first derivative of that function is the velocity of an object with respect to time, the second derivative of the function is the acceleration of an object with respect to time, and the third derivative is the jerk.

In other dimensions

See also: Vector calculus and Multivariable calculus.

Vector-valued functions

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=(y1(t),y2(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, \mathbf'(t)=\lim_\frac, 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.

Partial derivatives

See main article: Partial derivative. Functions can depend upon more than one variable. A partial derivative of a function of several variables is its derivative with respect to one of those variables, with the others held constant. Partial derivatives are used in vector calculus and differential geometry. As with ordinary derivatives, multiple notations exist: the partial derivative of a function

f(x,y,...)

with respect to the variable

x

is variously denoted byamong other possibilities. It can be thought of as the rate of change of the function in the

x

-direction. 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". For example, let

f(x,y)=x2+xy+y2

, then the partial derivative of function

f

with respect to both variables

x

and

y

are, respectively: \frac = 2x + y, \qquad \frac = x + 2y.In general, the partial derivative of a function

f(x1,...,xn)

in the direction

xi

at the point

(a1,...,an)

is defined to be:\frac(a_1,\ldots,a_n) = \lim_\frac.

This is fundamental for the study of the functions of several real variables. Let

f(x1,...,xn)

be such a real-valued function. If all partial derivatives

f

with respect to

xj

are defined at the point

(a1,...,an)

, these partial derivatives define the vector\nabla f(a_1, \ldots, a_n) = \left(\frac(a_1, \ldots, a_n), \ldots, \frac(a_1, \ldots, a_n)\right),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

\nablaf

that maps the point

(a1,...,an)

to the vector

\nablaf(a1,...,an)

. Consequently, the gradient determines a vector field.

Directional derivatives

See main article: Directional derivative.

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

and

y

direction. However, they do not 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=(v1,\ldots,vn)

, then the directional derivative of

f

in the direction of

v

at the point

x

is: D_(\mathbf) = \lim_.

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: D_(\mathbf) = \sum_^n v_j \frac.

Total derivative, total differential and Jacobian matrix

See main article: Total derivative.

When

f

is a function from an open subset of

\Rn

to

\Rm

, then the directional derivative of

f

in a chosen direction is the best linear approximation to

f

at that point and in that direction. However, 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:f(\mathbf + \mathbf) \approx f(\mathbf) + f'(\mathbf)\mathbf.Similarly with the single-variable derivative,

f'(a)

is chosen so that the error in this approximation is as small as possible. The total derivative of

f

at

a

is the unique linear transformation

f'(a)\colon\Rn\to\Rm

such that\lim_ \frac = 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

.

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

f

is written 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

:f'(\mathbf) = \operatorname_ = \left(\frac\right)_.

Generalizations

See main article: Generalizations of the derivative.

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.

\C

to

\C

. The notion of the derivative of such a function is obtained by replacing real variables with complex variables in the definition. If

\C

is identified with

\R2

by writing a complex number

z

as

x+iy

, then a differentiable function from

\C

to

\C

is certainly differentiable as a function from

\R2

to

\R2

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

M

is a space that can be approximated near each point

x

by a vector space called its tangent space: the prototypical example is a smooth surface in

\R3

. The derivative (or differential) of a (differentiable) map

f:M\toN

between manifolds, at a point

x

in

M

, is then a linear map from the tangent space of

M

at

x

to the tangent space of

N

at

f(x)

. The derivative function becomes a map between the tangent bundles of

M

and

N

. This definition is used in differential geometry.

See also

References

External links

"Newton, Leibniz, and Usain Bolt"

Notes and References

  1. , cited in .
  2. In the formulation of calculus in terms of limits, various authors have assigned the

    du

    symbol various meanings. Some authors such as, p. 119 and, p. 177 do not assign a meaning to

    du

    by itself, but only as part of the symbol \frac . 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.
  3. . See p. 133 for the power rule, p. 115 - 116 for the trigonometric functions, p. 326 for the natural logarithm, p. 338 - 339 for exponential with base

    e

    , p. 343 for the exponential with base

    a

    , p. 344 for the logarithm with base

    a

    , and p. 369 for the inverse of trigonometric functions.
  4. For constant rule and sum rule, see, respectively. For the product rule, quotient rule, and chain rule, see, respectively. For the special case of the product rule, that is, the product of a constant and a function, see .
  5. . See p. 209 for the Gateaux derivative, and p. 211 for the Fréchet derivative.