Consider a function \(f\) with domain \(D\subset\mathbb R^N\) with values in \(\mathbb R\text{.}\) For every \(i=1,\dots, n\) we can then define a function of one variable, \(t\text{,}\) by setting
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.
If \(\vect a\) is an interior point of \(D\) then \(g_i\) is defined on a small interval \(I=(-\varepsilon,\varepsilon )\text{,}\) and zero is an interior point. From the calculus of one variables we know that \(g_i'(0)\) is the slope of the graph of the function \(g_i\) at \(t=0\text{.}\) Hence \(g_i'(0)\) is the slope of the cross-section of the graph of \(f\) through \(\vect a\) in the \(x_i\)-direction. This motivates the following definition.
Definition4.2.Partial derivative.
Suppose that \(\vect a\) is an interior point of \(D\subset\mathbb R^N\text{,}\) and that \(f\) is a function on \(D\) with values in \(\mathbb R\text{.}\) We define the partial derivative of \(f\) with respect to \(x_i\) at \(\vect a\) by
\begin{align*}
\frac{\partial}{\partial x_i}f(\vect a)
\amp:=g_i'(0)\\
=\lim_{t\to 0}
\frac{1}{t}
\Bigl(f(a_1,\dots,a_i+t,\dots,a_N)-f(a_1,\dots,a_i,\dots,a_N)\Bigr)
\end{align*}
whenever the limit exists.
Warning4.3.Notation for derivatives.
There are other possible notations for partial derivatives. We also write
Look at the symbol for the partial derivative carefully, and practise its writing a little bit.
\begin{equation*}
\text{Write }\dfrac{\partial}{\partial x_i}
\text{ and NOT }
\dfrac{\delta}{\delta x_i}
\text{ or }
\dfrac{d}{dx_i}
\end{equation*}
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.
Definition4.4.Gradient.
Suppose \(f\) is a function defined on \(D\subset\mathbb R^N\) having partial derivatives with respect to all \(N\) variables at the interior point \(\vect a\text{.}\) Then the vector
Consider \(f(x,y):=x^2-y^2\) defined on \(\mathbb R^2\text{.}\) To compute its derivatives we treat one variable as a constant, and differentiate with respect to the other:
Hence both partial derivatives exist, and thus \(\grad f(0,0)=(0,0)\text{.}\) Look at the cross-sections through the graph of \(f\) shown in Figure 3.29 along the coordinate axis to visualise the result.
Example4.10.
Consider the function \(f\) on \(\mathbb R^2\) defined by
Hence both partial derivatives exist and are zero.
Remark4.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)\text{,}\) but is discontinuous at \((0,0)\) as shown in Example 3.30.