1.2. THE GRADIENT AND DIRECTIONAL DERIVATIVES 11
Knowledge Box 1.3
If z D f .x; y/ is a function of two variables, then
rf .x; y/ D
f
x
; f
y
is called the gradient of f .x; y/ . e gradient of a function points in the direction
it is growing most quickly; the rate of growth is the magnitude of the gradient.
Example 1.27 Find the gradient of the function f .x; y/ D x
2
C y
2
C 3xy.
Solution:
Using the formula given, rf .x; y/ D
.
2x C 3y; 3x C 2y
/
.
˙
We can ask much more complex questions about the gradient than simply computing its value.
Example 1.28 At what points is the function
g.x; y/ D sin.x/ Ccos.y/
changing the fastest in its direction of maximum increase?
Solution:
is question wants us to maximize the magnitude of the gradient.
First compute the gradient:
rg.x; y/ D
.
cos.x/; sin.y/
/
e magnitude of this is
q
cos
2
.x/ C sin
2
.y/
Since x and y vary independently, the answer is simply those points that make cos
2
.x/ and
sin
2
.y/ both one.
So, the answer is those points .x; y/ such that
x D n and y D
2m C1
2