Skip to main content

Section 10.5 Week 10 Activity

Subsection 10.5.1 Directional Derivatives

Activity 10.5.1.

Calculate the directional derivative of the function

\begin{equation*} f(x,y) = 3x + 5y - 2xy + x^2 - y^2 \end{equation*}

at the point \(p = (0,-2)\) in the direction \(v = (-1,-1)\text{.}\)

Solution.

The method of calculating directional derivatives is to take the dot product of the unit direction vector with the gradient of the function. First I calculate the gradient.

\begin{align*} \nabla f(x,y) \amp = \left( 3 -2y +2x, 5 - 2x - 2y \right) \end{align*}

Then I calculate the unit vector for the given direction.

\begin{align*} |v| \amp = \sqrt{(-1)^2 + (-1)^2} = \sqrt{2} \\ \frac{1}{|v|}v \amp = \left( \frac{-1}{\sqrt{2}}, \frac{-1}{\sqrt{2}} \right) \end{align*}

Then I take the dot product to produce the directional derivative.

\begin{align*} D_v f(x,y) \amp = \frac{1}{|v|} v \cdot \nabla f(x,y) = \frac{-3 + 2y - 2x}{\sqrt{2}} + \frac{-5 + 2x + 2y}{\sqrt{2}} = \frac{-8 + 4y}{\sqrt{2}} \end{align*}

Finally, I evaluate at the given point.

\begin{align*} D_v f(0,-2) \amp = \frac{-8 - 8}{\sqrt{2}} = \frac{-16}{\sqrt{2}} \end{align*}

I could have first evaluated the gradient at the point and then taken the dot product with the unit direction; that order of calculations would have produced the same result.

Activity 10.5.2.

Calculate the directional derivative of the function

\begin{equation*} f(x,y) = \cos (x - y) \end{equation*}

at the point \(p = \left( \frac{\pi}{2}, \frac{\pi}{2} \right)\) in the direction \(v = (2,1)\text{.}\)

Solution.

The method of calculating directional derivatives is to take the dot product of the unit direction vector with the gradient of the function. First I calculate the gradient.

\begin{align*} \nabla f(x,y) \amp = \left( -\sin (x-y), \sin (x-y) \right) \end{align*}

Then I calculate the unit vector for the given direction.

\begin{align*} |v| \amp = \sqrt{2^2 + 1^2} = \sqrt{5} \\ \frac{1}{|v|}v \amp = \left( \frac{2}{\sqrt{5}}, \frac{1}{\sqrt{5}} \right) \end{align*}

Then I take the dot product to produce the directional derivative.

\begin{align*} D_v f(x,y) \amp = \frac{1}{|v|} v \cdot \nabla f(x,y) = \frac{-2\sin(x-y)}{\sqrt{5}} + \frac{\sin (x-y)}{\sqrt{2}} = \frac{-\sin (x-y)}{\sqrt{5}} \end{align*}

Finally, I evaluate at the given point.

\begin{align*} D_v f\left( \frac{\pi}{2}, \frac{\pi}{2} \right) \amp = \frac{-\sin \left( \frac{\pi}{2} - \frac{\pi}{2} \right)}{\sqrt{5}} = \frac{-\sin 0}{\sqrt{5}} = 0 \end{align*}

I could have first evaluated the gradient at the point and then taken the dot product with the unit direction; that order of calculations would have produced the same result.

Activity 10.5.3.

Calculate the directional derivative of the function

\begin{equation*} f(x,y) = xy - yz + yz^2 - x^3 \end{equation*}

at the point \(p = (3,1,-2)\) in the direction \(v = (1,3,1)\text{.}\)

Solution.

The method of calculating directional derivatives is to take the dot product of the unit direction vector with the gradient of the function. First I calculate the gradient.

\begin{align*} \nabla f(x,y) \amp = \left( y - 3x^2, x - z + z^2, -y + 2yz \right) \end{align*}

Then I calculate the unit vector for the given direction.

\begin{align*} |v| \amp = \sqrt{1^2 + 3^2 +1^2} = \sqrt{11} \\ \frac{1}{|v|}v \amp = \left( \frac{1}{\sqrt{11}}, \frac{3}{\sqrt{11}} , \frac{1}{\sqrt{11}} \right) \end{align*}

Then I take the dot product to produce the directional derivative.

\begin{align*} D_v f(x,y) \amp = \frac{1}{|v|} v \cdot \nabla f(x,y) = \frac{y - 3x^2}{\sqrt{11}} + \frac{3x - 3z + 3z^2}{\sqrt{11}} + \frac{-z + 2yz}{\sqrt{11}} \\ \amp = \frac{3x + y - 4z - 3x^2 + 3z^2 + 2yz}{\sqrt{11}} \end{align*}

Finally, I evaluate at the given point.

\begin{align*} D_v f(3,1,-2) \amp = \frac{9 + 1 + 8 - 27 + 12 - 2}{\sqrt{11}} = \frac{1}{\sqrt{11}} \end{align*}

I could have first evaluated the gradient at the point and then taken the dot product with the unit direction; that order of calculations would have produced the same result.

Activity 10.5.4.

Calculate the directional derivative of the function

\begin{equation*} f(x,y) = e^{xyz} \end{equation*}

at the point \(p = (0,0,3)\) in the direction \(v = (-1,0,-2)\text{.}\)

Solution.

The method of calculating directional derivatives is to take the dot product of the unit direction vector with the gradient of the function. First I calculate the gradient.

\begin{align*} \nabla f(x,y) \amp = \left( yze^{xyz}, xze^{xyz}, xye^{xyz} \right) \end{align*}

Then I calculate the unit vector for the given direction.

\begin{align*} |v| \amp = \sqrt{(-1)^2 + 0^2 + (-2)^2} = \sqrt{5}\\ \frac{1}{|v|}v \amp = \left( \frac{-1}{\sqrt{5}}, 0, \frac{-2}{\sqrt{5}} \right) \end{align*}

Then I take the dot product to produce the directional derivative.

\begin{align*} D_v f(x,y) \amp = \frac{1}{|v|} v \cdot \nabla f(x,y) = \frac{-yze^{xyz}}{\sqrt{5}} + \frac{-2xye^{xyz}}{\sqrt{5}} = \frac{-(yz+2xy)e^{xyz}}{\sqrt{5}} \end{align*}

Finally, I evaluate at the given point.

\begin{align*} D_v f(0,0,3) \amp = \frac{-(0 + 0)e^0}{\sqrt{5}} = 0 \end{align*}

I could have first evaluated the gradient at the point and then taken the dot product with the unit direction; that order of calculations would have produced the same result.

Activity 10.5.5.

Calculate the directional derivative of the function

\begin{equation*} f(x,y) = \frac{x^2 + y^2}{1 + z^2} \end{equation*}

at the point \(p = (2,0,-2)\) in the direction \(v = (1,1,1)\text{.}\)

Solution.

The method of calculating directional derivatives is to take the dot product of the unit direction vector with the gradient of the function. First I calculate the gradient.

\begin{align*} \nabla f(x,y) \amp = \left( \frac{2x}{1+z^2}, \frac{2y}{1+z^2}, \frac{-2x(x^2 + y^2)}{(1+z^2)^2} \right) \end{align*}

Then I calculate the unit vector for the given direction.

\begin{align*} |v| \amp = \sqrt{1^2 + 1^2 + 1^2} = \sqrt{3} \\ \frac{1}{|v|}v \amp = \left( \frac{1}{\sqrt{3}}, \frac{1}{\sqrt{3}}, \frac{1}{\sqrt{3}} \right) \end{align*}

Then I take the dot product to produce the directional derivative.

\begin{align*} D_v f(x,y) \amp = \frac{1}{|v|} v \cdot \nabla f(x,y) = \frac{1}{\sqrt{3}} \left( \frac{2x}{1+z^2} + \frac{2y}{1+z^2} + \frac{-2z(x^2+y^2)}{(1+z^2)^2} \right) \\ \amp = \frac{ 2x(1+z^2) + 2y(1+z^2) - 2zx^2 - 2zy^2}{\sqrt{3}(1+z^2)^2} \\ \amp = \frac{2x + 2y - 2x^2z - 2y^2 z + 2xz^2 + 2yz^2}{\sqrt{3}(1+z^2)^2} \end{align*}

Finally, I evaluate at the given point.

\begin{align*} D_v f(2,0,-2) \amp =\frac{2(2) + 2(0) - 2(2)^2(-2) - 2(0)^2(2) + 2(2)(-2)^2 + 2(0)(-2)^2}{\sqrt{3}(1+(-2)^2)^2} \\ \amp = \frac{4 + 0 + 16 - 0 + 16 + 0}{\sqrt{(5)^2}} = \frac{36}{25\sqrt{3}} \end{align*}

I could have first evaluated the gradient at the point and then taken the dot product with the unit direction; that order of calculations would have produced the same result.

Subsection 10.5.2 Chain Rule

Activity 10.5.6.

Calculate the rate of change of the scalar field

\begin{equation*} f(x,y) = 4x + 3y \end{equation*}

along the parametric curve

\begin{equation*} \gamma(t) = (t^2 + t - 1, t^3 - 2t^2 + t + 1)\text{.} \end{equation*}
Solution.

This is a chain rule calculation. I first need the partial dervatives of the scalar field.

\begin{align*} \frac{\del }{\del x} f \amp = 4\\ \frac{\del }{\del y} f \amp = 3 \end{align*}

Then I need the derivatives of the components of the parametric curve.

\begin{align*} \frac{d}{dt} \gamma_1 \amp = 2t + 1\\ \frac{d}{dt} \gamma_2 \amp = 3t^2 - 2t + 1 \end{align*}

Then I put these into the chain rule form and simplify.

\begin{align*} \frac{d}{dt} f(\gamma(t)) \amp = 4 (2t+1) + 3(3t^2 - 2t + 1) \\ \amp = 8t + 4 + 9t^2 - 6t + 3 = 9t^2 + 2t + 7 \end{align*}

Activity 10.5.7.

Calculate the rate of change of the scalar field

\begin{equation*} f(x,y) = x^2 - y^2 \end{equation*}

along the parametric curve

\begin{equation*} \gamma(t) = (\cos t, \sin t) \text{.} \end{equation*}
Solution.

This is a chain rule calculation. I first need the partial dervatives of the scalar field.

\begin{align*} \frac{\del }{\del x} f \amp = 2x \\ \frac{\del }{\del y} f \amp = -2y \end{align*}

Then I need the derivatives of the components of the parametric curve.

\begin{align*} \frac{d}{dt} \gamma_1 \amp = -\sin t \\ \frac{d}{dt} \gamma_2 \amp = \cos t \end{align*}

Then I put these into the chain rule form and simplify. In the partial derivatives, I replace \(x\) and \(y\) with their matching components from the parametric curve.

\begin{align*} \frac{d}{dt} f(\gamma(t)) \amp = 2x(-\sin t) - 2y (\cos t = 2(\cos t)(-\sin t) - 2 (\sin t \cos t) \\ \amp = -4 \sin t \cos t \end{align*}

Activity 10.5.8.

Calculate the rate of change of the scalar field

\begin{equation*} f(x,y) = \frac{1}{x^2 + y^2 + 1} \end{equation*}

along the parametric curve

\begin{equation*} \gamma(t) = (3t - 2, t + 4)\text{.} \end{equation*}
Solution.

This is a chain rule calculation. I first need the partial dervatives of the scalar field.

\begin{align*} \frac{\del }{\del x} f \amp = \frac{-2x}{(x^2+y^2+1)^2} \\ \frac{\del }{\del y} f \amp = \frac{-2y}{(x^2+y^2+1)^2} \end{align*}

Then I need the derivatives of the components of the parametric curve.

\begin{align*} \frac{d}{dt} \gamma_1 \amp = 3\\ \frac{d}{dt} \gamma_2 \amp = 1 \end{align*}

Then I put these into the chain rule form and simplify. In the partial derivatives, I replace \(x\) and \(y\) with their matching components from the parametric curve.

\begin{align*} \frac{d}{dt} f(\gamma(t)) \amp = \frac{-2x}{(x^2 + y^2 + 1)^2} + \frac{-6y}{(x^2 + y^2 + 1)^2} = \frac{-2(3t-2) -6 (t+4)}{((3t-2)^2 + (t+4)^2 + 1)^2} \\ \amp = \frac{-6t + 4 - 6t -24}{(9t^2 - 12 t + 4 + t^2 + 8t + 16 + 1)^2} = \frac{-12t - 20}{(10t^2 -4 t + 20)^2} \end{align*}

Activity 10.5.9.

Calculate the rate of change of the scalar field

\begin{equation*} f(x,y) = e^{-(x^2 + y^2)} \end{equation*}

along the parametric curve

\begin{equation*} \gamma(t) = (t \cos t, t \sin t)\text{.} \end{equation*}
Solution.

This is a chain rule calculation. I first need the partial dervatives of the scalar field.

\begin{align*} \frac{\del }{\del x} f \amp = -2xe^{-(x^2+y^2)} \\ \frac{\del }{\del y} f \amp = -2ye^{-(x^2+y^2)} \end{align*}

Then I need the derivatives of the components of the parametric curve.

\begin{align*} \frac{d}{dt} \gamma_1 \amp = \cos t - t \sin t \\ \frac{d}{dt} \gamma_2 \amp = \sin t + t \cos t \end{align*}

Then I put these into the chain rule form and simplify. In the partial derivatives, I replace \(x\) and \(y\) with their matching components from the parametric curve.

\begin{align*} \frac{d}{dt} f(\gamma(t)) \amp = -2xe^{-(x^2+y^2)} (\cos t - t \sin t) + -2ye^{-(x^2 + y^2)} (\sin t + t \cos t)\\ \amp = -2(t \cos t) e^{-(t^2 \cos^2 t + t^2 \sin^2 t)} - 2(t \sin t) e^{-(t^2 \cos^2 t + t^2 \sin^2 t)} \\ \amp = -(2t \cos t + 2t \sin t) e^{-t^2} \end{align*}

Activity 10.5.10.

The potential energy scalar field produced by a gravitational source is

\begin{equation*} P(x,y,z) = \frac{-GM}{\sqrt{x^2 + y^2 + z^2}}\text{.} \end{equation*}

(This is the field per unit mass on an object; by convention, potential energy is near zero at very large distances and approches \(-\infty\) as I approach the gravitational source.) For each of these curves, calculate the rate of change of potential energy along the curve. Describe the shape of the curves and qualitatively argue that the increase or decrease in potential energy is reasonable.

  1. \(\displaystyle \gamma(t) = (3 \cos t, 3 \sin t, 0)\)

  2. \(\displaystyle \gamma(t) = \left( \frac{1}{t} \cos t, \frac{1}{t} \sin t, 0 \right)\)

  3. \(\displaystyle \gamma(t) = (t,t^2,t^3)\)

Solution.

For all of these, I will need the partial derivatives of the potential energy field.

\begin{align*} \frac{\del }{\del x} P \amp = \frac{GMx}{(x^2+y^2+z^2)^{\frac{3}{2}}} \\ \frac{\del }{\del y} P \amp = \frac{GMy}{(x^2+y^2+z^2)^{\frac{3}{2}}} \\ \frac{\del }{\del z} P \amp = \frac{GMz}{(x^2+y^2+z^2)^{\frac{3}{2}}} \\ \nabla P \amp = \frac{GM}{(x^2 + y^2 + z^2)^{\frac{3}{2}}} (x,y,z) \end{align*}

Then I'll apply the chain rule for each curve individually and try to explain the behaviour along the curve.

  1. \begin{align*} \gamma(t) \amp = (3 \cos t, 3 \sin t, 0)\\ \frac{d}{dt} \gamma_1 \amp = -3 \sin t \\ \frac{d}{dt} \gamma_2 \amp = 3 \cos t \\ \frac{d}{dt} \gamma_3 \amp = 0\\ \frac{d}{dt} f(\gamma(t)) \amp = \frac{GM}{(3\cos t)^2 + (3\sin t)^2 + 0^2)^{\frac{3}{2}}} (-3x \sin t + 3y \sin t + 0) \\ \amp = \frac{GM}{9^{\frac{3}{2}}} (-9\cos t \sin t+ 9 \sin t \cos t) = 0 \end{align*}

    This curve is a circular path around the origin. Following this curve, the distance to the origin is fixed. Potential energey only changes with distance, so it makes sense that there is no change in potential energey for this circular path.

  2. \begin{align*} \gamma(t) \amp = \left( \frac{1}{t} \cos t, \frac{1}{t} \sin t, 0 \right)\\ \frac{d}{dt} \gamma_1 \amp = \frac{-1}{t^2} \cos t - \frac{1}{t} \sin t = \frac{-\cos t - t \sin t}{t^2} \\ \frac{d}{dt} \gamma_2 \amp = \frac{-1}{t^2} \sin t + \frac{1}{t} \cos t = \frac{-\sin t + t \cos t}{t^2} \\ \frac{d}{dt} \gamma_3 \amp = 0 \\ \frac{d}{dt} f(\gamma(t)) \amp = \frac{GM}{\left( \frac{1}{t} \cos t \right)^2 + \left( \frac{1}{t} \sin t \right)^2 + 0^2} \\ \amp \left( x \frac{-\cos t - t\sin t}{t^2} + y \frac{-\sin t + t \cos t}{t^2} + z(0) \right) \\ \amp = \frac{GM}{\frac{1}{t^2} + 1} \left( \frac{1}{t} \cos t \frac{-\cos t - t \sin t}{t^2} + \frac{1}{t} \sin t \frac{-\sin t + t \cos t}{t^2} \right) \\ \amp = \frac{GMt^2}{1+t^2} \frac{-\cos^t - t \sin t \cos t - \sin^2 t + t \sin t \cos t}{t^3} \\ \amp = \frac{-GM}{t(1+t^2)} \end{align*}

    This potential energy derivative is always negative, showing that the potential energy is decreasing. PE decreases as an object approach the central massive object (recall the convention that PE goes to zero at infinity and approaches \(-\infty\) as I approach the central mass). This is an inward spiral so it makes sense that potential energy is decreasing along the spiral.

  3. \begin{align*} \gamma(t) \amp = (t,t^2,t^3)\\ \frac{d}{dt} \gamma_1 \amp = 1\\ \frac{d}{dt} \gamma_2 \amp = 2t\\ \frac{d}{dt} \gamma_3 \amp = 3t^2 \\ \frac{d}{dt} f(\gamma(t)) \amp = \frac{GM}{t^2 + t^4 + t^6} (x(1) + y(2t) + z(3t^2)) \\ \amp = \frac{GM}{t^2 + t^4 + t^6} (t + t^2(2t) + t^3(3t^2) = \frac{GM(1+2t^2 + 3t^4)}{t + t^3 + t^5} \end{align*}

    The derivative here is always positive, though it is getting smaller as \(t\) increases. PE increases as I move away from the central mass. This curve diverges away to \(\infty\text{,}\) so it makes sense that potential energy should decrease. As I get further and further away, the changes in PE become very small (even with the increasing speed of the curve) to it also makes sense that this derivative is getting smaller and smaller.

Subsection 10.5.3 Tangent Planes

Activity 10.5.11.

Calculate the equation of the tangent plane to the function

\begin{equation*} f(x,y) = 3y - 4x^2 \end{equation*}

at the point \(p = (0,0)\text{.}\)

Solution.

I can use the direct form of the equation. To use that form, I need the value of the function at the point as well as the value of its partial derivatives at the point.

\begin{align*} f(0,0) \amp = 0 \\ \frac{\del}{\del x} f(x,y) \amp = 8x \\ \frac{\del}{\del x} f(0,0) \amp = 0 \\ \frac{\del}{\del y} f(x,y) \amp = 3\\ \frac{\del}{\del y} f(0,0) \amp = 3 \end{align*}

Then the equation of the tangent plane is given by substituting these values in the form.

\begin{equation*} z - 0 = 0 (x - 0) + 3 (y - 0) \implies z = 3y \end{equation*}

Activity 10.5.12.

Calculate the equation of the tangent plane to the function

\begin{equation*} f(x,y) = 3y - 4x^2 \end{equation*}

at the point \(p = (4,3)\text{.}\)

Solution.

I can use the direct form of the equation. To use that form, I need the value of the function at the point as well as the value of its partial derivatives at the point.

\begin{align*} f(4,3) \amp = 9 - 64 = -55\\ \frac{\del}{\del x} f(x,y) \amp = 8x\\ \frac{\del}{\del x} f(4,3) \amp = 32\\ \frac{\del}{\del y} f(x,y) \amp = 3\\ \frac{\del}{\del y} f(4,3) \amp = 3 \end{align*}

Then the equation of the tangent plane is given by substituting these values in the form.

\begin{equation*} z + 55 = 32 (x - 4) + 3 (y - 3) \end{equation*}

Activity 10.5.13.

Calculate the equation of the tangent plane to the function

\begin{equation*} f(x,y) = e^{x^2+y^2} \end{equation*}

at the point \(p = (0,0)\text{.}\)

Solution.

I can use the direct form of the equation. To use that form, I need the value of the function at the point as well as the value of its partial derivatives at the point.

\begin{align*} f(0,0) \amp = e^0 = 1\\ \frac{\del}{\del x} f(x,y) \amp = 2xe^{x^2 +y^2}\\ \frac{\del}{\del x} f(0,0) \amp = 0 \\ \frac{\del}{\del y} f(x,y) \amp = 2ye^{x^2 +y^2}\\ \frac{\del}{\del y} f(0,0) \amp = 0 \end{align*}

Then the equation of the tangent plane is given by substituting these values in the form.

\begin{equation*} z - 1 = 0 (x) + 0 (y) \implies z = 1 \end{equation*}

Activity 10.5.14.

Calculate the equation of the tangent plane to the function

\begin{equation*} f(x,y) = e^{x^2+y^2} \end{equation*}

at the point \(p = (-2,-2)\text{.}\)

Solution.

I can use the direct form of the equation. To use that form, I need the value of the function at the point as well as the value of its partial derivatives at the point.

\begin{align*} f(-2,-2) \amp = e^8 \\ \frac{\del}{\del x} f(x,y) \amp = 2xe^{x^2 +y^2} \\ \frac{\del}{\del x} f() \amp = -4e^8 \\ \frac{\del}{\del y} f(x,y) \amp = 2ye^{x^2+y^2}\\ \frac{\del}{\del y} f() \amp = -4e^8 \end{align*}

Then the equation of the tangent plane is given by substituting these values in the form.

\begin{equation*} z - e^8 = -4e^8 (x + 2) - 4e^8 (y + 2) \end{equation*}

Activity 10.5.15.

Calculate the equation of the tangent plane to the function

\begin{equation*} f(x,y) = \frac{x^2+1}{y^2-4} \end{equation*}

at the point \(p = (-3,3)\text{.}\)

Solution.

I can use the direct form of the equation. To use that form, I need the value of the function at the point as well as the value of its partial derivatives at the point.

\begin{align*} f(-3,3) \amp = \frac{10}{5} = 2 \\ \frac{\del}{\del x} f(x,y) \amp = \frac{2x}{y^2-4} \\ \frac{\del}{\del x} f(-3,3) \amp = \frac{-6}{5}\\ \frac{\del}{\del y} f(x,y) \amp = \frac{-2y(x^2+1)}{(y^2-4)^2} \\ \frac{\del}{\del y} f(-3,3) \amp = \frac{-6(10)}{25} = \frac{-12}{5} \end{align*}

Then the equation of the tangent plane is given by substituting these values in the form.

\begin{equation*} z - 2 = \frac{-6}{5} (x + 3) - \frac{12}{5} (y - 3) \end{equation*}

Activity 10.5.16.

Calculate the equation of the tangent plane to the function

\begin{equation*} f(x,y) = \frac{x^2+1}{y^2-4} \end{equation*}

at the point \(p = (1,2)\text{.}\)

Solution.

The point is not in the domain of the function. There is no tangent plane.

Subsection 10.5.4 Conceptual Review Questions

  • What is a directional derivative? How does it differ from the gradient?

  • What is the situation where the chain rule is appropriate for multivariable functions?

  • Why for 2-variable functions have tangent planes?

  • What is linear approximation? How does it somewhat unify the idea of generalizing the derivative?