Section 10.1 Directional Derivatives
Subsection 10.1.1 Definition of Directional Derivatives
Partial derivatives took one variable and pretended that all other variables were constant. In that way, they calculated the rate of change in that variable. I could consider \(\frac{\del f}{\del x}\) the derivative of \(f\) when moving in the \(x\) axis direction. But why do I only consider movement in the axis directions? Why can't I consider movement in all directions and ask about the rate of change?
Definition 10.1.1.
Let \(f: \RR^n \rightarrow \RR\) be a differentiable function and \(u\) a unit vector in \(\RR^n\text{.}\) The directional derivative of \(f\) in the direction \(u\) is written \(D_u f\) and given by a limit definition. Let \(v\) be a point in the domain of \(f\text{.}\)
The directional derivative, like the partial derivative, uses a single variable limit: I use the line in the direction \(u\) (as a local direction vector form the point \(v\)) to give a one-dimensional domain — a copy of \(\RR^1\text{.}\) Then I just differentiate along the line. In \(\RR^3\text{,}\) if \(u = e_1\text{,}\) the directional derivative is \(D_{e_1} f = \frac{\del f}{\del x}\text{;}\) if \(u = e_2\text{,}\) the directional derivative is \(D_{e_2} f = \frac{\del f}{\del y}\text{;}\) and if \(u = e_3\text{,}\) the directional derivative is \(D_{e_3} f = \frac{\del f}{\del z}\text{.}\)
Subsection 10.1.2 Calculating Directional Derivatives
Instead of calculating this limit every time, there is a nice tool for calculating directional derivatives.
Proposition 10.1.2.
Let \(f: \RR^n \rightarrow \RR\) be a differentiable function and \(u\) a unit vector in \(\RR^n\text{.}\) The directional derivatives \(D_u f\) is the dot product of \(u\) with \(\nabla f\text{.}\)
If \((a,b)\) or \((a,b,c)\) are unit vectors in \(\RR^2\) and \(\RR^3\text{,}\) respectively, I can write the specific form of the proposition for low dimensions.
As I noted at the start of this section, the directional derivatives in the axis directions give the partial derivatives, so this is an extension of the idea of partial derivatives.
Subsection 10.1.3 Examples of Directional Derivatives
Example 10.1.4.
Consider this function: \(f(x,y) = \sin (x^2 + y^2)\text{,}\) shown in Figure 10.1.3. These are circular sine waves, like riples on a pond which never decrease in amplitude. Here are some direction derivatives for this function.
Example 10.1.6.
If I wanted damped ripples instead, as in Figure 10.1.5, I would take \(f(x,y) = e^{-(x^2 + y^2)} \sin(x^2 + y^2)\text{.}\) Here are some direction derivatives for this function.
Finally, look at what happens when I apply the length of a dot product to the directional derivative.
The cosine term is maximized when the angle \(\theta =0\text{,}\) that is, when \(u\) is the unit vector in the same direction as \(\nabla f\text{.}\) That is, the greatest directional derivative, representing the direction of fastest change, is found in the direction of the gradient. This established the fact, which I claimed in Subsection 9.4.2, that the gradient points in the direction of greatest change.