{"id":1147,"date":"2025-10-15T14:44:05","date_gmt":"2025-10-15T14:44:05","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/calculus3\/?post_type=chapter&#038;p=1147"},"modified":"2026-05-26T15:02:12","modified_gmt":"2026-05-26T15:02:12","slug":"directional-derivatives-and-the-gradient-learn-it-2","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/calculus3\/chapter\/directional-derivatives-and-the-gradient-learn-it-2\/","title":{"raw":"Directional Derivatives and the Gradient: Learn It 2","rendered":"Directional Derivatives and the Gradient: Learn It 2"},"content":{"raw":"<h2>Gradient<\/h2>\r\n<p class=\"whitespace-normal break-words\">Look back at the formula for the directional derivative: [latex]D_{\\bf{u}}f(x,y)=f_x(x,y)\\cos\\theta+f_y(x,y)\\sin\\theta[\/latex]. The right-hand side can be written as a dot product of two vectors. Define the first vector as [latex]\\nabla{f}(x,y)=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}}[\/latex] and the second as [latex]{\\bf{u}}=(\\cos\\theta){\\bf{i}}+(\\sin\\theta){\\bf{j}}[\/latex]. Then:<\/p>\r\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]D_{\\bf{u}}f(x,y)=\\nabla{f}(x,y)\\cdot{\\bf{u}}[\/latex]<\/p>\r\n\r\n<section class=\"textbox proTip\" aria-label=\"Pro Tip\">The symbol [latex]\\nabla[\/latex] is called nabla, and the vector [latex]\\nabla{f}[\/latex] is read \"del [latex]f[\/latex]\" or \"gradient of [latex]f[\/latex]\".<\/section>The first vector in this equation has a special name: the <strong>gradient<\/strong> of the function [latex]f[\/latex].\r\n\r\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\r\n<h3>gradient<\/h3>\r\nLet\u00a0[latex]z=f(x, y)[\/latex] be a function of\u00a0[latex]x[\/latex] and\u00a0[latex]x[\/latex] such that\u00a0[latex]f_x[\/latex] and\u00a0[latex]f_y[\/latex] exist. The vector\u00a0[latex]\\nabla{f}(x,y)[\/latex] is called the <strong>gradient<\/strong> of [latex]f[\/latex] and is defined as:\r\n<p style=\"text-align: center;\">[latex]\\nabla{f}(x,y)=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}}.[\/latex]<\/p>\r\nThe vector\u00a0[latex]\\nabla{f}(x,y)[\/latex] is also written as \"grad\u00a0[latex]f[\/latex]\".\r\n\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">Find the gradient\u00a0[latex]\\nabla{f}(x,y)[\/latex] of each of the following functions:\r\n<ol style=\"list-style-type: lower-alpha;\">\r\n \t<li>[latex]f(x,y)=x^2-xy+3y^2[\/latex]<\/li>\r\n \t<li>[latex]f(x,y)=\\sin{3x}\\cos{3y}[\/latex]<\/li>\r\n<\/ol>\r\n[reveal-answer q=\"131344589\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"131344589\"]\r\n\r\nFor both parts a. and b., we first calculate the partial derivatives\u00a0[latex]f_x[\/latex] and\u00a0[latex]f_y[\/latex], then use\u00a0the gradient of [latex]f[\/latex].\r\n<ol style=\"list-style-type: lower-alpha;\">\r\n \t<li>[latex]\\hspace{1cm}\\begin{align}f_x(x,y)&amp;=2x-y\\text{ and }f_x(x,y)=-x+6y,\\text{ so} \\\\\\nabla{f}(x,y)&amp;=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}} \\\\\r\n\r\n&amp;=(2x-y){\\bf{i}}+(-x+6y){\\bf{j}}.\r\n\r\n\\end{align}[\/latex]<\/li>\r\n \t<li>[latex]\\hspace{1cm}\\begin{align}f_x(x,y)&amp;=3\\cos{3x}\\cos{3y}\\text{ and }f_x(x,y)=-3\\sin{3x}\\sin{3y},\\text{ so} \\\\\r\n\r\n\\nabla{f}(x,y)&amp;=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}} \\\\\r\n\r\n&amp;=(3\\cos{3x}\\cos{3y}){\\bf{i}}-(3\\sin{3x}\\sin{3y}){\\bf{j}}.\r\n\r\n\\end{align}\r\n\r\n[\/latex]<\/li>\r\n<\/ol>\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]325844[\/ohm_question]<\/section>\r\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\">Properties of the Gradient<\/h3>\r\n<p class=\"whitespace-normal break-words\">The gradient has important properties that make it useful for understanding how functions behave. We've already seen one: the formula for the directional derivative. Let's dig deeper.<\/p>\r\n<p class=\"whitespace-normal break-words\">Recall that if the angle between two vectors [latex]{\\bf{a}}[\/latex] and [latex]{\\bf{b}}[\/latex] is [latex]\\varphi[\/latex], then [latex]{\\bf{a}}\\cdot{\\bf{b}}=|{\\bf{a}}||{\\bf{b}}|\\cos\\varphi[\/latex]. If the angle between [latex]\\nabla{f}(x_0,y_0)[\/latex] and [latex]{\\bf{u}}=(\\cos\\theta){\\bf{i}}+(\\sin\\theta){\\bf{j}}[\/latex] is [latex]\\varphi[\/latex], then:<\/p>\r\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]D_{\\bf{u}}f(x_0,y_0)=\\nabla{f}(x_0,y_0)\\cdot{\\bf{u}}=|\\nabla{f}(x_0,y_0)||{\\bf{u}}|\\cos\\varphi=|\\nabla{f}(x_0,y_0)|\\cos\\varphi[\/latex]<\/p>\r\n<p class=\"whitespace-normal break-words\">The [latex]|{\\bf{u}}|[\/latex] term disappears because [latex]{\\bf{u}}[\/latex] is a unit vector. The directional derivative equals the magnitude of the gradient at [latex](x_0, y_0)[\/latex], multiplied by [latex]\\cos\\varphi[\/latex].<\/p>\r\n<p class=\"whitespace-normal break-words\">Since [latex]\\cos\\varphi[\/latex] ranges from [latex]-1[\/latex] to [latex]1[\/latex], we can determine when the directional derivative is maximized or minimized:<\/p>\r\n\r\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-2.5 pl-7\">\r\n \t<li class=\"whitespace-normal break-words\">If [latex]\\varphi=0[\/latex], then [latex]\\cos\\varphi=1[\/latex] and [latex]\\nabla{f}(x_0,y_0)[\/latex] and [latex]{\\bf{u}}[\/latex] point in the same direction. This maximizes [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex].<\/li>\r\n \t<li class=\"whitespace-normal break-words\">If [latex]\\varphi=\\pi[\/latex], then [latex]\\cos\\varphi=-1[\/latex] and [latex]\\nabla{f}(x_0,y_0)[\/latex] and [latex]{\\bf{u}}[\/latex] point in opposite directions. This minimizes [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex].<\/li>\r\n \t<li class=\"whitespace-normal break-words\">If [latex]\\nabla{f}(x_0,y_0)={\\bf{0}}[\/latex], then [latex]D_{\\bf{u}}f(x_0,y_0)=0[\/latex] for any unit vector [latex]{\\bf{u}}[\/latex].<\/li>\r\n<\/ul>\r\nThese cases are outlined in the following theorem.\r\n\r\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\r\n<h3>properties of the gradient<\/h3>\r\nSuppose the function\u00a0[latex]z=f(x, y)[\/latex] is differentiable at\u00a0[latex](x_0, y_0)[\/latex] (Figure 3).\r\n<ol style=\"list-style-type: lower-roman;\">\r\n \t<li>If [latex]\\nabla{f}(x_0,y_0)=0[\/latex], then [latex]D_{\\bf{u}}f(x_0,y_0)=0[\/latex] for any unit vector [latex]\\bf{u}[\/latex].<\/li>\r\n \t<li>If [latex]\\nabla{f}(x_0,y_0)\\ne 0[\/latex], then [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex] is maximized when [latex]\\bf{u}[\/latex] points in the same direction as [latex]\\nabla{f}(x_0,y_0)[\/latex]. The maximum value of [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex] is [latex]\\|\\nabla{f}(x_0,y_0)\\|[\/latex].<\/li>\r\n \t<li>If [latex]\\nabla{f}(x_0,y_0)\\ne 0[\/latex], then [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex] is minimized when [latex]\\bf{u}[\/latex] points in the opposite direction from [latex]\\nabla{f}(x_0,y_0)[\/latex]. The minimum value of [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex] is [latex]-\\|\\nabla{f}(x_0,y_0)\\|[\/latex].<\/li>\r\n<\/ol>\r\n<\/section>\r\n\r\n[caption id=\"attachment_1260\" align=\"aligncenter\" width=\"607\"]<img class=\"size-full wp-image-1260\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23010542\/4-6-3.jpeg\" alt=\"An upward facing paraboloid in xyz space with point P0 (x0, y0, z0). From this point, there are arrows going up, down, and around the paraboloid. On the xy plane, the point (x0, y0) is marked, and the corresponding arrows are drawn onto the plane: the down arrow corresponds to \u2212\u2207f (most rapid decrease in f), the up arrow corresponds to \u2207f (most rapid increase in f), and the arrows around correspond to no change in f. The up\/down arrows are perpendicular to the around arrows in their projection on the plane.\" width=\"607\" height=\"588\" \/> Figure 1. The gradient indicates the maximum and minimum values of the directional derivative at a point.[\/caption]\r\n\r\n<section class=\"textbox example\" aria-label=\"Example\">Find the direction for which the directional derivative of [latex]f(x, y)=3x^{2}-4xy+2y^{2}[\/latex] at [latex](-2, 3)[\/latex] is a maximum. What is the maximum value?[reveal-answer q=\"721568432\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"721568432\"]The maximum value of the directional derivative occurs when [latex]\\nabla{f}[\/latex] and the unit vector point in the same direction. Therefore, we start by calculating\u00a0[latex]\\nabla{f}(x,y)[\/latex]:[latex]\\hspace{6cm}\\large{\\begin{align}f_x(x,y)&amp;=6x-4y\\text{ and }f_y(x,y)=-4x+4y,\\text{ so} \\\\\r\n\r\n\\nabla{f}(x,y)&amp;=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}}=(6x-4y){\\bf{i}}+(-4x+4y){\\bf{j}}.\r\n\r\n\\end{align}}[\/latex]\r\n\r\nNext, we evaluate the gradient at\u00a0[latex](-2,3)[\/latex]:\r\n<p style=\"text-align: center;\">[latex]\\large{\\nabla{f}(-2,3)=(6(-2)-4(3)){\\bf{i}}+(-4(-2)+3(3)){\\bf{j}}=-24{\\bf{i}}+20{\\bf{j}}}.[\/latex]<\/p>\r\nWe need to find a unit vector that points in the same direction as [latex]\\nabla{f}(-2,3)[\/latex]<span style=\"font-size: 0.9em;\">,<\/span>\u00a0so the next step is to divide [latex]\\nabla{f}(-2,3)[\/latex] by its magnitude, which is\u00a0[latex]\\sqrt{(-24)^2+(20)^2}=\\sqrt{976}=4\\sqrt{61}[\/latex]. Therefore,\r\n<p style=\"text-align: center;\">[latex]\\large{\\frac{\\nabla{f}(-2,3)}{\\|\\nabla{f}(-2,3)\\|}=\\frac{-24}{4\\sqrt{61}}{\\bf{i}}+\\frac{20}{4\\sqrt{61}}{\\bf{j}}=\\frac{-6\\sqrt{61}}{61}{\\bf{i}}+\\frac{5\\sqrt{61}}{61}{\\bf{j}}}.[\/latex]<\/p>\r\nThis is the unit vector that points in the same direction as [latex]\\nabla{f}(-2,3)[\/latex]. To find the angle corresponding to this unit vector, we solve the equations\r\n<p style=\"text-align: center;\">[latex]\\large{\\cos\\theta=\\frac{-6\\sqrt{61}}{61}}[\/latex] and\u00a0[latex]\\large{\\sin\\theta=\\frac{5\\sqrt{61}}{61}}.[\/latex]<\/p>\r\nfor\u00a0[latex]\\theta[\/latex].\u00a0Since cosine is negative and sine is positive, the angle must be in the second quadrant. Therefore,\r\n\r\n[latex]\\theta=\\pi-\\arcsin{((5\\sqrt{61})\/61)}\\approx2.45\\text{ rad}.[\/latex]\r\n\r\nThe maximum value of the directional derivative at\u00a0[latex](-2, 3)[\/latex] is\u00a0[latex]\\|\\nabla{f}(-2,3)\\|=4\\sqrt{61}[\/latex] (see the following figure).\r\n\r\n[caption id=\"attachment_1262\" align=\"aligncenter\" width=\"523\"]<img class=\"size-full wp-image-1262\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23010640\/4-6-4.jpeg\" alt=\"An upward facing paraboloid f(x, y) = 3x2 \u2013 4xy + 2y2 with tangent plane at the point (\u20132, 3, 54). The tangent plane has equation z = \u201324x + 20y \u2013 54.\" width=\"523\" height=\"340\" \/> Figure 2.\u00a0The maximum value of the directional derivative at [latex]\\small{(-2,3)}[\/latex]\u00a0is in the direction of the gradient.[\/caption][\/hidden-answer]<\/section>\r\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\">Interpreting the Gradient<\/h3>\r\nFigure 3 shows part of the graph of [latex]f(x,y)=3+\\sin x\\sin y[\/latex]. Given a point [latex](a, b)[\/latex] in the domain of [latex]f[\/latex], the maximum value of the gradient at that point is [latex]|\\nabla{f}(a,b)|[\/latex]. If the surface represented a topographical map, this would be the rate of greatest ascent. In the opposite direction, it would be the rate of greatest descent.\r\n\r\n[caption id=\"attachment_1265\" align=\"aligncenter\" width=\"724\"]<img class=\"size-full wp-image-1265\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23010758\/4-6-5.jpeg\" alt=\"An surface in xyz space with point at f(a, b). There is an arrow in the direction of greatest descent.\" width=\"724\" height=\"637\" \/> Figure 3. A typical surface in [latex]\\mathbb{R}^{3}[\/latex].\u00a0Given a point on the surface, the directional derivative can be calculated using the gradient.[\/caption]\r\n<p class=\"whitespace-normal break-words\">When using a topographical map, the steepest slope is always in the direction where the contour lines are closest together (see Figure 4). This is analogous to the contour map of a function, assuming the level curves are obtained for equally spaced values throughout the range of that function.<\/p>\r\n\r\n[caption id=\"attachment_1266\" align=\"aligncenter\" width=\"267\"]<img class=\"size-full wp-image-1266\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23011025\/4-6-6.jpeg\" alt=\"Two crossing dashed lines that pass through the origin and a series of curved lines approaching the crosses dashed lines as if they are asymptotes.\" width=\"267\" height=\"272\" \/> Figure 4. Contour map for the function [latex]\\small{f(x,y)=x^{2}-y^{2}}[\/latex] using level values between [latex]\\small{-5}[\/latex] and [latex]\\small{5}[\/latex].[\/caption]","rendered":"<h2>Gradient<\/h2>\n<p class=\"whitespace-normal break-words\">Look back at the formula for the directional derivative: [latex]D_{\\bf{u}}f(x,y)=f_x(x,y)\\cos\\theta+f_y(x,y)\\sin\\theta[\/latex]. The right-hand side can be written as a dot product of two vectors. Define the first vector as [latex]\\nabla{f}(x,y)=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}}[\/latex] and the second as [latex]{\\bf{u}}=(\\cos\\theta){\\bf{i}}+(\\sin\\theta){\\bf{j}}[\/latex]. Then:<\/p>\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]D_{\\bf{u}}f(x,y)=\\nabla{f}(x,y)\\cdot{\\bf{u}}[\/latex]<\/p>\n<section class=\"textbox proTip\" aria-label=\"Pro Tip\">The symbol [latex]\\nabla[\/latex] is called nabla, and the vector [latex]\\nabla{f}[\/latex] is read &#8220;del [latex]f[\/latex]&#8221; or &#8220;gradient of [latex]f[\/latex]&#8220;.<\/section>\n<p>The first vector in this equation has a special name: the <strong>gradient<\/strong> of the function [latex]f[\/latex].<\/p>\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\n<h3>gradient<\/h3>\n<p>Let\u00a0[latex]z=f(x, y)[\/latex] be a function of\u00a0[latex]x[\/latex] and\u00a0[latex]x[\/latex] such that\u00a0[latex]f_x[\/latex] and\u00a0[latex]f_y[\/latex] exist. The vector\u00a0[latex]\\nabla{f}(x,y)[\/latex] is called the <strong>gradient<\/strong> of [latex]f[\/latex] and is defined as:<\/p>\n<p style=\"text-align: center;\">[latex]\\nabla{f}(x,y)=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}}.[\/latex]<\/p>\n<p>The vector\u00a0[latex]\\nabla{f}(x,y)[\/latex] is also written as &#8220;grad\u00a0[latex]f[\/latex]&#8220;.<\/p>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">Find the gradient\u00a0[latex]\\nabla{f}(x,y)[\/latex] of each of the following functions:<\/p>\n<ol style=\"list-style-type: lower-alpha;\">\n<li>[latex]f(x,y)=x^2-xy+3y^2[\/latex]<\/li>\n<li>[latex]f(x,y)=\\sin{3x}\\cos{3y}[\/latex]<\/li>\n<\/ol>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q131344589\">Show Solution<\/button><\/p>\n<div id=\"q131344589\" class=\"hidden-answer\" style=\"display: none\">\n<p>For both parts a. and b., we first calculate the partial derivatives\u00a0[latex]f_x[\/latex] and\u00a0[latex]f_y[\/latex], then use\u00a0the gradient of [latex]f[\/latex].<\/p>\n<ol style=\"list-style-type: lower-alpha;\">\n<li>[latex]\\hspace{1cm}\\begin{align}f_x(x,y)&=2x-y\\text{ and }f_x(x,y)=-x+6y,\\text{ so} \\\\\\nabla{f}(x,y)&=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}} \\\\    &=(2x-y){\\bf{i}}+(-x+6y){\\bf{j}}.    \\end{align}[\/latex]<\/li>\n<li>[latex]\\hspace{1cm}\\begin{align}f_x(x,y)&=3\\cos{3x}\\cos{3y}\\text{ and }f_x(x,y)=-3\\sin{3x}\\sin{3y},\\text{ so} \\\\    \\nabla{f}(x,y)&=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}} \\\\    &=(3\\cos{3x}\\cos{3y}){\\bf{i}}-(3\\sin{3x}\\sin{3y}){\\bf{j}}.    \\end{align}[\/latex]<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm325844\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=325844&theme=lumen&iframe_resize_id=ohm325844&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\">Properties of the Gradient<\/h3>\n<p class=\"whitespace-normal break-words\">The gradient has important properties that make it useful for understanding how functions behave. We&#8217;ve already seen one: the formula for the directional derivative. Let&#8217;s dig deeper.<\/p>\n<p class=\"whitespace-normal break-words\">Recall that if the angle between two vectors [latex]{\\bf{a}}[\/latex] and [latex]{\\bf{b}}[\/latex] is [latex]\\varphi[\/latex], then [latex]{\\bf{a}}\\cdot{\\bf{b}}=|{\\bf{a}}||{\\bf{b}}|\\cos\\varphi[\/latex]. If the angle between [latex]\\nabla{f}(x_0,y_0)[\/latex] and [latex]{\\bf{u}}=(\\cos\\theta){\\bf{i}}+(\\sin\\theta){\\bf{j}}[\/latex] is [latex]\\varphi[\/latex], then:<\/p>\n<p class=\"whitespace-normal break-words\" style=\"text-align: center;\">[latex]D_{\\bf{u}}f(x_0,y_0)=\\nabla{f}(x_0,y_0)\\cdot{\\bf{u}}=|\\nabla{f}(x_0,y_0)||{\\bf{u}}|\\cos\\varphi=|\\nabla{f}(x_0,y_0)|\\cos\\varphi[\/latex]<\/p>\n<p class=\"whitespace-normal break-words\">The [latex]|{\\bf{u}}|[\/latex] term disappears because [latex]{\\bf{u}}[\/latex] is a unit vector. The directional derivative equals the magnitude of the gradient at [latex](x_0, y_0)[\/latex], multiplied by [latex]\\cos\\varphi[\/latex].<\/p>\n<p class=\"whitespace-normal break-words\">Since [latex]\\cos\\varphi[\/latex] ranges from [latex]-1[\/latex] to [latex]1[\/latex], we can determine when the directional derivative is maximized or minimized:<\/p>\n<ul class=\"[&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc space-y-2.5 pl-7\">\n<li class=\"whitespace-normal break-words\">If [latex]\\varphi=0[\/latex], then [latex]\\cos\\varphi=1[\/latex] and [latex]\\nabla{f}(x_0,y_0)[\/latex] and [latex]{\\bf{u}}[\/latex] point in the same direction. This maximizes [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex].<\/li>\n<li class=\"whitespace-normal break-words\">If [latex]\\varphi=\\pi[\/latex], then [latex]\\cos\\varphi=-1[\/latex] and [latex]\\nabla{f}(x_0,y_0)[\/latex] and [latex]{\\bf{u}}[\/latex] point in opposite directions. This minimizes [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex].<\/li>\n<li class=\"whitespace-normal break-words\">If [latex]\\nabla{f}(x_0,y_0)={\\bf{0}}[\/latex], then [latex]D_{\\bf{u}}f(x_0,y_0)=0[\/latex] for any unit vector [latex]{\\bf{u}}[\/latex].<\/li>\n<\/ul>\n<p>These cases are outlined in the following theorem.<\/p>\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\n<h3>properties of the gradient<\/h3>\n<p>Suppose the function\u00a0[latex]z=f(x, y)[\/latex] is differentiable at\u00a0[latex](x_0, y_0)[\/latex] (Figure 3).<\/p>\n<ol style=\"list-style-type: lower-roman;\">\n<li>If [latex]\\nabla{f}(x_0,y_0)=0[\/latex], then [latex]D_{\\bf{u}}f(x_0,y_0)=0[\/latex] for any unit vector [latex]\\bf{u}[\/latex].<\/li>\n<li>If [latex]\\nabla{f}(x_0,y_0)\\ne 0[\/latex], then [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex] is maximized when [latex]\\bf{u}[\/latex] points in the same direction as [latex]\\nabla{f}(x_0,y_0)[\/latex]. The maximum value of [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex] is [latex]\\|\\nabla{f}(x_0,y_0)\\|[\/latex].<\/li>\n<li>If [latex]\\nabla{f}(x_0,y_0)\\ne 0[\/latex], then [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex] is minimized when [latex]\\bf{u}[\/latex] points in the opposite direction from [latex]\\nabla{f}(x_0,y_0)[\/latex]. The minimum value of [latex]D_{\\bf{u}}f(x_0,y_0)[\/latex] is [latex]-\\|\\nabla{f}(x_0,y_0)\\|[\/latex].<\/li>\n<\/ol>\n<\/section>\n<figure id=\"attachment_1260\" aria-describedby=\"caption-attachment-1260\" style=\"width: 607px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1260\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23010542\/4-6-3.jpeg\" alt=\"An upward facing paraboloid in xyz space with point P0 (x0, y0, z0). From this point, there are arrows going up, down, and around the paraboloid. On the xy plane, the point (x0, y0) is marked, and the corresponding arrows are drawn onto the plane: the down arrow corresponds to \u2212\u2207f (most rapid decrease in f), the up arrow corresponds to \u2207f (most rapid increase in f), and the arrows around correspond to no change in f. The up\/down arrows are perpendicular to the around arrows in their projection on the plane.\" width=\"607\" height=\"588\" \/><figcaption id=\"caption-attachment-1260\" class=\"wp-caption-text\">Figure 1. The gradient indicates the maximum and minimum values of the directional derivative at a point.<\/figcaption><\/figure>\n<section class=\"textbox example\" aria-label=\"Example\">Find the direction for which the directional derivative of [latex]f(x, y)=3x^{2}-4xy+2y^{2}[\/latex] at [latex](-2, 3)[\/latex] is a maximum. What is the maximum value?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q721568432\">Show Solution<\/button><\/p>\n<div id=\"q721568432\" class=\"hidden-answer\" style=\"display: none\">The maximum value of the directional derivative occurs when [latex]\\nabla{f}[\/latex] and the unit vector point in the same direction. Therefore, we start by calculating\u00a0[latex]\\nabla{f}(x,y)[\/latex]:[latex]\\hspace{6cm}\\large{\\begin{align}f_x(x,y)&=6x-4y\\text{ and }f_y(x,y)=-4x+4y,\\text{ so} \\\\    \\nabla{f}(x,y)&=f_x(x,y){\\bf{i}}+f_y(x,y){\\bf{j}}=(6x-4y){\\bf{i}}+(-4x+4y){\\bf{j}}.    \\end{align}}[\/latex]<\/p>\n<p>Next, we evaluate the gradient at\u00a0[latex](-2,3)[\/latex]:<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\nabla{f}(-2,3)=(6(-2)-4(3)){\\bf{i}}+(-4(-2)+3(3)){\\bf{j}}=-24{\\bf{i}}+20{\\bf{j}}}.[\/latex]<\/p>\n<p>We need to find a unit vector that points in the same direction as [latex]\\nabla{f}(-2,3)[\/latex]<span style=\"font-size: 0.9em;\">,<\/span>\u00a0so the next step is to divide [latex]\\nabla{f}(-2,3)[\/latex] by its magnitude, which is\u00a0[latex]\\sqrt{(-24)^2+(20)^2}=\\sqrt{976}=4\\sqrt{61}[\/latex]. Therefore,<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\frac{\\nabla{f}(-2,3)}{\\|\\nabla{f}(-2,3)\\|}=\\frac{-24}{4\\sqrt{61}}{\\bf{i}}+\\frac{20}{4\\sqrt{61}}{\\bf{j}}=\\frac{-6\\sqrt{61}}{61}{\\bf{i}}+\\frac{5\\sqrt{61}}{61}{\\bf{j}}}.[\/latex]<\/p>\n<p>This is the unit vector that points in the same direction as [latex]\\nabla{f}(-2,3)[\/latex]. To find the angle corresponding to this unit vector, we solve the equations<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\cos\\theta=\\frac{-6\\sqrt{61}}{61}}[\/latex] and\u00a0[latex]\\large{\\sin\\theta=\\frac{5\\sqrt{61}}{61}}.[\/latex]<\/p>\n<p>for\u00a0[latex]\\theta[\/latex].\u00a0Since cosine is negative and sine is positive, the angle must be in the second quadrant. Therefore,<\/p>\n<p>[latex]\\theta=\\pi-\\arcsin{((5\\sqrt{61})\/61)}\\approx2.45\\text{ rad}.[\/latex]<\/p>\n<p>The maximum value of the directional derivative at\u00a0[latex](-2, 3)[\/latex] is\u00a0[latex]\\|\\nabla{f}(-2,3)\\|=4\\sqrt{61}[\/latex] (see the following figure).<\/p>\n<figure id=\"attachment_1262\" aria-describedby=\"caption-attachment-1262\" style=\"width: 523px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1262\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23010640\/4-6-4.jpeg\" alt=\"An upward facing paraboloid f(x, y) = 3x2 \u2013 4xy + 2y2 with tangent plane at the point (\u20132, 3, 54). The tangent plane has equation z = \u201324x + 20y \u2013 54.\" width=\"523\" height=\"340\" \/><figcaption id=\"caption-attachment-1262\" class=\"wp-caption-text\">Figure 2.\u00a0The maximum value of the directional derivative at [latex]\\small{(-2,3)}[\/latex]\u00a0is in the direction of the gradient.<\/figcaption><\/figure>\n<\/div>\n<\/div>\n<\/section>\n<h3 class=\"text-lg font-bold text-text-100 mt-1 -mb-1.5\">Interpreting the Gradient<\/h3>\n<p>Figure 3 shows part of the graph of [latex]f(x,y)=3+\\sin x\\sin y[\/latex]. Given a point [latex](a, b)[\/latex] in the domain of [latex]f[\/latex], the maximum value of the gradient at that point is [latex]|\\nabla{f}(a,b)|[\/latex]. If the surface represented a topographical map, this would be the rate of greatest ascent. In the opposite direction, it would be the rate of greatest descent.<\/p>\n<figure id=\"attachment_1265\" aria-describedby=\"caption-attachment-1265\" style=\"width: 724px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1265\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23010758\/4-6-5.jpeg\" alt=\"An surface in xyz space with point at f(a, b). There is an arrow in the direction of greatest descent.\" width=\"724\" height=\"637\" \/><figcaption id=\"caption-attachment-1265\" class=\"wp-caption-text\">Figure 3. A typical surface in [latex]\\mathbb{R}^{3}[\/latex].\u00a0Given a point on the surface, the directional derivative can be calculated using the gradient.<\/figcaption><\/figure>\n<p class=\"whitespace-normal break-words\">When using a topographical map, the steepest slope is always in the direction where the contour lines are closest together (see Figure 4). This is analogous to the contour map of a function, assuming the level curves are obtained for equally spaced values throughout the range of that function.<\/p>\n<figure id=\"attachment_1266\" aria-describedby=\"caption-attachment-1266\" style=\"width: 267px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1266\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23011025\/4-6-6.jpeg\" alt=\"Two crossing dashed lines that pass through the origin and a series of curved lines approaching the crosses dashed lines as if they are asymptotes.\" width=\"267\" height=\"272\" \/><figcaption id=\"caption-attachment-1266\" class=\"wp-caption-text\">Figure 4. Contour map for the function [latex]\\small{f(x,y)=x^{2}-y^{2}}[\/latex] using level values between [latex]\\small{-5}[\/latex] and [latex]\\small{5}[\/latex].<\/figcaption><\/figure>\n","protected":false},"author":15,"menu_order":17,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1147","chapter","type-chapter","status-publish","hentry"],"part":428,"module-header":"- Select Header -","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/users\/15"}],"version-history":[{"count":5,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1147\/revisions"}],"predecessor-version":[{"id":2887,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1147\/revisions\/2887"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/parts\/428"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1147\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/media?parent=1147"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapter-type?post=1147"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/contributor?post=1147"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/license?post=1147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}