Directional Derivatives and Gradients

\frac{df}{dt}=\frac{\partial f}{\partial x}\frac{dx}{dt}+\frac{\partial f}{\partial y}\frac{dy}{dt}

\mathbf{u}=u_1\mathbf{i}+u_2\mathbf{j}

 

Since \mathbf{u} is a unit vector, its magnitude is 1, so u_1^2+u_2^2=1

 

x=x_0+su_1
y=y_0+su_2

(\frac{df}{ds})_{u,P_0}=\lim_{s\to0}\frac{f(x_0+su_1,y_0+su_2)-f(x_0,y_0)}{s}

D_uf(x_0,y_0)=\lim_{s\to0}\frac{f(x_0+su_1,y_0+su_2)-f(x_0,y_0)}{s}

(D_uf)_{P_0}

D_uf(x,y)=f_x(x,y)u_1+f_y(x,y)u_2

u=\cos\theta\,i+\sin\theta\,j

u=\cos(\frac{\pi}{6})i+\sin(\frac{\pi}{6})j=\frac{\sqrt{3}}{2}i+\frac{1}{2}j

f_x=3x^2-4x
f_y=3y^2

D_uf(x,y)=(3x^2-4x)\frac{\sqrt{3}}{2}+3y^2\frac{1}{2}

D_uf(1,2)=[3(1)^2-4(1)]\frac{\sqrt{3}}{2}+3(2)^2\frac{1}{2} D_uf(1,2)=6-\frac{\sqrt{3}}{2}

 

\nabla f=\langle f_x,f_y\rangle

\|\nabla f\|=\sqrt{f_x^2+f_y^2}=\max(D_uf)

D_uf=\nabla f\cdot u

 

Gradient Example

Consider the function:

f(x,y)=x^2+y^2

\nabla f=\langle2x,2y\rangle

\nabla f(1,2)=\langle2,4\rangle

\|\nabla f(1,2)\|=\sqrt{2^2+4^2}=2\sqrt{5}

 

Leave a Reply

Your email address will not be published. Required fields are marked *