Derivative (multivariable calculus)

From testwiki
Jump to navigation Jump to search

Template:Short description Script error: No such module "sidebar".

In mathematics, the derivative of a function at a point is the linear part of the best affine approximation to the function near the point. In one-variable calculus, this is the tangent line approximation. In multivariable calculus, the same property is generalized to define the derivative of a vector-valued function or function of a vector argument. Sometimes called the total derivative, in contrast with partial derivatives, the derivative approximates the function with respect to all of its arguments, not just a single one.Template:Sfn In many situations, this is the same as considering all partial derivatives simultaneously.

In functional analysis, particularly in infinite dimensions, the derivative in this sense is called the Fréchet derivative.Template:SfnTemplate:Sfn

Derivative as a linear map

Let U⊆ℝn be an open subset. Then a function f:U→ℝm is said to be differentiable at a point a∈U if there exists a linear transformation Dfa:ℝn→ℝm such thatTemplate:SfnTemplate:Sfn

limx→af(x)−f(a)−Dfa(x−a)‖x−a‖=0

where ‖…‖ denotes the norm of …. The linear map Dfa is called the derivative or differential of f at a.Template:SfnTemplate:Sfn Here Dfa(x−a) refers to applying the linear transformation Dfa to the vector (x−a); in coordinates, this is a matrix-vector product. Other notations for the derivative include Daf and Df(a). A function is differentiable if its derivative exists at every point in its domain.

Conceptually, the definition of the derivative expresses the idea that Dfa is the best linear approximation to f(a+h)−f(a) for small h. This can be made precise by quantifying the error in the linear approximation Dfa. To do so, write

f(a+h)=f(a)+Dfa(h)+ε(h),

where ε(h) equals the error in the approximation. To say that the derivative of f at a is Dfa is equivalent to the statement

ε(h)=o(h),

where o is little-o notation and means that ε(h)/‖h‖ tends to zero as h→0. The derivative Dfa is the unique linear transformation for which the error term is this small, and this is the sense in which it is the best linear approximation to f(a+h)−f(a).

Differentiability

Plot of x2yx4+y2x2+y2, a function such that the directional derivative ∇uf(0,0)=0, a linear functional of u, but which is not differentiable

The function f is differentiable if and only if each of its components fi:U→ℝ is differentiable, so when studying derivatives, it is often possible to work one coordinate at a time in the codomain. However, the same is not true of the coordinates in the domain. It is true that if f is differentiable at a, then each partial derivative ∂f/∂xi exists at a.Template:Sfn

The converse does not hold: it can happen that all of the partial derivatives of f at a exist, but f is not differentiable at a.Template:Sfn An example is the following function, which is continuous and has both partial derivatives zero at the origin, but is not differentiable there: f(x,y)={xyx2+y2(x,y)≠(0,0)0(x,y)=(0,0). (In polar coordinates, this function is f=rcos⁡θsin⁡θ.)

Even the existence and linearity of all directional derivatives at a point is not sufficient for differentiability; the essential additional requirement is that the linear approximation hold uniformly as the increment tends to zero from all directions. An example is f(x,y)={x2yx4+y2x2+y2(x,y)≠(0,0)0(x,y)=(0,0) whose directional derivatives are all 0 at (0,0), but which fails to be differentiable there.

However, if all the partial derivatives of f at a exist in a neighborhood of a and are continuous at a, then f is differentiable at a.Template:Sfn If f is differentiable at a point, then the derivative of f is the linear transformation corresponding to the Jacobian matrix of partial derivatives at the point.Template:Sfn

Differentials

In some advanced calculus texts, the derivative is also called the differential.Template:SfnTemplate:Sfn However, this term has several different, but closely connected meanings, in mathematics and the sciences.

When a differentiable function f:ℝn→ℝ is scalar valued, the derivative of f at a may be written as the Jacobian matrix, which in this instance is a row matrix (a matrix consisting of elements in a single row, i.e., a row vector):

Dfa=[∂f∂x1(a)⋯∂f∂xn(a)].

The linear approximation property of the derivative implies that if

Δx=[Δx1⋯Δxn]𝖳

is a small vector (where the 𝖳 denotes transpose, so that this vector is a column vector), then

f(a+Δx)−f(a)≈DfaΔx=∑i=1n∂f∂xi(a)Δxi.

Heuristically, this suggests that if dx1,…,dxn are infinitesimal increments in the coordinate directions, then

dfa=∑i=1n∂f∂xi(a)dxi

and this is the differential of f at a.Template:SfnTemplate:Sfn In fact, the notion of the infinitesimal, which is merely symbolic here, can be equipped with extensive mathematical structure. Techniques, such as the theory of differential forms, effectively give analytical and algebraic descriptions of objects like infinitesimal increments, dxi. For instance, dxi may be inscribed as a linear functional on the vector space ℝn. Evaluating dxi at a vector h in ℝn measures how much h points in the i-th coordinate direction. The differential dfa is a linear combination of linear functionals and hence is itself a linear functional. The evaluation dfa(h) is the directional derivative of f along h. This point of view makes the derivative an instance of the exterior derivative.Template:Sfn

Being a linear form, the differential is naturally a covector. In a Euclidean space, a covector is naturally dual to a vector (its transpose). This vector is called the gradient of f, and points in the direction in which f increases most rapidly.

Suppose now that f is a vector-valued function, that is, f:ℝn→ℝm. In this case, the components fi of f are real-valued functions, so they have associated differential forms dfi. The differential df amalgamates these forms into a single object and is therefore an instance of a vector-valued differential form.

If f:M→N is a mapping between differentiable manifolds, differentiability can be formulated by differentiability in any coordinate chart. Invariantly, the differential of f at a point p∈M is a linear map dfp:TpM→Tf(p)N from the tangent space of M at p to that of N at f(p).Template:SfnTemplate:Sfn This is also known as the pushforward. This is closely related to the derivative as a linear approximation, since evaluating dfp on a tangent vector gives the directional derivative of f in that direction. Nevertheless, the differential is not quite the same thing as the derivative of a function between vector spaces: f is a mapping of manifolds and not of the vector spaces TpM and Tf(p)N where the linear approximation lives.

In applications such as thermodynamics, the language of differentials often has an additional conceptual role. Expressions such as dU=TdS−PdV describe differentials of state functions and lead to questions about exactness, natural variables, and relations among partial derivatives. This use is related to the derivative of a multivariable function, but it is not just another name for the linear map Dfa associated with an ordinary function.Template:SfnTemplate:Sfn

Total derivative

The term total derivative is also used in more than one way. In some mathematical texts it denotes the full derivative Dfa, as opposed to any one partial derivative. In that sense, the total derivative is the linear map that accounts for variation in all coordinate directions simultaneously.

In many applied contexts, however, "total derivative" refers instead to the derivative of a composite dependence. For example, if

z=f(x,y),x=x(t),y=y(t),

then the total derivative of z with respect to t is

dzdt=∂f∂xdxdt+∂f∂ydydt.

This is the ordinary derivative of the composite function f(x(t),y(t)), computed by the chain rule. Equivalently, it is obtained by applying the derivative of f to the velocity vector of the path t↦(x(t),y(t)):

ddtf(x(t),y(t))=Df(x(t),y(t))(x′(t),y′(t)).

This chain-rule sense of "total derivative" is common in physics, engineering, economics, and other applied fields. In mechanics, for instance, the total time derivative of a function F(q,p,t) along a trajectory includes both explicit dependence on t and implicit dependence through the time-dependent variables q(t) and p(t). In fluid mechanics, related terminology appears in the material derivative, which differentiates a quantity along the motion of a fluid parcel.Template:SfnTemplate:Sfn

Another example is in classical mechanics, where the total derivative of a function that depends on phase space parameters and time is its partial derivative in time plus its Poisson bracket with the Hamiltonian H:Template:Sfn dfdt=∂f∂t+{f,H} Like the material derivative, total derivative in mechanics has the property that it is the derivative of the composite when pulled back to any Hamiltonian trajectory, but is still treated as a function of all phase space coordinates and time.

In comparative statics, total derivatives often describe how endogenous variables change with respect to exogenous variables in an implicitly defined system of equations.Template:Sfn The endogeneous variables are generally not explicit functions of the exogeneous variables, other than through the implicit function theorem, and the total derivative is handled implicitly.

Thus, although "total derivative" can mean the derivative Dfa in the sense above, the term also commonly refers to a derivative along a specified dependence or process. This ambiguity is one reason to distinguish between the derivative as a linear map and the various differential or total-derivative notations used in applications.

Chain rule

Template:Main

A form of the chain rule generalizes from one-variable calculus. It says that, for two functions f and g, the derivative of the composite function f∘g at a satisfies

D(f∘g)a=Dfg(a)∘Dga

where the composite on the right-hand side is the composition of linear maps. If the derivatives of f and g are identified with their Jacobian matrices, then the composite on the right-hand side is simply matrix multiplication.

Example: Differentiation with direct dependencies

Suppose that f is a function of two variables, x and y. If these two variables are independent, so that the domain of f is ℝ2, then the behavior of f may be understood in terms of its partial derivatives in the x and y directions. However, in some situations, x and y may be dependent. For example, it might happen that f is constrained to a curve y=y(x). In this case, we are actually interested in the behavior of the composite function f(x,y(x)). The partial derivative of f with respect to x does not give the true rate of change of f with respect to changing x because changing x necessarily changes y, while the partial derivative assumes y is fixed. However, the chain rule takes such dependencies into account. Write γ(x)=(x,y(x)). Then, the chain rule says

D(f∘γ)x0=Df(x0,y(x0))∘Dγx0.

By expressing the derivative using Jacobian matrices such asDf(x0,y(x0))=[∂f∂x∂f∂y](x0,y(x0))Dγx0=[∂x∂x∂y∂x]x0.This becomes:

df(x,y(x))dx(x0)=∂f∂x(x0,y(x0))dxdx(x0)+∂f∂y(x0,y(x0))dydx(x0).

Suppressing the evaluation at x0 for legibility, we may also write this as

df(x,y(x))dx=∂f∂xdxdx+∂f∂ydydx.

This gives a straightforward formula for the derivative of f(x,y(x)) in terms of the partial derivatives of f and the derivative of y(x).

For example, suppose

f(x,y)=xy.

The rate of change of f with respect to x is usually the partial derivative of f with respect to x; in this case,

∂f∂x=y.

However, if y depends on x, the partial derivative does not give the true rate of change of f as x changes because the partial derivative assumes that y is fixed. Suppose we are constrained to the line

y=x.

Then

f(x,y)=f(x,x)=x2,

and the total derivative of f with respect to x is

dfdx=2x,

which we see is not equal to the partial derivative ∂f/∂x. Instead of immediately substituting for y in terms of x, however, we can also use the chain rule as above:

dfdx=∂f∂x+∂f∂ydydx=y+x⋅1=x+y=2x.

Example: Differentiation with indirect dependencies

While one can often perform substitutions to eliminate indirect dependencies, the chain rule provides for a more efficient and general technique. Suppose L(t,x1,…,xn) is a function of time t and n variables xi which themselves depend on time. Then, the time derivative of L is

dLdt=ddtL(t,x1(t),…,xn(t)).

The chain rule expresses this derivative in terms of the partial derivatives of L and the time derivatives of the functions xi:

dLdt=∂L∂t+∑i=1n∂L∂xidxidt=(∂∂t+∑i=1ndxidt∂∂xi)(L).

This expression is often used in physics for a gauge transformation of the Lagrangian, as two Lagrangians that differ only by the total time derivative of a function of time and the n generalized coordinates lead to the same equations of motion. An interesting example concerns the resolution of causality concerning the Wheeler–Feynman time-symmetric theory. The operator in brackets (in the final expression above) is also called the total derivative operator (with respect to t).

For example, the total derivative of f(x(t),y(t)) is

dfdt=∂f∂xdxdt+∂f∂ydydt.

Here there is no ∂f/∂t term since f itself does not depend on the independent variable t directly.

Total differential equation

Template:Main

A total differential equation is a differential equation expressed in terms of total derivatives. Since the exterior derivative is coordinate-free, in a sense that can be given a technical meaning, such equations are intrinsic and geometric.

Application to equation systems

In economics, it is common for the total derivative to arise in the context of a system of equations.[1]Template:Rp For example, a simple supply-demand system might specify the quantity q of a product demanded as a function D of its price p and consumers' income I, the latter being an exogenous variable, and might specify the quantity supplied by producers as a function S of its price and two exogenous resource cost variables r and w. The resulting system of equations

q=D(p,I),
q=S(p,r,w),

determines the market equilibrium values of the variables p and q. The total derivative dp/dr of p with respect to r, for example, gives the sign and magnitude of the reaction of the market price to the exogenous variable r. In the indicated system, there are a total of six possible total derivatives, also known in this context as comparative static derivatives: Template:Math, Template:Math, Template:Math, Template:Math, Template:Math, and Template:Math. The total derivatives are found by totally differentiating the system of equations, dividing through by, say Template:Math, treating Template:Math and Template:Math as the unknowns, setting Template:Math, and solving the two totally differentiated equations simultaneously, typically by using Cramer's rule.

See also

References

Template:Reflist

Notes

Template:Reflist

Template:Analysis in topological vector spaces