Study Guide985 words

Study Guide: Directional Derivatives and the Gradient

Directional Derivatives and the Gradient

Directional Derivatives and the Gradient

Learning Objectives

After studying this chapter, you should be able to:

  • Calculate the directional derivative of a function f(x,y)f(x, y) or f(x,y,z)f(x, y, z) in any given direction.
  • Compute the gradient vector ∇f\nabla f for scalar functions.
  • Interpret the geometric significance of the gradient (direction of steepest ascent).
  • Apply the gradient to find tangent lines to level curves and tangent planes to level surfaces.
  • Determine the maximum and minimum rates of change at a specific point.

Key Terms & Glossary

  • Gradient (∇f\nabla f): A vector field whose components are the partial derivatives of ff. It points in the direction of the greatest rate of increase.
  • Directional Derivative (DufD_{\mathbf{u}}f): The rate at which a function changes at a point in the direction of a unit vector u\mathbf{u}.
  • Unit Vector: A vector with a magnitude (length) of 1. In directional derivatives, the direction must be normalized to a unit vector.
  • Level Curve: A curve defined by f(x,y)=cf(x, y) = c. The gradient ∇f\nabla f at a point (x0,y0)(x_0, y_0) is always perpendicular (orthogonal) to the level curve passing through that point.
  • Normal Vector: A vector perpendicular to a surface or curve; the gradient acts as the normal vector to level sets.

The "Big Idea"

In single-variable calculus, the derivative f′(x)f'(x) gives the slope in one dimension. In multivariable calculus, partial derivatives fxf_x and fyf_y only give the slopes along the axes. The Gradient is the "master key" that unlocks the slope in any direction. It represents the local "uphill" direction on a topographic map. If you are standing on a mountain, the gradient tells you which way is straight up, and the directional derivative tells you how steep the path is if you choose to walk at a specific angle.


Formula / Concept Box

ConceptFormula / Property
The Gradient (2D)∇f(x,y)=⟨fx,fy⟩=∂f∂xi+∂f∂yj\nabla f(x, y) = \langle f_x, f_y \rangle = \frac{\partial f}{\partial x}\mathbf{i} + \frac{\partial f}{\partial y}\mathbf{j}
Directional DerivativeDuf(P)=∇f(P)⋅uD_{\mathbf{u}}f(P) = \nabla f(P) \cdot \mathbf{u} (where ∥u∥=1\|\mathbf{u}\| = 1)
Maximum Rate of Change∥∇f(P)∥\|\nabla f(P)\| (occurs when u\mathbf{u} is in the direction of ∇f\nabla f)
Minimum Rate of Change−∥∇f(P)∥-\|\nabla f(P)\| (occurs when u\mathbf{u} is in the direction of −∇f-\nabla f)
Orthogonality∇f(P)⋅v=0\nabla f(P) \cdot \mathbf{v} = 0 for any vector v\mathbf{v} tangent to the level curve

[!IMPORTANT] Always verify that your direction vector is a unit vector. If you are given a vector v\mathbf{v}, you must use u=v∥v∥\mathbf{u} = \frac{\mathbf{v}}{\|\mathbf{v}\|} before calculating the dot product.


Hierarchical Outline

  1. The Gradient Vector
    • Definition: ∇f=⟨fx,fy,… ⟩\nabla f = \langle f_x, f_y, \dots \rangle.
    • Computation: Requires finding all first-order partial derivatives.
  2. The Directional Derivative
    • Limit definition vs. the Dot Product Theorem.
    • Relationship to partials: fxf_x is DifD_{\mathbf{i}}f and fyf_y is DjfD_{\mathbf{j}}f.
  3. Properties of the Gradient
    • Steepest Ascent: Points in the direction of maximum increase.
    • Steepest Descent: Points in the direction of maximum decrease (−∇f-\nabla f).
    • Zero Change: Directions orthogonal to ∇f\nabla f result in zero change (moving along a level curve).
  4. Applications
    • Tangent lines to level curves f(x,y)=cf(x, y) = c.
    • Normal lines to surfaces f(x,y,z)=cf(x, y, z) = c.

Visual Anchors

The Gradient Relationship

Loading Diagram...
Figure 1 — Mermaid diagram

Geometric Interpretation in 2D

Compiling TikZ diagram…
⏳
Running TeX engine…
This may take a few seconds
Figure 2 — TikZ diagram

Definition-Example Pairs

1. Directional Cosines

  • Definition: The components of a unit vector in 3D, expressed as cos⁡α,cos⁡β,cos⁡γ\cos \alpha, \cos \beta, \cos \gamma, representing the angles made with the x,y,x, y, and zz axes.
  • Example: A unit vector pointing equally between the axes would have cos⁡α=cos⁡β=cos⁡γ=1/3\cos \alpha = \cos \beta = \cos \gamma = 1/\sqrt{3}.

2. Steepest Descent

  • Definition: The direction exactly opposite the gradient vector where the function's value decreases most rapidly.
  • Example: If ∇f=⟨3,4⟩\nabla f = \langle 3, 4 \rangle at a point, the direction of steepest descent is ⟨−3,−4⟩\langle -3, -4 \rangle with a rate of −5-5.

Worked Examples

Example 1: Finding the Directional Derivative

Problem: Find Duf(1,2)D_{\mathbf{u}}f(1, 2) for f(x,y)=x2yf(x, y) = x^2y in the direction of v=⟨3,−4⟩\mathbf{v} = \langle 3, -4 \rangle.

Solution:

  1. Find the Gradient: fx=2xy  ⟹  fx(1,2)=2(1)(2)=4f_x = 2xy \implies f_x(1, 2) = 2(1)(2) = 4 fy=x2  ⟹  fy(1,2)=(1)2=1f_y = x^2 \implies f_y(1, 2) = (1)^2 = 1 So, ∇f(1,2)=⟨4,1⟩\nabla f(1, 2) = \langle 4, 1 \rangle.
  2. Normalize the Direction Vector: ∥v∥=32+(−4)2=5\|\mathbf{v}\| = \sqrt{3^2 + (-4)^2} = 5 u=v∥v∥=⟨35,−45⟩\mathbf{u} = \frac{\mathbf{v}}{\|\mathbf{v}\|} = \langle \frac{3}{5}, -\frac{4}{5} \rangle.
  3. Compute the Dot Product: Duf=∇f⋅u=⟨4,1⟩⋅⟨0.6,−0.8⟩D_{\mathbf{u}}f = \nabla f \cdot \mathbf{u} = \langle 4, 1 \rangle \cdot \langle 0.6, -0.8 \rangle Duf=(4)(0.6)+(1)(−0.8)=2.4−0.8=1.6D_{\mathbf{u}}f = (4)(0.6) + (1)(-0.8) = 2.4 - 0.8 = 1.6.

Example 2: Direction of Maximum Increase

Problem: At the point (0,0,0)(0, 0, 0), in what direction does f(x,y,z)=ex+yzf(x, y, z) = e^x + yz increase most rapidly?

Solution:

  1. Calculate the Gradient: ∇f=⟨ex,z,y⟩\nabla f = \langle e^x, z, y \rangle
  2. Evaluate at (0,0,0)(0, 0, 0): ∇f(0,0,0)=⟨e0,0,0⟩=⟨1,0,0⟩\nabla f(0, 0, 0) = \langle e^0, 0, 0 \rangle = \langle 1, 0, 0 \rangle.
  3. Result: The function increases most rapidly in the direction of the positive xx-axis (i\mathbf{i}). The maximum rate of change is ∥⟨1,0,0⟩∥=1\|\langle 1, 0, 0 \rangle\| = 1.

Checkpoint Questions

  1. If ∇f(P)=⟨0,0⟩\nabla f(P) = \langle 0, 0 \rangle, what is the directional derivative in any direction u\mathbf{u}?
  2. True or False: The directional derivative can be larger than the magnitude of the gradient.
  3. Find the gradient of f(x,y)=ln⁡(x2+y2)f(x, y) = \ln(x^2 + y^2) at the point (1,1)(1, 1).
  4. If you are walking along a level curve of a mountain, what is the value of your directional derivative in the direction of your path?
▶Click to see Answers
  1. 0. Because Duf=⟨0,0⟩⋅u=0D_{\mathbf{u}}f = \langle 0, 0 \rangle \cdot \mathbf{u} = 0.
  2. False. The maximum value is ∥∇f∥\|\nabla f\|.
  3. ∇f=⟨2xx2+y2,2yx2+y2⟩\nabla f = \langle \frac{2x}{x^2+y^2}, \frac{2y}{x^2+y^2} \rangle. At (1,1)(1, 1), ∇f=⟨1,1⟩\nabla f = \langle 1, 1 \rangle.
  4. 0. Level curves represent constant height, so the rate of change is zero.

Ready to study Calculus III: Multivariable Calculus?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free