{"id":46,"date":"2022-01-10T16:17:31","date_gmt":"2022-01-10T21:17:31","guid":{"rendered":"https:\/\/pressbooks.library.ryerson.ca\/multivariatecalculus\/?post_type=chapter&#038;p=46"},"modified":"2024-01-30T18:03:10","modified_gmt":"2024-01-30T23:03:10","slug":"chapter-1-2","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/chapter\/chapter-1-2\/","title":{"raw":"Unit 4: Local Extrema and Saddle Points","rendered":"Unit 4: Local Extrema and Saddle Points"},"content":{"raw":"<h2>The Concept<\/h2>\r\nWe use the <strong>first derivative test<\/strong> and <strong>second derivative test<\/strong> to locate and distinguish between local minima, local maxima and saddle points for a function [latex]z = f(x,y)[\/latex].\r\n<h3><strong>First derivative test<\/strong><\/h3>\r\nFor functions of a single variable, [latex]y = f(x)[\/latex], <strong>critical points <\/strong>in 2D are defined as the values of the function in which the derivative [latex]\\frac{df}{dx}[\/latex] equals zero or which does not exist. When dealing with functions of two variables, [latex]z = f(x,y)[\/latex], the concept of critical points in 3D remains virtually identical, save for the fact that we must now deal with partial derivatives. Thus, for functions of two variables, [latex]z = f(x,y)[\/latex], in order to find the critical points [latex](x_0, y_0)[\/latex], we need to solve a system of two equations: [latex]\\frac{\\partial f}{\\partial x}=0[\/latex] and [latex]\\frac{\\partial f}{\\partial y}=0[\/latex].\r\n<h3><strong>Second derivative test<\/strong><\/h3>\r\nSimilarly, the most important quantity in the second derivative test is <strong>the Jacobian matrix<\/strong>, denoted as \u2018[latex]J[\/latex]\u2019. It is the matrix of all its second-order partial derivatives, i.e.,\r\n\r\n[latex]J=\\begin{pmatrix} \\frac{\\partial^2 f}{\\partial x^2} &amp; \\frac{\\partial^2 f}{\\partial x \\partial y} \\\\ \\frac{\\partial^2 f}{\\partial y \\partial x} &amp; \\frac{\\partial^2 f}{\\partial y^2} \\end{pmatrix} [\/latex] or [latex]\\begin{pmatrix} f_{xx} &amp; f_{xy} \\\\ f_{yx}&amp; f_{yy} \\end{pmatrix}.[\/latex]\r\n\r\nNote that if <span>mixed second-order derivatives ([latex]f_{xy}, f_{yx}[\/latex]) are continuous, then<\/span> [latex]f_{xy}=f_{yx}[\/latex] (Clairaut\u2019s Theorem)<span>. <\/span>We plug in the critical points from the first derivative into the Jacobian and calculate <strong>the determinant of the Jacobian matrix<\/strong>, denoted as \u2018[latex]D[\/latex]\u2019, i.e.,\r\n<p style=\"text-align: center\">[latex]D=\\begin{vmatrix} f_{xx}(x_0, y_0) &amp; f_{xy}(x_0, y_0) \\\\ f_{yx}(x_0, y_0)&amp; f_{yy}(x_0, y_0) \\end{vmatrix}=f_{xx}(x_0, y_0) f_{yy}(x_0, y_0) - f_{xy}(x_0, y_0) f_{yx}(x_0, y_0) [\/latex]<\/p>\r\nThen we use the following rules to conduct the second derivative test:\r\n<ol>\r\n \t<li style=\"font-weight: 400\">If [latex]D&gt;0[\/latex] and [latex]f_{xx}(x_0, y_0)&gt;0[\/latex], then [latex]f[\/latex] has a <strong>local minimum<\/strong> at [latex](x_0, y_0)[\/latex].<\/li>\r\n \t<li style=\"font-weight: 400\">If [latex]D&gt;0[\/latex] and [latex]f_{xx}(x_0, y_0)&lt;0[\/latex], then [latex]f[\/latex] has a <strong>local maximum<\/strong> at [latex](x_0, y_0)[\/latex].<\/li>\r\n \t<li style=\"font-weight: 400\">If [latex]D&lt;0[\/latex], then [latex]f[\/latex] has a <strong>saddle point<\/strong> at [latex](x_0, y_0)[\/latex].<\/li>\r\n \t<li style=\"font-weight: 400\">If [latex]D=0[\/latex], then the test is inconclusive.<\/li>\r\n<\/ol>\r\n<h2>The Plot<\/h2>\r\nNow, you should engage with the 3D plot below to understand local maximum, local minimum and saddle points[footnote]Made with GeoGebra, licensed Creative Commons CC BY-NC-SA 4.0.[\/footnote]. Follow the steps below to apply changes to the plot and observe the effects:\r\n<ol>\r\n \t<li style=\"font-weight: 400\">Input a function of two variables into the [latex]f(x,y)[\/latex] input function section.<\/li>\r\n \t<li style=\"font-weight: 400\">Move the point on the plane around and the Jacobian determinant will automatically be calculated for you. The equation for each is provided, where the determinant of the jacobian represents the D value from the formula above.<\/li>\r\n \t<li style=\"font-weight: 400\">Once you hover over a local maximum, local minimum or a saddle point, a text will appear notifying you of the answer.<\/li>\r\n<\/ol>\r\n<span>[h5p id=\"10\"]<\/span>\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<h2 class=\"textbox__title\">Self-Checking Questions<\/h2>\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nCheck your understanding by solving the following questions<span>[footnote]Gilbert Strang, Edwin \u201cJed\u201d Herman,\u00a0 OpenStax,\u00a0Calculus Volume 3,\u00a0 Calculus Volumes 1, 2, and 3 are licensed under an Attribution-NonCommercial-Sharealike 4.0 International License (CC BY-NC-SA).[\/footnote]<\/span>:\r\n\r\nUse the first and second derivative tests to identify any critical points and determine whether each critical point is a maximum, minimum, saddle point or none of these.\r\n<ol>\r\n \t<li style=\"font-weight: 400\">[latex]f(x,y) = -x^3+4xy-2y^2+1[\/latex]<\/li>\r\n \t<li style=\"font-weight: 400\">[latex]f(x,y) = 2xye^{-x2-y2}[\/latex]<\/li>\r\n<\/ol>\r\nUse the graph to find the answers to these questions.\r\n\r\n<\/div>\r\n<\/div>","rendered":"<h2>The Concept<\/h2>\n<p>We use the <strong>first derivative test<\/strong> and <strong>second derivative test<\/strong> to locate and distinguish between local minima, local maxima and saddle points for a function [latex]z = f(x,y)[\/latex].<\/p>\n<h3><strong>First derivative test<\/strong><\/h3>\n<p>For functions of a single variable, [latex]y = f(x)[\/latex], <strong>critical points <\/strong>in 2D are defined as the values of the function in which the derivative [latex]\\frac{df}{dx}[\/latex] equals zero or which does not exist. When dealing with functions of two variables, [latex]z = f(x,y)[\/latex], the concept of critical points in 3D remains virtually identical, save for the fact that we must now deal with partial derivatives. Thus, for functions of two variables, [latex]z = f(x,y)[\/latex], in order to find the critical points [latex](x_0, y_0)[\/latex], we need to solve a system of two equations: [latex]\\frac{\\partial f}{\\partial x}=0[\/latex] and [latex]\\frac{\\partial f}{\\partial y}=0[\/latex].<\/p>\n<h3><strong>Second derivative test<\/strong><\/h3>\n<p>Similarly, the most important quantity in the second derivative test is <strong>the Jacobian matrix<\/strong>, denoted as \u2018[latex]J[\/latex]\u2019. It is the matrix of all its second-order partial derivatives, i.e.,<\/p>\n<p>[latex]J=\\begin{pmatrix} \\frac{\\partial^2 f}{\\partial x^2} & \\frac{\\partial^2 f}{\\partial x \\partial y} \\\\ \\frac{\\partial^2 f}{\\partial y \\partial x} & \\frac{\\partial^2 f}{\\partial y^2} \\end{pmatrix}[\/latex] or [latex]\\begin{pmatrix} f_{xx} & f_{xy} \\\\ f_{yx}& f_{yy} \\end{pmatrix}.[\/latex]<\/p>\n<p>Note that if <span>mixed second-order derivatives ([latex]f_{xy}, f_{yx}[\/latex]) are continuous, then<\/span> [latex]f_{xy}=f_{yx}[\/latex] (Clairaut\u2019s Theorem)<span>. <\/span>We plug in the critical points from the first derivative into the Jacobian and calculate <strong>the determinant of the Jacobian matrix<\/strong>, denoted as \u2018[latex]D[\/latex]\u2019, i.e.,<\/p>\n<p style=\"text-align: center\">[latex]D=\\begin{vmatrix} f_{xx}(x_0, y_0) & f_{xy}(x_0, y_0) \\\\ f_{yx}(x_0, y_0)& f_{yy}(x_0, y_0) \\end{vmatrix}=f_{xx}(x_0, y_0) f_{yy}(x_0, y_0) - f_{xy}(x_0, y_0) f_{yx}(x_0, y_0)[\/latex]<\/p>\n<p>Then we use the following rules to conduct the second derivative test:<\/p>\n<ol>\n<li style=\"font-weight: 400\">If [latex]D>0[\/latex] and [latex]f_{xx}(x_0, y_0)>0[\/latex], then [latex]f[\/latex] has a <strong>local minimum<\/strong> at [latex](x_0, y_0)[\/latex].<\/li>\n<li style=\"font-weight: 400\">If [latex]D>0[\/latex] and [latex]f_{xx}(x_0, y_0)<0[\/latex], then [latex]f[\/latex] has a <strong>local maximum<\/strong> at [latex](x_0, y_0)[\/latex].<\/li>\n<li style=\"font-weight: 400\">If [latex]D<0[\/latex], then [latex]f[\/latex] has a <strong>saddle point<\/strong> at [latex](x_0, y_0)[\/latex].<\/li>\n<li style=\"font-weight: 400\">If [latex]D=0[\/latex], then the test is inconclusive.<\/li>\n<\/ol>\n<h2>The Plot<\/h2>\n<p>Now, you should engage with the 3D plot below to understand local maximum, local minimum and saddle points<a class=\"footnote\" title=\"Made with GeoGebra, licensed Creative Commons CC BY-NC-SA 4.0.\" id=\"return-footnote-46-1\" href=\"#footnote-46-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a>. Follow the steps below to apply changes to the plot and observe the effects:<\/p>\n<ol>\n<li style=\"font-weight: 400\">Input a function of two variables into the [latex]f(x,y)[\/latex] input function section.<\/li>\n<li style=\"font-weight: 400\">Move the point on the plane around and the Jacobian determinant will automatically be calculated for you. The equation for each is provided, where the determinant of the jacobian represents the D value from the formula above.<\/li>\n<li style=\"font-weight: 400\">Once you hover over a local maximum, local minimum or a saddle point, a text will appear notifying you of the answer.<\/li>\n<\/ol>\n<p><span><\/p>\n<div id=\"h5p-10\">\n<div class=\"h5p-content\" data-content-id=\"10\"><\/div>\n<\/div>\n<p><\/span><\/p>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<h2 class=\"textbox__title\">Self-Checking Questions<\/h2>\n<\/header>\n<div class=\"textbox__content\">\n<p>Check your understanding by solving the following questions<span><a class=\"footnote\" title=\"Gilbert Strang, Edwin \u201cJed\u201d Herman,\u00a0 OpenStax,\u00a0Calculus Volume 3,\u00a0 Calculus Volumes 1, 2, and 3 are licensed under an Attribution-NonCommercial-Sharealike 4.0 International License (CC BY-NC-SA).\" id=\"return-footnote-46-2\" href=\"#footnote-46-2\" aria-label=\"Footnote 2\"><sup class=\"footnote\">[2]<\/sup><\/a><\/span>:<\/p>\n<p>Use the first and second derivative tests to identify any critical points and determine whether each critical point is a maximum, minimum, saddle point or none of these.<\/p>\n<ol>\n<li style=\"font-weight: 400\">[latex]f(x,y) = -x^3+4xy-2y^2+1[\/latex]<\/li>\n<li style=\"font-weight: 400\">[latex]f(x,y) = 2xye^{-x2-y2}[\/latex]<\/li>\n<\/ol>\n<p>Use the graph to find the answers to these questions.<\/p>\n<\/div>\n<\/div>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-46-1\">Made with GeoGebra, licensed Creative Commons CC BY-NC-SA 4.0. <a href=\"#return-footnote-46-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><li id=\"footnote-46-2\">Gilbert Strang, Edwin \u201cJed\u201d Herman,\u00a0 OpenStax,\u00a0Calculus Volume 3,\u00a0 Calculus Volumes 1, 2, and 3 are licensed under an Attribution-NonCommercial-Sharealike 4.0 International License (CC BY-NC-SA). <a href=\"#return-footnote-46-2\" class=\"return-footnote\" aria-label=\"Return to footnote 2\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":178,"menu_order":4,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-46","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/pressbooks\/v2\/chapters\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/wp\/v2\/users\/178"}],"version-history":[{"count":45,"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/pressbooks\/v2\/chapters\/46\/revisions"}],"predecessor-version":[{"id":633,"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/pressbooks\/v2\/chapters\/46\/revisions\/633"}],"part":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/pressbooks\/v2\/chapters\/46\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/pressbooks\/v2\/chapter-type?post=46"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/wp\/v2\/contributor?post=46"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/multivariatecalculus\/wp-json\/wp\/v2\/license?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}