4.2 Directional Derivatives, Gradients, and Tangent Planes
Key Takeaways
- The directional derivative of a differentiable function f in the direction of a unit vector u is given by D_u f = ∇f · u = ||∇f|| cos(θ).
- The gradient vector ∇f(P) points in the direction of maximum instantaneous increase, with magnitude ||∇f(P)|| equal to that maximum rate.
- The gradient vector ∇F(x_0, y_0, z_0) to a level surface F(x, y, z) = k is normal (perpendicular) to the tangent plane of the surface at (x_0, y_0, z_0).
- The Cartesian equation of the tangent plane to F(x, y, z) = k at P_0 is F_x(P_0)(x - x_0) + F_y(P_0)(y - y_0) + F_z(P_0)(z - z_0) = 0.
- The total differential df = f_x dx + f_y dy + f_z dz provides first-order linear approximation and error propagation estimates.
4.2 Directional Derivatives, Gradients, and Tangent Planes
Partial derivatives $f_x$ and $f_y$ measure rates of change parallel to coordinate axes. Directional derivatives generalize this concept to arbitrary trajectories in $\mathbb{R}^n$, while the gradient vector $\nabla f$ encapsulates all directional variation into a single vector field.
Directional Derivatives from First Principles
Let $f: D \subset \mathbb{R}^n \to \mathbb{R}$ and let $\mathbf{u}$ be a unit vector ($|\mathbf{u}| = 1$). The directional derivative of $f$ at $\mathbf{x}_0$ along $\mathbf{u}$ is:
- For $\mathbf{u} = \mathbf{i} = \langle 1, 0 \rangle$, $D_{\mathbf{i}} f = f_x$; for $\mathbf{u} = \mathbf{j} = \langle 0, 1 \rangle$, $D_{\mathbf{j}} f = f_y$.
- For an arbitrary non-zero vector $\mathbf{v}$, normalize first: $\mathbf{u} = \frac{\mathbf{v}}{|\mathbf{v}|}$.
The Gradient Vector and Dot Product Formula
For a scalar field $f$, the gradient vector $\nabla f$ is:
The Fundamental Directional Derivative Formula
If $f$ is differentiable at $\mathbf{x}_0$, the directional derivative along unit vector $\mathbf{u}$ is: where $\theta$ is the angle between $\nabla f(\mathbf{x}_0)$ and $\mathbf{u}$.
Requirement: Differentiability is mandatory. If $f$ is not differentiable, directional derivatives may exist along every ray without satisfying the dot product formula.
Geometric Properties of the Gradient
Because $-1 \le \cos \theta \le 1$, the dot product formula yields three cardinal properties:
- Steepest Ascent: Occurs when $\theta = 0$ ($\cos \theta = 1$).
- Direction: $\mathbf{u} = \frac{\nabla f}{|\nabla f|}$ (along the gradient).
- Maximum Value: $D_{\mathbf{u}} f = |\nabla f(\mathbf{x}_0)|$.
- Steepest Descent: Occurs when $\theta = \pi$ ($\cos \theta = -1$).
- Direction: $\mathbf{u} = -\frac{\nabla f}{|\nabla f|}$ (opposite to the gradient).
- Minimum Value: $D_{\mathbf{u}} f = -|\nabla f(\mathbf{x}_0)|$.
- Zero Change: Occurs when $\theta = \pi/2$ ($\cos \theta = 0$). Directions orthogonal to $\nabla f$ produce zero rate of change and lie tangent to level sets.
Orthogonality to Level Curves and Surfaces
Let $F(x, y, z) = k$ define a smooth level surface $S$. Let $C$ be any curve on $S$ parameterized by $\mathbf{r}(t)$ with $\mathbf{r}(t_0) = P_0(x_0, y_0, z_0)$. Because $F(\mathbf{r}(t)) = k$ is constant: At $t = t_0$, $\nabla F(P_0) \cdot \mathbf{r}'(t_0) = 0$. Since $\mathbf{r}'(t_0)$ is an arbitrary tangent vector to $S$ at $P_0$, the gradient $\nabla F(P_0)$ is perpendicular to every tangent vector to the level surface. Thus $\nabla F(P_0)$ is a normal vector $\mathbf{n}$ to the tangent plane.
Tangent Planes and Normal Lines to Level Surfaces
For level surface $F(x, y, z) = k$ at $P_0(x_0, y_0, z_0)$ with $\nabla F(P_0) \neq \mathbf{0}$:
Cartesian Equation of the Tangent Plane
Equations of the Normal Line
- Parametric Form: $\mathbf{r}(t) = \langle x_0, y_0, z_0 \rangle + t \langle F_x(P_0), F_y(P_0), F_z(P_0) \rangle$
- Symmetric Form: $\frac{x - x_0}{F_x(P_0)} = \frac{y - y_0}{F_y(P_0)} = \frac{z - z_0}{F_z(P_0)}$ (for non-zero components)
Explicit Surfaces $z = f(x, y)$
Rewriting $z = f(x, y)$ as $F(x, y, z) = f(x, y) - z = 0$ gives normal $\nabla F = \langle f_x, f_y, -1 \rangle$, reproducing the explicit tangent plane formula $z - z_0 = f_x(x_0, y_0)(x - x_0) + f_y(x_0, y_0)(y - y_0)$.
Total Differentials and Error Propagation
For differentiable $w = f(x, y, z)$, the total differential is: For small increments $\Delta x, \Delta y, \Delta z$, the change $\Delta w \approx dw$:
| Error Type | Formula | Interpretation |
|---|---|---|
| Absolute Error | $ | \Delta w |
| Relative Error | $\frac{\Delta w}{w} \approx \frac{dw}{w}$ | Fractional uncertainty |
| Percentage Error | $\frac{dw}{w} \times 100%$ | Scaled percentage representation |
Step-by-Step Worked Problems
Problem 1: Directional Derivative along a Vector
Compute the directional derivative of $f(x, y) = x^2 e^{2y} - y^3$ at $P(2, 0)$ pointing toward $Q(5, 4)$.
Solution:
- Gradient: $\nabla f = \langle 2x e^{2y}, 2x^2 e^{2y} - 3y^2 \rangle \implies \nabla f(2, 0) = \langle 4, 8 \rangle$.
- Displacement: $\mathbf{v} = \vec{PQ} = \langle 3, 4 \rangle$.
- Normalize: $|\mathbf{v}| = \sqrt{9 + 16} = 5 \implies \mathbf{u} = \langle 3/5, 4/5 \rangle$.
- Dot product: $D_{\mathbf{u}} f(2, 0) = \langle 4, 8 \rangle \cdot \langle 3/5, 4/5 \rangle = \frac{12 + 32}{5} = \frac{44}{5}$.
Problem 2: Tangent Plane to an Ellipsoid
Find the tangent plane to $x^2 + 2y^2 + 3z^2 = 36$ at $P_0(1, -2, 3)$.
Solution:
- Level surface $F(x, y, z) = x^2 + 2y^2 + 3z^2$. Verify $1 + 8 + 27 = 36$.
- Gradient: $\nabla F = \langle 2x, 4y, 6z \rangle$.
- At $P_0$: $\mathbf{n} = \nabla F(1, -2, 3) = \langle 2, -8, 18 \rangle = 2 \langle 1, -4, 9 \rangle$.
- Tangent plane: $1(x - 1) - 4(y + 2) + 9(z - 3) = 0 \implies x - 4y + 9z = 36$.
GRE Exam Traps & Pitfalls
Trap 1: Forgetting to Normalize the Direction Vector $D_{\mathbf{u}} f = \nabla f \cdot \mathbf{u}$ requires a unit vector. Computing $\nabla f \cdot \mathbf{v}$ for $|\mathbf{v}| \neq 1$ scales the derivative by $|\mathbf{v}|$.
Trap 2: Applying the Dot Product Formula Without Differentiability When $f$ is non-differentiable, directional derivatives along rays may exist while failing the dot product identity.
Trap 3: Sign Errors on Explicit Surfaces For $z = f(x, y)$, using $f(x, y) - z = 0$ gives normal $\langle f_x, f_y, -1 \rangle$. Do not flip individual signs.
What is the maximum rate of increase of the function f(x, y, z) = x^2 y z^3 at the point P(2, -1, 1), and in which direction does it occur?
Let f(x, y) = 3x^2 - 2xy + y^2. What is the directional derivative of f at the point (1, 2) in the direction pointing toward the point (4, 6)?
What is the equation of the tangent plane to the level surface x^2 + 2y^2 + z^2 = 7 at the point (1, -1, 2)?