The Definition of the Total Differential and Differentiability

The Definition of the Total Differential

Total differential

Suppose the function z=f(x,y)z = f(x, y) is defined in some neighbourhood of the point (x0,y0)(x_0, y_0). If the total increment of the function at the point (x0,y0)(x_0, y_0),

Δz=f(x0+Δx,y0+Δy)−f(x0,y0)\Delta z = f(x_0 + \Delta x, y_0 + \Delta y) - f(x_0, y_0)

can be written as

Δz=AΔx+BΔy+o(ρ)\Delta z = A\Delta x + B\Delta y + o(\rho)

where A,BA, B do not depend on Δx,Δy\Delta x, \Delta y and ρ=(Δx)2+(Δy)2\rho = \sqrt{(\Delta x)^2 + (\Delta y)^2}, then the function z=f(x,y)z = f(x, y) is called differentiable at the point (x0,y0)(x_0, y_0), and AΔx+BΔyA\Delta x + B\Delta y is called the total differential of the function at that point, written

dz=AΔx+BΔyordf=AΔx+BΔydz = A\Delta x + B\Delta y \quad \text{or} \quad df = A\Delta x + B\Delta y

The total differential is the principal linear part of the total increment; as ρ→0\rho \to 0, Δz−dz=o(ρ)\Delta z - dz = o(\rho) is an infinitesimal of higher order than ρ\rho.

The Expression of the Total Differential

Theorem1

The necessary condition for differentiability: if the function z=f(x,y)z = f(x, y) is differentiable at the point (x,y)(x, y), then the partial derivatives ∂z∂x\frac{\partial z}{\partial x} and ∂z∂y\frac{\partial z}{\partial y} at that point necessarily exist, and

A=∂z∂x,B=∂z∂yA = \frac{\partial z}{\partial x}, \quad B = \frac{\partial z}{\partial y}

Hence the total differential is:

dz=∂z∂xdx+∂z∂ydydz = \frac{\partial z}{\partial x} dx + \frac{\partial z}{\partial y} dy

where dx=Δxdx = \Delta x and dy=Δydy = \Delta y are the differentials of the independent variables.

Similarly, the total differential of a function of three variables u=f(x,y,z)u = f(x, y, z) is:

du=∂u∂xdx+∂u∂ydy+∂u∂zdzdu = \frac{\partial u}{\partial x} dx + \frac{\partial u}{\partial y} dy + \frac{\partial u}{\partial z} dz

The Sufficient Condition for Differentiability

Theorem2

The sufficient condition for differentiability: if the partial derivatives ∂z∂x\frac{\partial z}{\partial x} and ∂z∂y\frac{\partial z}{\partial y} of the function z=f(x,y)z = f(x, y) exist in some neighbourhood of the point (x,y)(x, y) and these two partial derivatives are continuous at the point (x,y)(x, y), then the function is differentiable at that point.

The Relation between Differentiability, the Partial Derivatives and Continuity

Worked Examples

Example 1: Computing the Total Differential

Find the total differential of z=x2y+y2z = x^2 y + y^2.

the total differentialpartial derivativescomputation

Approach:

The total differential is obtained by multiplying each partial derivative by the corresponding increment and adding.

Steps:

  1. ∂z∂x=2xy\frac{\partial z}{\partial x} = 2xy
  2. ∂z∂y=x2+2y\frac{\partial z}{\partial y} = x^2 + 2y
  3. dz=2xy dx+(x2+2y) dydz = 2xy \, dx + (x^2 + 2y) \, dy

Answer: dz=2xy dx+(x2+2y) dydz = 2xy \, dx + (x^2+2y) \, dy

Example 2: Discussing Differentiability

Discuss the differentiability of f(x,y)={x2yx2+y2,(x,y)≠(0,0)0,(x,y)=(0,0)f(x,y) = \begin{cases} \frac{x^2 y}{x^2+y^2}, & (x,y)\neq(0,0) \\ 0, & (x,y)=(0,0) \end{cases} at (0,0)(0,0).

differentiabilitythe definitionthe partial derivatives existdifferentiable but the partial derivatives are not continuous

Approach:

Differentiability has to be tested with the linear representation of the increment; merely looking at whether the partial derivatives exist is not enough.

Steps:

  1. The partial derivatives: fx(0,0)=lim⁡Δx→0f(Δx,0)−0Δx=0f_x(0,0) = \lim_{\Delta x\to0} \frac{f(\Delta x,0)-0}{\Delta x} = 0, and similarly fy(0,0)=0f_y(0,0) = 0
  2. Verifying differentiability with the definition: Δz−fxΔx−fyΔy=(Δx)2Δy(Δx)2+(Δy)2\Delta z - f_x\Delta x - f_y\Delta y = \frac{(\Delta x)^2 \Delta y}{(\Delta x)^2+(\Delta y)^2}
  3. ∣(Δx)2Δy(Δx)2+(Δy)2∣≤(Δx)2+(Δy)22⋅∣Δy∣(Δx)2+(Δy)2=∣Δy∣2≤ρ2→0\left|\frac{(\Delta x)^2 \Delta y}{(\Delta x)^2+(\Delta y)^2}\right| \leq \frac{(\Delta x)^2+(\Delta y)^2}{2} \cdot \frac{|\Delta y|}{(\Delta x)^2+(\Delta y)^2} = \frac{|\Delta y|}{2} \leq \frac{\rho}{2} \to 0
  4. Hence lim⁡ρ→0Δz−0ρ=0\lim_{\rho\to0} \frac{\Delta z - 0}{\rho} = 0, and the function is differentiable at (0,0)(0,0).
  5. One can verify that the partial derivatives are not continuous at (0,0)(0,0) (the limit of fxf_x at the origin does not exist).

Answer: the function is differentiable at (0,0)(0,0), but the partial derivatives are not continuous there. This shows that continuity of the partial derivatives is only a sufficient condition for differentiability, not a necessary one.

Example 3: The Total Differential of a Function of Three Variables

Find the total differential of u=ln⁡(x2+y2+z2)u = \ln(x^2 + y^2 + z^2).

the total differentiala function of three variablespartial derivatives

Approach:

The three-variable case is just the three partial derivatives multiplied by the three increments and added.

Steps:

  1. ∂u∂x=2xx2+y2+z2\frac{\partial u}{\partial x} = \frac{2x}{x^2+y^2+z^2}
  2. ∂u∂y=2yx2+y2+z2\frac{\partial u}{\partial y} = \frac{2y}{x^2+y^2+z^2}
  3. ∂u∂z=2zx2+y2+z2\frac{\partial u}{\partial z} = \frac{2z}{x^2+y^2+z^2}
  4. du=2x2+y2+z2(x dx+y dy+z dz)du = \frac{2}{x^2+y^2+z^2}(x \, dx + y \, dy + z \, dz)

Answer: du=2(x dx+y dy+z dz)x2+y2+z2du = \frac{2(x\,dx+y\,dy+z\,dz)}{x^2+y^2+z^2}


Exercises

Exercise 1

Find the total differential of z=exy+sin⁡(x2+y)z = e^{xy} + \sin(x^2 + y).

the total differentialpartial derivativesa composite function

Approach:

Write down the two differential terms corresponding to the two partial derivatives directly.

Steps:

  1. ∂z∂x=yexy+2xcos⁡(x2+y)\frac{\partial z}{\partial x} = ye^{xy} + 2x\cos(x^2+y)
  2. ∂z∂y=xexy+cos⁡(x2+y)\frac{\partial z}{\partial y} = xe^{xy} + \cos(x^2+y)
  3. dz=[yexy+2xcos⁡(x2+y)]dx+[xexy+cos⁡(x2+y)]dydz = [ye^{xy}+2x\cos(x^2+y)]dx + [xe^{xy}+\cos(x^2+y)]dy

Answer: dz=[yexy+2xcos⁡(x2+y)]dx+[xexy+cos⁡(x2+y)]dydz = [ye^{xy}+2x\cos(x^2+y)]dx + [xe^{xy}+\cos(x^2+y)]dy

Exercise 2

Prove that f(x,y)=∣xy∣f(x,y) = \sqrt{|xy|} has partial derivatives at (0,0)(0,0) but is not differentiable there.

differentiabilitythe partial derivatives existnot differentiablea counterexample

Approach:

This is a counterexample of “the partial derivatives exist but the function is not differentiable”, showing that differentiability demands more than the existence of the partial derivatives.

Steps:

  1. fx(0,0)=lim⁡Δx→0∣Δx⋅0∣−0Δx=0f_x(0,0) = \lim_{\Delta x\to0} \frac{\sqrt{|\Delta x \cdot 0|}-0}{\Delta x} = 0, and similarly fy(0,0)=0f_y(0,0) = 0
  2. If the function were differentiable, then lim⁡ρ→0Δzρ=0\lim_{\rho\to0} \frac{\Delta z}{\rho} = 0
  3. Take Δx=Δy=t>0\Delta x = \Delta y = t > 0; then ρ=2t\rho = \sqrt{2}t and Δz=t2=t\Delta z = \sqrt{t^2} = t
  4. Δzρ=t2t=12≠0\frac{\Delta z}{\rho} = \frac{t}{\sqrt{2}t} = \frac{1}{\sqrt{2}} \neq 0
  5. Hence it is not differentiable.

Answer: the partial derivatives exist (both are 0), but the function is not differentiable.


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
dzdzTotal differentialtotal differentialThe total differential of a function of two variables
duduTotal differentialtotal differentialThe total differential of a function of three variables
Δz\Delta zTotal incrementtotal incrementThe total increment of the function
ρ\rhoDistancerho(Δx)2+(Δy)2\sqrt{(\Delta x)^2+(\Delta y)^2}
o(ρ)o(\rho)Higher-order infinitesimallittle o of rhoAn infinitesimal of higher order than ρ\rho
dx,dydx, dyDifferentialdifferentialThe differentials of the independent variables

Found an issue with this content?

Tell us what could be improved.