In 1D, if you had a function f(x), then the derivative dxdf tells you how much f (the "height") changes when you move a little bit in the positive x direction.
With multiple variables, though, you have a lot more directions to work with, but the interpretation is the same:
Duf(a,b)=∇f(a,b)⋅∥u∥u
Duf(a,b) tells you how much f (the "height") changes when you move a little bit in the direction specified by the vector u. Since this is a dot product, you already have another, more geometric formula for the directional derivative:
Duf(a,b)=∥∇f(a,b)∥cosθ.
θ is the angle between ∇f(a,b) and the vector u. Recall that cosθ is between −1 and 1, where cos0=1 and cosπ=−1. So, you immediately get two interesting interpretations of the gradient:
The maximum rate of increase is in the direction ∇f(a,b).
The maximum rate of decrease is in the direction −∇f(a,b).
Another interesting case is when cosθ=0, where θ=2π, i.e., when ∇f(a,b) is orthogonal to u. In this case, Duf(a,b)=0, i.e., if you move a little bit in a direction orthogonal to ∇f(a,b), then f (essentially) stays constant. However, if you stay at the same height, that means you're moving along a level curve. This tells you another interpretation of the gradient:
The gradient of f is orthogonal to the level curves of f.
These pictures gives a rough summary of the concepts:
Using the interpretation that the gradient is orthogonal to level curves, you'll be able to find normal vectors for tangent planes much more easily.
Example 1.
If a surface is defined by F(x,y,z)=c, i.e., is a level curve of the function F, then you already know that ∇F will be orthogonal to this surface. Thus, you can use
n=∇F
as your normal vector.
Example 2.
As a special case, if you have a surface defined by z=f(x,y), then you can view it as a level curve:
F(x,y,z)=f(x,y)−z=0
Then as in the previous example, you can use
n=∇F=⟨∂x∂f,∂y∂f,−1⟩,
which coincides with the normal vector we've been using for surfaces.
Example 3.
Find a normal vector to the surface x2+y2+z2=1 at the point (a,b,c).
Solution.
In this problem, F(x,y,z)=x2+y2+z2 and the surface is a level surface of F. Thus, we can use
n=∇F(a,b,c)=⟨2a,2b,2c⟩.
Chain Rule
Theorem
Let f(x,y) be differentiable, and suppose x=x(s,t) and y=y(s,t). Then
∂s∂f=∂x∂f∂s∂x+∂y∂f∂s∂y.
So to find ∂s∂f, you just need to find all the variables of f that depend on s and multiply out the partial derivatives. This generalizes to more complicated situations:
Example 4.
Let f(x,y,z) be differentiable, x=x(s,t), and z=z(s) (so y is independent of s,t). Calculate the partial derivatives
∂s∂fand∂t∂f.
Solution.
For ∂s∂f, only x and z depend on s, so we get
∂s∂f=∂x∂f∂s∂x+∂z∂f∂s∂z.
Similarly, for ∂t∂f, only x depends on t, so
∂t∂f=∂x∂f∂t∂x.
Example 5.
Derive the formula
dtdf(r(t))=∇f(r(t))⋅r′(t).
Solution.
We can write
r(t)=⟨x(t),y(t)⟩,
so this becomes finding the derivative dtdf(x,y) with x=x(t) and y=y(t):