Skip to main content

Thomas’ Calculus · Chapter 14 · Section 14.5

By Muhammad Abdullah Athar · SymPy Verified

Directional Derivatives and Gradient Vectors

❦

Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.

Part One

Section Notes

❧

Section 14.5: Directional Derivatives and Gradient Vectors

The gradient vector points in the direction of steepest ascent and governs directional rates of change.


1. Directional Derivative Formula

For differentiable ff and unit vector u\mathbf{u}: Duf=∇f⋅u=∣∇f∣cos⁡θD_\mathbf{u} f = \nabla f \cdot \mathbf{u} = |\nabla f| \cos\theta

  • Maximum Rate of Increase: +∣∇f∣+|\nabla f| (in direction of ∇f\nabla f)
  • Maximum Rate of Decrease: −∣∇f∣-|\nabla f| (in direction of −∇f-\nabla f)
  • Zero Rate of Change: Duf=0D_\mathbf{u} f = 0 (perpendicular to ∇f\nabla f, along the level curve)

2. Orthogonality to Level Sets

At any point P0P_0, the gradient vector ∇f(P0)\nabla f(P_0) is perpendicular to the tangent line (in 2D) or tangent plane (in 3D) of the level set passing through P0P_0.

Part Two

Key Ideas to Remember

2 essential statements for this section, each with a plain-words explanation.

Definition #1Sec 14.5

Gradient Vector

∇f(x,y)=fxi+fyj=⟨fx,fy⟩,∇f(x,y,z)=⟨fx,fy,fz⟩\nabla f(x, y) = f_x \mathbf{i} + f_y \mathbf{j} = \langle f_x, f_y \rangle, \quad \nabla f(x, y, z) = \langle f_x, f_y, f_z \rangle

The gradient of a differentiable scalar function f is the vector field whose components are the first partial derivatives of f.

Conditions: f is differentiable

In plain words: Points in the direction of maximum instantaneous rate of increase of f, with magnitude |grad f| equal to that maximal rate.

Remember — grad f is everywhere orthogonal to the level curves or level surfaces of f.

Formula #2Sec 14.5

Directional Derivative

Duf(x0,y0)=∇f(x0,y0)⋅u=∣∇f∣cos⁡θD_\mathbf{u} f(x_0, y_0) = \nabla f(x_0, y_0) \cdot \mathbf{u} = |\nabla f| \cos\theta

The directional derivative of f in the direction of unit vector u is the scalar product of the gradient vector with u. It measures the rate of change of f moving through (x_0, y_0) along direction u.

Conditions: u is a unit vector: |u| = 1

In plain words: Attains maximum value |grad f| when u is parallel to grad f (theta = 0); minimum -|grad f| when antiparallel (theta = pi); and zero when tangent to level curve (theta = pi/2).

Remember — Computes rate of change in any arbitrary spatial direction.

Part Three

Worked Examples

5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.

Example 01(Section 14.5, Exercise 1)

Warm-up

Problem. Compute the gradient grad f for f(x, y) = x^2 y + sqrt(y) at the point (2, 4).

Step-by-Step Derivation (2 steps)

1

Compute First Partial Derivatives

fx=2xy,fy=x2+12yf_x = 2xy, \quad f_y = x^2 + \frac{1}{2\sqrt{y}}

Differentiate with respect to x and y independently.

Why this works: Finding components of gradient.
2

Evaluate at (2, 4)

fx(2,4)=2(2)(4)=16;fy(2,4)=22+124=4+14=174f_x(2, 4) = 2(2)(4) = 16; \quad f_y(2, 4) = 2^2 + \frac{1}{2\sqrt{4}} = 4 + \frac{1}{4} = \frac{17}{4}

Substitute point coordinates into gradient components.

Why this works: Computing numerical gradient at point.

Answer: ∇f(2,4)=⟨16,174⟩\nabla f(2, 4) = \left\langle 16, \frac{17}{4} \right\rangle

✓ Verified by SymPy CAS

Example 02(Section 14.5, Exercise 2)

Warm-up

Problem. Find the directional derivative of f(x, y) = x^3 - 3xy + 4y^2 at P(1, 2) in the direction of v = 3i + 4j.

Step-by-Step Derivation (3 steps)

1

Normalize Direction Vector to Unit Length

∣v∣=32+42=5  ⟹  u=⟨35,45⟩|\mathbf{v}| = \sqrt{3^2 + 4^2} = 5 \implies \mathbf{u} = \left\langle \frac{3}{5}, \frac{4}{5} \right\rangle

Divide direction vector by its length 5.

Why this works: Ensuring unit vector condition.
2

Calculate Gradient Vector at P(1, 2)

∇f=⟨3x2−3y,−3x+8y⟩  ⟹  ∇f(1,2)=⟨3(1)−3(2),−3(1)+8(2)⟩=⟨−3,13⟩\nabla f = \langle 3x^2 - 3y, -3x + 8y \rangle \implies \nabla f(1, 2) = \langle 3(1) - 3(2), -3(1) + 8(2) \rangle = \langle -3, 13 \rangle

Evaluate partial derivatives at (1, 2).

Why this works: Finding gradient at given point.
3

Compute Scalar Product grad f . u

Duf=⟨−3,13⟩⋅⟨35,45⟩=(−3)(3)+(13)(4)5=−9+525=435D_\mathbf{u} f = \langle -3, 13 \rangle \cdot \left\langle \frac{3}{5}, \frac{4}{5} \right\rangle = \frac{(-3)(3) + (13)(4)}{5} = \frac{-9 + 52}{5} = \frac{43}{5}

Take inner product of gradient and unit direction.

Why this works: Evaluating directional rate of change.

Answer: Duf(1,2)=435D_\mathbf{u} f(1, 2) = \frac{43}{5}

✓ Verified by SymPy CAS

Example 03(Section 14.5, Exercise 3)

Core practice

Problem. Find the maximum rate of change of f(x, y, z) = x^2 + 2y^2 - 3z^2 at P(1, 1, 1) and the direction in which it occurs.

Step-by-Step Derivation (2 steps)

1

Compute 3D Gradient Vector

∇f=⟨2x,4y,−6z⟩  ⟹  ∇f(1,1,1)=⟨2,4,−6⟩\nabla f = \langle 2x, 4y, -6z \rangle \implies \nabla f(1, 1, 1) = \langle 2, 4, -6 \rangle

Evaluate partial derivatives at (1, 1, 1).

Why this works: Determining direction of steepest ascent.
2

Compute Magnitude of Gradient

∣∇f(1,1,1)∣=22+42+(−6)2=4+16+36=56=214|\nabla f(1, 1, 1)| = \sqrt{2^2 + 4^2 + (-6)^2} = \sqrt{4 + 16 + 36} = \sqrt{56} = 2\sqrt{14}

The maximum rate of increase equals the norm of the gradient vector.

Why this works: Calculating maximum rate of change.

Answer: Max Rate: 214,Direction: ⟨2,4,−6⟩\text{Max Rate: } 2\sqrt{14}, \quad \text{Direction: } \langle 2, 4, -6 \rangle

✓ Verified by SymPy CAS

Example 04(Section 14.5, Exercise 4)

Warm-up

Problem. Find a normal vector to the level curve x^2 + 4y^2 = 8 at the point (2, 1).

Step-by-Step Derivation (2 steps)

1

Define g(x, y) and Compute Gradient

g(x,y)=x2+4y2  ⟹  ∇g(x,y)=⟨2x,8y⟩g(x, y) = x^2 + 4y^2 \implies \nabla g(x, y) = \langle 2x, 8y \rangle

The gradient of g is orthogonal to every level curve g(x, y) = c.

Why this works: Applying level curve orthogonality theorem.
2

Evaluate at Point (2, 1)

∇g(2,1)=⟨2(2),8(1)⟩=⟨4,8⟩\nabla g(2, 1) = \langle 2(2), 8(1) \rangle = \langle 4, 8 \rangle

Substitute x = 2 and y = 1.

Why this works: Finding normal vector.

Answer: n=⟨4,8⟩=4⟨1,2⟩\mathbf{n} = \langle 4, 8 \rangle = 4\langle 1, 2 \rangle

✓ Verified by SymPy CAS

Example 05(Section 14.5, Exercise 5)

Core practice

Problem. At a point where grad f = <-3, 13>, find the unit directions u along which the directional derivative is zero.

Step-by-Step Derivation (3 steps)

1

Set Directional Derivative Equal to Zero

Duf=∇f⋅u=0D_\mathbf{u} f = \nabla f \cdot \mathbf{u} = 0

Zero change occurs in directions tangent to the level curve (orthogonal to grad f).

Why this works: Setting up orthogonality condition.
2

Find Orthogonal Vector and Normalize

⟨−3,13⟩⋅⟨u1,u2⟩=−3u1+13u2=0  ⟹  u∥⟨13,3⟩\langle -3, 13 \rangle \cdot \langle u_1, u_2 \rangle = -3 u_1 + 13 u_2 = 0 \implies \mathbf{u} \parallel \langle 13, 3 \rangle

Rotate the vector by 90 degrees.

Why this works: Finding orthogonal direction.
3

Normalize to Unit Length

∣⟨13,3⟩∣=169+9=178  ⟹  u=±1178⟨13,3⟩|\langle 13, 3 \rangle| = \sqrt{169 + 9} = \sqrt{178} \implies \mathbf{u} = \pm \frac{1}{\sqrt{178}} \langle 13, 3 \rangle

Divide by the Euclidean norm.

Why this works: Obtaining unit direction vectors.

Answer: u=±1178⟨13,3⟩\mathbf{u} = \pm \frac{1}{\sqrt{178}} \langle 13, 3 \rangle

✓ Verified by SymPy CAS