Differentiation

Partial Differentiation of Real-Valued Functions

let f:DRnR be a real valued function, xj,hR

fxj=limh0f(x1,x2,,xj+h,,xn)f(x1,,xn)h=limh0f(x+hej^)f(x)hxD

Gradient

f(x0)=[fx1fxn]

C1

A real-valued function is called C1 at x0 if all partial derivatives fxj exist and are continuous at x0

Iterated Partial Derivatives

A function is C2 if all partial derivatives of fxj exist and are continuous or:

2fxj2 exist and are continuous.

A function f:RnR is Ck if all partial derivatives of k-th order of f exist and are continuous.

Clairaut's Theorem

if f:RnR is C2 then:

2fxy=2fyx

The same idea holds for higher order Ck

Differentiability of Vector-Valued Functions

Let f be a vector-valued function where f:DRnRm
f is differentiable at x0D if all the partial derivatives of the component functions of f exist at x0 and there exists a linear transformation T:RnRm such that:

limxx0||f(x)f(x0)T(xxo)||||xx0||=0

Put otherwise:
f is differentiable if the partial derivatives are C1 at x0

Jacobian

The Jacobian, which can be denoted Jf, Df(x0), or f(x0) is such a linear transformation.

Df(x0)=[f1x1f1xnfmxnfmxn]

Where fi are the component functions.

The Derivative

If If f is C1 at x0, the derivative f:RnRm  at a point x0, applied to a vector vRn , is given by:

vDf(x0)v,

If f is vector-valued function then Df(x0) the Jacobian matrix of f  at x0.
If f is real-valued the Df(x0) is the Gradient of f at x0

Properties of the Derivative

Let f:RnRm be differentiable at x0

Constant Multiple Rule

cR

D(cf)(x0)=c(Df)(x0)
Sum Rule

let g:RnRm be differentiable at x0

Then h(x)=g(x)+f(x) is differentiable at x0 where:

Dh(x0)=Dg(x0)+Df(x0)
Product Rule

let g:RmR be differentiable at x0Rn and h=gf so that h:RnRm.
h is therefore differentiable at x0 where:

Dh(x0)v=g(x0)Df(x0)v+Dg(x0)vf(x0)vRn

is the derivative of h

Quotient Rule

Let f:RnR and g:RnR{0} be differentiable at x0 and h=fg.
h is therefore differentiable at x0 where:

Dh(x0)=g(x0)Df(x0)f(x0)Dg(x0)[g(x0)]2
Chain Rule

Let URn and VRm be open sets.
Let g:URm and f:VRk

D(fg)(x0)=Df(g(x0))Dg(x0)

Tangent Plane Real Valued-Function

If f is a real valued function such that f:UR2R where U is open. If f is C1 at (x0,y0)U

The tangent plane of the graph of f is:

z=Df(x0,y0)[xx0yy0]+f(x0,y0)

Linear Approximation/First-Order Taylor Expansion

if f:DRnRm is differentiable at x0D then for a given ϵ>0 there exists some neighbourhood U around x0 so that xU then ||f(x)Df(x0)xf(x0)||<ϵ

Therefore we can approximate f as:

f(x0)=Df(x0)(xx0)+f(x0)

Hessian

Let f:RnR be C2

Hf=[2fx122fx1x22fx1xn2fx2x12fx222fx2xn2fxnx12fxnx22fxn2]

Second-Order Taylor Expansion

if f:RnR is C2 at x0
The second-order Taylor expansion is:

f(x0)f(x0)+f(x0)(xx0)+12(xx0)Hf(x0)(xx0),