Rate of Change and Gradient
Now if u is in the direction of gradient(f), then theta=0 and we have Du(f)=||gradient(f)||
If u points in the opposite direction of gradient(f), then theta=Pi and we have
Du(f)=-||gradient(f)||
What does this say?
A (differentiable) function increases most rapidly in the direction of the gradient (u=gradient(f)) and the rate of change in this direction is ||gradient(f)||.
A (differentiable) function decreases most rapidly in the opposite direction of the gradient (u=-gradient(f)) and the rate of change in this direction is -||gradient(f)||.
Example
In[77]:=
T[x_,y_]:=Exp[x]*Cos[y] + Exp[y]*Cos[x]
In[78]:=
grad2[T][x,y]
Out[78]=
x y y x
{E Cos[y] - E Sin[x], E Cos[x] - E Sin[y]}
In[79]:=
grad2[T][x,y]/.{x->0,y->0}
Out[79]=
{1, 1}
Answer: