Skip to main content

Section 4.1 Basic Definitions

Consider a function f with domain DRN with values in R. For every i=1,,n we can then define a function of one variable, t, by setting
gi(t)=f(a1,,ai1,ai+t,ai+1,,an).
If N=2 then the graph of this function is a cross-section of the graph of f in the i-th coordinate direction as seen in Figure 4.1.
Figure 4.1. Cross-sections of the graph of a function through a given point
If a is an interior point of D then gi is defined on a small interval I=(ε,ε), and zero is an interior point. From the calculus of one variables we know that gi(0) is the slope of the graph of the function gi at t=0. Hence gi(0) is the slope of the cross-section of the graph of f through a in the xi-direction. This motivates the following definition.

Definition 4.2. Partial derivative.

Suppose that a is an interior point of DRN, and that f is a function on D with values in R. We define the partial derivative of f with respect to xi at a by
xif(a):=gi(0)=limt01t(f(a1,,ai+t,,aN)f(a1,,ai,,aN))
whenever the limit exists.

Warning 4.3. Notation for derivatives.

There are other possible notations for partial derivatives. We also write
xif(a)=fxi(a)=fxi(a)=xif(a)=if(a).
Look at the symbol for the partial derivative carefully, and practise its writing a little bit.
Write xi and NOT δδxi or ddxi
as it is often seen among beginning students. The last two symbols have a meaning on their own right, the first being the ‘variation’, and the other being the ‘total derivative’ of a function. An example showing the difference between partial and total derivatives will be shown in Example 4.23.
Given a function of N variables we can form a vector having as its components the partial derivatives of that function.

Definition 4.4. Gradient.

Suppose f is a function defined on DRN having partial derivatives with respect to all N variables at the interior point a. Then the vector
gradf(a)=f(a)=(fx1(a),,fxN(a))
is called the gradient of f at a.
We conclude this section by some examples.

Example 4.5.

Consider f(x,y):=x2y2 defined on R2. To compute its derivatives we treat one variable as a constant, and differentiate with respect to the other:
xf(x,y)=2x,yf(x,y)=2y.
The gradient of the function is
f(x,y)=(2x,2y)=2(x,y).

Example 4.6.

Compute the partial derivatives and the gradient of the function f given by f(x,y,z,t):=(x2+y2+z2)et.
Solution.
As in the previous example we treat all variables as constants except for one. Hence the partial derivatives are
fx=2xet,fy=2yet,fz=2zet,ft=(x2+y2+z2)et.
The gradient is
gradf(x,y,z,t)=(2xet,2yet,2zet,(x2+y2+z2)et)=(2x,2y,2z,(x2+y2+z2))et.

Example 4.7.

Compute the partial derivatives of f(x,y):=x/y on its domain of definition.
Solution.
We saw in Example 3.27 that R2 minus the x-axis is the domain of the function under consideration. Hence, if x0 then
xf(x,y)=1y,yf(x,y)=xy2.

Example 4.8.

Compute the gradient of f(x,t):=xt defined for x>0 and tR.
Solution.
We first compute the partial derivatives:
xf(x,t)=txt1tf(x,t)=tetlnx=etlnxlnx=xtlnx.
Hence the gradient of f is
gradf(x,t)=(txt1,xtlnx)=xt(tx1,lnx).

Example 4.9.

Define the function f on R2 by setting
f(s,t):={st2s2+t2if (s,t)(0,0),0if (s,t)=(0,0)
Determine whether f has partial derivatives at (0,0). Determine the gradient at (0,0) if it exists.
Solution.
By definition of the partial derivative with respect to s we have
fsf(0,0)=limh01h((0+h)02(0+h)2+020)=limh00=0
Similarly we have
ftf(0,0)=limh01h(0(0+h)202+(0+h)20)=limh00=0.
Hence both partial derivatives exist, and thus gradf(0,0)=(0,0). Look at the cross-sections through the graph of f shown in Figure 3.29 along the coordinate axis to visualise the result.

Example 4.10.

Consider the function f on R2 defined by
f(x,y):={xy2x2+y4if (x,y)(0,0),0if (x,y)=(0,0).
Determine whether f has partial derivatives at (0,0), and determine them if possible.
Solution.
By the definition of partial derivatives we have
fxf(0,0)=limt01t(t02t2+040)=limt00=0
and
fyf(0,0)=limt01t(0t202+t40)=limt00=0.
Hence both partial derivatives exist and are zero.

Remark 4.11.

For functions of one variable we know that differentiability at a point implies continuity of the function at that point. Note however, that the existence of all partial derivatives of a function of several variables does not imply the continuity of the function at the corresponding point: The function considered in the previous example has partial derivatives at (0,0), but is discontinuous at (0,0) as shown in Example 3.30.