Differentiable

Scaler-Valued Functions

Let f:XRf:X\mapsto \mathbb{R} be a function where XRnX\in\mathbb{R}^n is open, suppose fxj(a)f_{x_j}(\mathbf{a}) exists for j=1nj=1\dots n where aX\mathbf{a}\in X. Define

h(x)=f(a)+fx1(a)(x1a1)+fx2(a)(x2a2)++fxn(a)(xnan)h(\mathbf{x})=f(\mathbf{a})+f_{x_1}(\mathbf{a})(x_1-a_1)+f_{x_2}(\mathbf{a})(x_2-a_2)+\dots+f_{x_n}(\mathbf{a})(x_n-a_n)

i.e., h(x)h(\mathbf{x}) is the first order Taylor expension of f(x)f(\mathbf{x}).

We say that ff is differentiable at a\mathbf{a} if

limxaf(x)h(a)xa=0\lim_{\mathbf{x\to a}}\frac{f(\mathbf{x})-h(\mathbf{a})}{\Vert \mathbf{x}-\mathbf{a} \Vert}=0

Moreover, we say ff is differentiable if it is differentiable at every point in XX.

Proposition: Let aa be an interior point, if ff is differential at aa, then ff is continuous at aa.

Continuity of Partial Derivative and Differentiability

If ff has continuous partial derivatives in an open set containing a\mathbf{a}, then ff is differentiable at a\mathbf{a}

Proposition: If ff is differentiable at a\mathbf{a}, then ff is continuous at a\mathbf{a}.

Vector-Valued Functions

Define h()\boldsymbol{h}() to be the 1st order Taylor expension of f()\boldsymbol{f}() near a\boldsymbol{a}. Since it’s multi-variable, we use Jacobian Matrix

h(x)=f(a)+Df(a)(xa)\boldsymbol{h}(\boldsymbol{x})=\boldsymbol{f}(\boldsymbol{a}) + D \boldsymbol{f}(\boldsymbol{a})(\boldsymbol{x}-\boldsymbol{a})

We say f\boldsymbol{f} is differentiable at a\boldsymbol{a} if

limxaf(x)h(x)xa=0\lim_{\boldsymbol{x}\to \boldsymbol{a}} \frac{\Vert\boldsymbol{f}(\boldsymbol{x})-\boldsymbol{h}(\boldsymbol{x})\Vert}{\Vert \boldsymbol{x}-\boldsymbol{a} \Vert}=0

Gradient of f\boldsymbol{f}

Gradient of f\boldsymbol{f} at a\boldsymbol{a} is defined as

grad f(a)=f(a)=(fx1(a),fx2(a),,fxn(a))\text{grad }\boldsymbol{f}(\boldsymbol{a})=\nabla \boldsymbol{f}(\boldsymbol{a})=(\boldsymbol{f}_{x_1}(\boldsymbol{a}), \boldsymbol{f}_{x_2}(\boldsymbol{a}), \dots, \boldsymbol{f}_{x_n}(\boldsymbol{a}))