Activity 4.6.1.
Calculate the directional derivative of \(f(x,y) = 3x + 5y
- 2xy + x^2 - y^2 \) at the point \(p = (0,-2) \) in the direction \((-1,-1) \text{.}\) (Don’t forget to make the direction a unit vector.)
Solution.
First I need to make the direction a unit vector. The length of the direction is
\begin{equation*}
|v| = \sqrt{ (-1)^2 + (-1)^2 } = \sqrt{2}
\end{equation*}
so the unit vector is
\begin{equation*}
u = \frac{v}{|v|} = \left( \frac{-1}{\sqrt{2}},
\frac{-1}{\sqrt{2}} \right) \text{.}
\end{equation*}
Then I calculate the gradient of \(f\text{,}\) taking the partials in each variable.
\begin{equation*}
\nabla f = \left( (3-2y + 2x, 5 - 2x - 2y \right)
\end{equation*}
Finally, the directional derivative is the dot product of gradient and the direction.
\begin{equation*}
D_u f = \frac{1}{\sqrt{2}} (-3 + 2y - 2x -5 + 2x + 2y ) =
\frac{-8 + 4y}{\sqrt{2}}
\end{equation*}
Finally I eavluate this at the point.
\begin{equation*}
D_u f (p) = \frac{-8 - 8}{\sqrt{2}} = \frac{-16}{\sqrt{2}}
\end{equation*}