CALCULUS AND OPTIMIZATION/Student Engineering Notebook
Page 03·notes
MULTIVARIABLE CALCULUS, GRADIENTS & HESSIANS—~30 MIN READ

Partial Derivatives, Gradients & Directional Derivatives

Optional enrichment beyond GATE 2027 DA single-variable calculus

“Gradient vector grad(f), directional derivative D_u f = grad(f) . u, tangent hyperplanes, and Jacobian matrices.”

1.Multivariable Geometry, Gradients & Directional Derivatives

For a scalar field f: R^n -> R, the Gradient Vector grad(f) packages all first-order partial derivatives:

grad(f) = [ df/dx_1, df/dx_2, ..., df/dx_n ]^T.

Geometric Meaning of the Gradient:

1. grad(f) is strictly orthogonal to the level curve (or level surface) f(x) = c at every point.

2. grad(f) points in the direction of fastest increase.

3. Its magnitude ||grad(f)|| is the maximum possible directional derivative.

The Directional Derivative:

For unit direction u (||u|| = 1), D_u f(x) = lim_{h -> 0} [ f(x + h u) - f(x) ] / h = grad(f(x)) . u.

By Cauchy-Schwarz: |D_u f| <= ||grad(f)|| * ||u|| = ||grad(f)||.

WORKED EXAM ANALYSIS · STEP-BY-STEP DERIVATION

2. Worked Practice Problem: 3D Directional Derivative & Normal Vector

⚠️ Pitfall Warning:

Normalize the given 3D direction vector before computing the inner product.

Problem: Find the directional derivative of f(x, y, z) = x^2 y z + 2 y^2 z at point P(1, 1, 2) in the direction of vector v = [ 1, 2, 2 ]^T.

Step 1: Compute partial derivatives of f:

df/dx = 2xy*z

df/dy = x^2 z + 4y*z

df/dz = x^2 y + 2y^2

Step 2: Evaluate gradient vector at P(1, 1, 2):

df/dx = 2(1)(1)(2) = 4.

df/dy = (1)^2(2) + 4(1)(2) = 2 + 8 = 10.

df/dz = (1)^2(1) + 2(1)^2 = 1 + 2 = 3.

grad(f)(P) = [ 4, 10, 3 ]^T.

Step 3: Normalize direction vector v:

||v|| = sqrt( 1^2 + 2^2 + 2^2 ) = sqrt( 1 + 4 + 4 ) = sqrt(9) = 3.

Unit vector u = [ 1/3, 2/3, 2/3 ]^T.

Step 4: Compute dot product D_u f = grad(f) . u:

D_u f = (4)(1/3) + (10)(2/3) + (3)(2/3)

D_u f = (4 / 3) + (20 / 3) + (6 / 3) = 30 / 3 = 10.

Conclusion: The directional derivative at P in the direction of v is D_u f = 10.

WORKED NUMERICAL · STUDENT DERIVATION✎ Key Takeaway: The gradient points uphill fastest, and is perpendicular to the level curves.

Worked example: a directional derivative

Problem Statement:
f(x, y) = x²y + y³. Find ∇f at (1, 2), the directional derivative along (3, 4), and the steepest rate of increase.
Step 1: Partials

fₓ = 2xy and f_y = x² + 3y².

∇f(1, 2) = (4, 13)
Step 2: Unit direction

(3, 4)/5.

Step 3: Directional derivative

∇f · u.

(4·3 + 13·4)/5 = 64/5
↳ Result: 12.8
Step 4: Steepest rate

|∇f| in the direction of ∇f.

√(16 + 169)
↳ Result: ≈ 13.6
Final Answer:∇f = (4, 13); D_u f = 12.8; steepest ≈ 13.6
STUDENT PRACTICE · CONCEPT DRILL

Practice: test yourself

Original practice questions in the GATE style, with worked explanations. Not past-paper questions.

Problem 1 · FOUNDATION

f(x, y) = 3x + 4y. What is the largest directional derivative at any point?

Problem 2 · GATE-LEVEL

In which direction is the directional derivative zero?

Problem 3 · GATE-LEVEL

f(x, y) = x²y. What is ∂²f/∂x∂y at (1, 1)?

SOURCE TRANSPARENCY & CITATIONS

Primary Academic References & Exam Sources

Every concept in Notes From a B.Tech Brain is synthesized from authoritative academic texts, seminal peer-reviewed research, verified exam archives, and renowned university lectures.

Curated University Lecture Series
Vector Calculus (6th Edition) ·
LECTURE SERIES