M2504 Lec 06
M2504 Lec 06
Example 2
Use the preceding formula to compute the directional derivative in
Example 1. Check that we get the same answer as before.
Solution
We calculate Du f (1, 0), where f (x, y) = x2 + y 2 and u = √12~i + √12~j.
The partial derivatives are fx (x, y) = 2x and fy (x, y) = 2y. So, as before,
1 1
Du f (1, 0) = fx (1, 0)u1 + fy (1, 0)u2 = (2) √ + (0) √ .
2 2
The formula for the directional derivative can be written in terms of the
gradient as follows:
The Directional Derivative and the Gradient
If f is differentiable at (a, b) and u = u1~i + u2~j is a unit vector, then
∂~ ∂
∇= i + ~j,
∂x ∂y
which is applied to the function f .
khaphetsimahasa@gmail.com: Lecture 06: NUL Calculus 2B (M2504) April 12, 2022 7 / 11
Directional Derivatives and Gradients
∂f ∂f ∂f
grad f (x, y, z) = ∇f = , , in R3 .
∂x ∂y ∂z
Example 4
In which direction does the function f (x, y) = xy 2 + x3 y increase the
fastest from the point (1, 2)? In which direction does it decrease the
fastest?
vectors