{"id":875,"date":"2021-09-03T17:28:44","date_gmt":"2021-09-03T17:28:44","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/calculus3\/?post_type=chapter&#038;p=875"},"modified":"2022-10-29T02:17:53","modified_gmt":"2022-10-29T02:17:53","slug":"lagrange-multipliers","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/calculus3\/chapter\/lagrange-multipliers\/","title":{"raw":"Lagrange Multipliers","rendered":"Lagrange Multipliers"},"content":{"raw":"<div class=\"textbox learning-objectives\">\r\n<h3>Learning Objectives<\/h3>\r\n<div id=\"1\" class=\"ui-has-child-title\" data-type=\"abstract\"><section>\r\n<ul class=\"os-abstract\">\r\n \t<li><span class=\"os-abstract-content\">Use the method of Lagrange multipliers to solve optimization problems with one constraint.<\/span><\/li>\r\n \t<li><span class=\"os-abstract-content\">Use the method of Lagrange multipliers to solve optimization problems with two constraints.<\/span><\/li>\r\n<\/ul>\r\n<\/section><\/div>\r\n<\/div>\r\n<p id=\"fs-id1167793827503\">Solving optimization problems for functions of two or more variables can be similar to solving such problems in single-variable calculus. However, techniques for dealing with multiple variables allow us to solve more varied optimization problems for which we need to deal with additional conditions or constraints. In this section, we examine one of the more common and useful methods for solving optimization problems with constraints.<\/p>\r\n\r\n<section id=\"fs-id1167794098992\" data-depth=\"1\">\r\n<h2 data-type=\"title\">Lagrange Multipliers<\/h2>\r\n<p id=\"fs-id1167793361325\">Chapter Opener: Profitable Golf Balls\u00a0was an applied situation involving maximizing a profit function, subject to certain\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term199\" data-type=\"term\">constraints<\/span><\/strong>. In that example, the constraints involved a maximum number of golf balls that could be produced and sold in [latex]1[\/latex] month [latex](x)[\/latex], and a maximum number of advertising hours that could be purchased per month [latex](y)[\/latex]. Suppose these were combined into a budgetary constraint, such as [latex]20x+4y\\leq 216[\/latex], that took into account the cost of producing the golf balls and the number of advertising hours purchased per month. The goal is, still, to maximize profit, but now there is a different type of constraint on the values of [latex]x[\/latex] and [latex]y[\/latex]. This constraint, when combined with the profit function [latex]f(x, y)=48x+96y-x^{2}-2xy-9y^{2}[\/latex], is an example of an\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term200\" data-type=\"term\">optimization problem<\/span><\/strong>, and the function [latex]f(x, y)[\/latex] is called the\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term201\" data-type=\"term\">objective function<\/span><\/strong>. A graph of various level curves of the function [latex]f(x, y)[\/latex] follows.<\/p>\r\n\r\n[caption id=\"attachment_1292\" align=\"aligncenter\" width=\"417\"]<img class=\"size-full wp-image-1292\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23140514\/4-8-1.jpeg\" alt=\"A series of rotated ellipses that become increasingly large. The smallest one is marked f(x, y) = 400, and the biggest one is marked f(x, y) = 150.\" width=\"417\" height=\"347\" \/> Figure 1. Graph of level curves of the function\u00a0[latex]\\small{f(x, y)=48x+96y-x^{2}-2xy-9y^{2}}[\/latex] corresponding to [latex]\\small{c=150,250,350, \\text{ and } 400}[\/latex].[\/caption]In\u00a0Figure 1, the value [latex]c[\/latex] represents different profit levels (i.e., values of the function [latex]f[\/latex]). As the value of [latex]c[\/latex] increases, the curve shifts to the right. Since our goal is to maximize profit, we want to choose a curve as far to the right as possible. If there was no restriction on the number of golf balls the company could produce, or the number of units of advertising available, then we could produce as many golf balls as we want, and advertise as much as we want, and there would not be a maximum profit for the company. Unfortunately, we have a budgetary constraint that is modeled by the inequality [latex]20x+4y\\leq 216[\/latex]. To see how this constraint interacts with the profit function,\u00a0Figure 2\u00a0shows the graph of the line [latex]2x+4y=216[\/latex] superimposed on the previous graph.<\/section>[caption id=\"attachment_1294\" align=\"aligncenter\" width=\"370\"]<img class=\"size-full wp-image-1294\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23140701\/4-8-2.jpeg\" alt=\"A series of rotated ellipses that become increasingly large. On the smallest ellipse, which is red, there is a tangent line marked with equation 20x + 4y = 216 that appears to touch the ellipse near (10, 4).\" width=\"370\" height=\"309\" \/> Figure 2.\u00a0Graph of level curves of the function\u00a0[latex]\\small{f(x, y)=48x+96y-x^{2}-2xy-9y^{2}}[\/latex] corresponding to [latex]\\small{c=150,250,350, \\text{ and } 395}[\/latex].\u00a0The red graph is the constraint function.[\/caption]As mentioned previously, the maximum profit occurs when the level curve is as far to the right as possible. However, the level of production corresponding to this maximum profit must also satisfy the budgetary constraint, so the point at which this profit occurs must also lie on (or to the left of) the red line in\u00a0Figure 2. Inspection of this graph reveals that this point exists where the line is tangent to the level curve of [latex]f[\/latex]. Trial and error reveals that this profit level seems to be around [latex]395[\/latex], when [latex]x[\/latex] and [latex]y[\/latex] are both just less than [latex]5[\/latex]. We return to the solution of this problem later in this section. From a theoretical standpoint, at the point where the profit curve is tangent to the constraint line, the gradient of both of the functions evaluated at that point must point in the same (or opposite) direction. Recall that the gradient of a function of more than one variable is a vector. If two vectors point in the same (or opposite) directions, then one must be a constant multiple of the other. This idea is the basis of the\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term202\" data-type=\"term\">method of Lagrange multipliers<\/span>.<\/strong>\r\n<div class=\"textbox shaded\">\r\n<h3 style=\"text-align: center;\">Theorem: method of lagrange multipliers: one constant<\/h3>\r\n\r\n<hr \/>\r\n\r\nLet\u00a0[latex]f[\/latex] and\u00a0[latex]g[\/latex]\u00a0be functions of two variables with continuous partial derivatives at every point of some open set containing the smooth curve [latex]g(x,y)=0[\/latex]. Suppose that [latex]f[\/latex], when restricted to points on the curve [latex]g(x,y)=0[\/latex], has a local extremum at the point [latex](x_0,y_0)[\/latex] and that [latex]\\nabla{g}(x_0,y_0)\\ne0[\/latex]. Then there is a number [latex]\\lambda[\/latex] called a\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term203\" data-type=\"term\">Lagrange multiplier<\/span><\/strong>, for which\r\n<p style=\"text-align: center;\">[latex]\\nabla{f}(x_0,y_0)=\\lambda\\nabla{g}(x_0,y_0)[\/latex]<\/p>\r\n\r\n<\/div>\r\n<h2 data-type=\"title\">Proof<\/h2>\r\n<p id=\"fs-id1167794066211\">Assume that a constrained extremum occurs at the point [latex](x_0, y_0)[\/latex]. Furthermore, we assume that the equation [latex]g(x, y)=0[\/latex] can be smoothly parameterized as<\/p>\r\n<p style=\"text-align: center;\">[latex]x=x(s)[\/latex] and\u00a0[latex]y=y(s)[\/latex]<\/p>\r\nwhere\u00a0<em data-effect=\"italics\">s<\/em>\u00a0is an arc length parameter with reference point [latex](x_0, y_0)[\/latex] at [latex]s=0[\/latex]. Therefore, the quantity [latex]z=f(x(s), y(s))[\/latex] has a relative maximum or relative minimum at [latex]s=0[\/latex], and this implies that [latex]\\frac{dz}{ds}=0[\/latex] at that point. From the chain rule,\r\n<p style=\"text-align: center;\">[latex]\\large{\\frac{dz}{ds}=\\frac{\\partial f}{\\partial x}\\cdot\\frac{\\partial x}{\\partial s}+\\frac{\\partial f}{\\partial y}\\cdot\\frac{\\partial y}{\\partial s}=\\left(\\frac{\\partial f}{\\partial x}{\\bf{\\hat{i}}}+\\frac{\\partial f}{\\partial y}{\\bf{\\hat{j}}}\\right)\\cdot\\left(\\frac{\\partial x}{\\partial s}{\\bf{\\hat{i}}}+\\frac{\\partial y}{\\partial s}{\\bf{\\hat{j}}}\\right)=0,}[\/latex]<\/p>\r\nwhere the derivatives are all evaluated at [latex]s=0[\/latex]. However, the first factor in the dot product is the gradient of [latex]f[\/latex], and the second factor is the unit tangent vector [latex]\\text{T}(0)[\/latex] to the constraint curve. Since the point [latex](x_0, y_0)[\/latex] corresponds to [latex]s=0[\/latex], it follows from this equation that\r\n<p style=\"text-align: center;\">[latex]\\large{\\nabla{f}(x_0,y_0)\\cdot{\\text{T}}(0)=0},[\/latex]<\/p>\r\n<span style=\"font-size: 1rem; text-align: initial;\">which implies that the gradient is either [latex]0[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">or is normal to the constraint curve at a constrained relative extremum. However, the constraint curve [latex]g(x, y)=0[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">is a level curve for the function [latex]g(x, y)[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">so that if [latex]\\nabla{g}(x_0,y_0)\\ne0[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">then [latex]\\nabla{g}(x_0,y_0)[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">is normal to this curve at [latex](x_0, y_0)[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">It follows, then, that there is some scalar [latex]\\lambda[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">such that<\/span>\r\n<p style=\"text-align: center;\">[latex]\\large{\\nabla{f}(x_0,y_0)=\\lambda\\nabla{g}(x_0,y_0)}[\/latex]<\/p>\r\n[latex]_\\blacksquare[\/latex]\r\n\r\nTo apply the\u00a0Method of Lagrange Multipliers: One Constraint\u00a0to an optimization problem similar to that for the golf ball manufacturer, we need a problem-solving strategy.\r\n<div id=\"fs-id1167794333153\" class=\"problem-solving\" data-type=\"note\">\r\n<div data-type=\"title\">\r\n<div class=\"textbox examples\">\r\n<h3 style=\"text-align: center;\">Problem solving strategy: steps for using Lagrange multipliers<\/h3>\r\n\r\n<hr \/>\r\n\r\n<ol id=\"fs-id1167793863160\" type=\"1\">\r\n \t<li>Determine the objective function [latex]f(x, y)[\/latex] and the constraint function [latex]g(x, y)[\/latex]. Does the optimization problem involve maximizing or minimizing the objective function?<\/li>\r\n \t<li>Set up a system of equations using the following template:\r\n<p style=\"text-align: left;\">[latex]\\hspace{8cm}\\begin{align}<\/p>\r\n\\nabla{f}(x_0,y_0)\\cdot{\\text{T}}(0)&amp;=0 \\\\ g(x_0,y_0)&amp;=0. \\end{align}[\/latex]<\/li>\r\n \t<li>Solve for [latex]x_0[\/latex] and\u00a0[latex]y_0[\/latex].<\/li>\r\n \t<li>The largest of the values of [latex]f[\/latex] at the solutions found in step 3 maximizes [latex]f[\/latex]; the smallest of those values minimizes [latex]f[\/latex].<\/li>\r\n<\/ol>\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: using lagrange multipliers<\/h3>\r\nUse the method of Lagrange multipliers to find the minimum value of [latex]f(x,y)=x^2+4y^2-2x+8y[\/latex] subject to the constraint [latex]x+2y=7[\/latex].\r\n\r\n[reveal-answer q=\"573132468\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"573132468\"]\r\n<p id=\"fs-id1167794333406\">Let\u2019s follow the problem-solving strategy:<\/p>\r\n\r\n<ol>\r\n \t<li>The optimization function is [latex]f(x,y)=x^2+4y^2-2x+8y[\/latex]. To determine the constraint function, we must first subtract [latex]7[\/latex] from both sides of the constraint. This gives [latex]x+2y-7=0[\/latex]. The constraint function is equal to the left-hand side, so [latex]g(x,y)=x+2y-7[\/latex]. The problem asks us to solve for the minimum value of [latex]f[\/latex], subject to the constraint (see the following graph).<\/li>\r\n<\/ol>\r\n[caption id=\"attachment_1296\" align=\"aligncenter\" width=\"343\"]<img class=\"size-full wp-image-1296\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23140848\/4-8-3.jpeg\" alt=\"Two rotated ellipses, one within the other. On the largest ellipse, which is marked f(x, y) = 26, there is a tangent line marked with equation x + 2y = 7 that appears to touch the ellipse near (5, 1).\" width=\"343\" height=\"348\" \/> Figure 3.\u00a0Graph of level curves of the function\u00a0[latex]\\small{f(x, y)=x^{2}+4y^{2}-2x+8y}[\/latex] corresponding to [latex]\\small{c=10\\text{ and } 26}[\/latex].\u00a0The red graph is the constraint function.[\/caption]2. We then must calculate the gradients of both [latex]f[\/latex] and\u00a0[latex]g[\/latex]:<span data-type=\"newline\">\r\n<\/span>[latex]\\hspace{8cm}\\begin{align}\r\n\\nabla{f}(x,y)&amp;=(2x-2){\\bf{i}}+(8y+8){\\bf{j}} \\\\\r\n\\nabla{g}(x,y)&amp;={\\bf{i}}+2{\\bf{j}}.\r\n\\end{align}[\/latex]\r\nThe equation [latex]\\nabla{f}(x_0,y_0)=\\lambda\\nabla{g}(x_0,y_0)[\/latex] becomes\r\n<div id=\"fs-id1167794063017\" data-type=\"equation\" data-label=\"\">\r\n<div style=\"text-align: center;\">[latex](2x_0-2){\\bf{i}}+(8y_0+8){\\bf{j}}=\\lambda({\\bf{i}}+2{\\bf{j}}),[\/latex]<\/div>\r\n<\/div>\r\nwhich can be rewritten as\r\n<div id=\"fs-id1167794337439\" data-type=\"equation\" data-label=\"\">\r\n<div style=\"text-align: center;\">[latex](2x_0-2){\\bf{i}}+(8y_0+8){\\bf{j}}=\\lambda{\\bf{i}}+2\\lambda{\\bf{j}}.[\/latex]<\/div>\r\n<\/div>\r\n&nbsp;\r\n\r\nNext, we set the coefficients of [latex]\\bf{i}[\/latex] and [latex]\\bf{j}[\/latex] equal to each other:\r\n\r\n[latex]\\hspace{10cm}\\begin{align}\r\n\r\n2x_0-2&amp;=\\lambda \\\\\r\n\r\n8y_0+8&amp;=2\\lambda.\r\n\r\n\\end{align}[\/latex]\r\n\r\nThe equation [latex]g(x_0,y_0)=0[\/latex] becomes [latex]x_0+2y_0-7=0[\/latex]. Therefore, the system of equations that needs to be solved is\r\n\r\n[latex]\\hspace{9cm}\\begin{align}\r\n\r\n2x_0-2&amp;=\\lambda \\\\\r\n\r\n8y_0+8&amp;=2\\lambda \\\\\r\n\r\nx_0+2y_0-7&amp;=0.\r\n\r\n\\end{align}[\/latex]\r\n<div id=\"fs-id1167793964857\" data-type=\"equation\" data-label=\"\">\r\n<div><\/div>\r\n3. This is a linear system of three equations in three variables. We start by solving the second equation for [latex]\\lambda[\/latex] and substituting it into the first equation. This gives [latex]\\lambda=4y_0+4[\/latex], so substituting this into the first equation gives\r\n\r\n[latex]2x_0-2=4y_0+4[\/latex].\r\n\r\nSolving this equation for [latex]x_0[\/latex] gives [latex]x_0=2y_0+3[\/latex]. We then substitute this into the third equation:\r\n[latex]\\hspace{9cm}\\begin{align}\r\n(2y_0+3)+2y_0-7&amp;=0 \\\\\r\n4y_0-4&amp;=0 \\\\\r\ny_0=1.\r\n\\end{align}[\/latex]\r\n\r\n<span data-type=\"newline\">\r\n<\/span>Since [latex]x_0=2y_0+3[\/latex], this gives [latex]x_0=5[\/latex].\r\n\r\n4. Next, we substitute [latex](5,1)[\/latex] into [latex]f(x,y)=x^2+4y^2-2x+8y[\/latex], gives [latex]f(5,1)=5^2+4(1)^2-2(5)+8(1)=27[\/latex]. To ensure this corresponds to a minimum value on the constraint function, let\u2019s try some other values, such as the intercepts of [latex]g(x,y)=0[\/latex], Which are [latex](7,0)[\/latex] and [latex](0,3.5)[\/latex]. We get [latex]f(7,0)=35[\/latex] and\u00a0[latex]f(0.3.5)=77[\/latex],\u00a0so it appears [latex]f[\/latex] has a minimum at [latex](5,1)[\/latex].\r\n\r\n<\/div>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it<\/h3>\r\nUse the method of Lagrange multipliers to find the maximum value of\u00a0[latex]f(x, y)=9x^{2}+36xy-4y^{2}-18x-8y[\/latex] subject to the constraint\u00a0[latex]3x+4y=32[\/latex].\r\n\r\n[reveal-answer q=\"881245602\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"881245602\"]\r\n\r\n[latex]f[\/latex] has a maximum value of [latex]976[\/latex] at the point\u00a0[latex](8, 2)[\/latex].\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nLet\u2019s now return to the problem posed at the beginning of the section.\r\n<div class=\"textbox exercises\">\r\n<h3>Example: golf balls and lagrange multipliers<\/h3>\r\n<p id=\"fs-id1167793299667\">The golf ball manufacturer, Pro-T, has developed a profit model that depends on the number [latex]x[\/latex] of golf balls sold per month (measured in thousands), and the number of hours per month of advertising [latex]y[\/latex], according to the function<\/p>\r\n<p style=\"text-align: center;\">[latex]z=f(x, y)=48x+96y-x^{2}-2xy-9y^{2}[\/latex],<\/p>\r\n<span style=\"font-size: 1rem; text-align: initial;\">where [latex]z[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">is measured in thousands of dollars. The budgetary constraint function relating the cost of the production of thousands golf balls and advertising units is given by [latex]20x+4y=216[\/latex].\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">Find the values of [latex]x[\/latex] and\u00a0[latex]y[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">that maximize profit, and find the maximum profit.<\/span>\r\n\r\n[reveal-answer q=\"670049531\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"670049531\"]\r\n<p id=\"fs-id1167793627947\">Again, we follow the problem-solving strategy:<\/p>\r\n\r\n<ol id=\"fs-id1167793627950\" type=\"1\">\r\n \t<li>The optimization function is [latex]f(x, y)=48x+96y-x^{2}-2xy-9y^{2}[\/latex]. To determine the constraint function, we first subtract 216 from both sides of the constraint, then divide both sides by 4, which gives [latex]5x+y-54=0[\/latex]. The constraint function is equal to the left-hand side, so [latex]g(x, y)=5x+y-54[\/latex]. The problem asks us to solve for the maximum value of [latex]f[\/latex] subject to this constraint.<\/li>\r\n \t<li>So, we calculate the gradients of both [latex]f[\/latex] and\u00a0[latex]g[\/latex]:\r\n[latex]\\hspace{6cm}\\begin{align}\r\n\\nabla{f}(x,y)&amp;=(48-2x-2y){\\bf{i}}+(96-2x-18y){\\bf{j}} \\\\\r\n\\nabla{g}(x,y)&amp;=5{\\bf{i}}+{\\bf{j}}.\r\n\\end{align}[\/latex]\r\nThe equation [latex]\\nabla{f}(x_0,y_0)=\\lambda\\nabla{g}(x_0,y_0)[\/latex] becomes\r\n<div id=\"fs-id1167794212873\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">\r\n\r\n[latex]\\hspace{6cm}(48-2x_0-2y_0){\\bf{i}}+(96-2x_0-18y_0){\\bf{j}}=\\lambda(5{\\bf{i}}+{\\bf{j}})[\/latex],\r\nwhich can be rewritten as\r\n\r\n[latex](48-2x_0-2y_0){\\bf{i}}+(96-2x_0-18y_0){\\bf{j}}=\\lambda5{\\bf{i}}+\\lambda{\\bf{j}}[\/latex].\r\n\r\nWe then set the coefficients of [latex]\\bf{i}[\/latex] and [latex]\\bf{j}[\/latex] equal to each other:\r\n\r\n[latex]\\hspace{8cm}\\begin{align}\r\n\r\n48-2x_0-2y_0&amp;=5\\lambda \\\\\r\n\r\n96-2x_0-18y_0&amp;=\\lambda.\r\n\r\n\\end{align}[\/latex]\r\n<div style=\"text-align: left;\" data-type=\"equation\" data-label=\"\">\r\n\r\nThe equation [latex]g(x_0, y_0)=0[\/latex] becomes [latex]5x_0+y_0-54=0[\/latex]. Therefore, the system of equations that needs to be solved is\r\n\r\n[latex]\\hspace{8cm}\\begin{align}\r\n\r\n48-2x_0-2y_0&amp;=5\\lambda \\\\\r\n\r\n96-2x_0-18y_0&amp;=\\lambda \\\\\r\n\r\n5x_0+y_0-54&amp;=0.\r\n\r\n\\end{align}[\/latex]\r\n\r\n<\/div>\r\n<\/div><\/li>\r\n \t<li>We use the left-hand side of the second equation to replace [latex]\\lambda[\/latex] in the first equation:\r\n<div id=\"fs-id1167793547488\" data-type=\"equation\" data-label=\"\">\r\n\r\n[latex]\\hspace{8cm}\\begin{align}\r\n\r\n48-2x_0-2y_0&amp;=5(96-2x_0-18y_0) \\\\\r\n\r\n48-2x_0-2y_0&amp;=480-10x_0-90y_0 \\\\\r\n\r\n8x_0&amp;=432-88y_0 \\\\\r\n\r\nx_0&amp;=54-11y_0.\r\n\r\n\\end{align}[\/latex]\r\n\r\n<\/div>\r\nThen we substitute this into the third equation:\r\n\r\n&nbsp;\r\n<div id=\"fs-id1167794162841\" data-type=\"equation\" data-label=\"\">\r\n\r\n[latex]\\hspace{8cm}\\begin{align}\r\n\r\n5(54-11y_0)+y+0&amp;=0 \\\\\r\n\r\n270-55y_0+y_0&amp;=0 \\\\\r\n\r\n216-54y_0&amp;=0 \\\\\r\n\r\ny_0&amp;=4.\r\n\r\n\\end{align}[\/latex]\r\n\r\n<\/div>\r\nSince [latex]x_0=54-11y_0[\/latex], this gives [latex]x_0=10[\/latex].<\/li>\r\n \t<li>We then substitute [latex](10, 4)[\/latex] into [latex]f(x, y)=48x+96y-x^{2}-2xy-9y^{2}[\/latex], which gives\r\n<div id=\"fs-id1167793416705\" data-type=\"equation\" data-label=\"\">\r\n<div>\r\n\r\n[latex]\\hspace{5cm}\\begin{align}\r\n\r\nf(10,4)&amp;=48(10)+96(4)-(10)^2-2(10)(4)-9(4)^2 \\\\\r\n\r\n&amp;=480+384-100-80-144=540.\r\n\r\n\\end{align}[\/latex]\r\n\r\n<\/div>\r\n<\/div>\r\nTherefore the maximum profit that can be attained, subject to budgetary constraints, is [latex]$540,000[\/latex] with a production level of [latex]10,000[\/latex] golf balls and [latex]4[\/latex] hours of advertising bought per month. Let\u2019s check to make sure this truly is a maximum. The endpoints of the line that defines the constraint are [latex](10.8, 0)[\/latex] and [latex](0, 54)[\/latex]. Let\u2019s evaluate [latex]f[\/latex] at both of these points:\r\n<div id=\"fs-id1167793560949\" data-type=\"equation\" data-label=\"\">\r\n<div>\r\n\r\n[latex]\\hspace{5cm}\\begin{align}\r\n\r\nf(10.8,0)&amp;=48(10.8)+96(0)-10.8^2-2(10.8)(0)-9(0)^2=401.76 \\\\\r\n\r\nf(0,54)&amp;=48(0)+96(54)-0^2-2(0)(54)-9(54)^2=-21,060.\r\n\r\n\\end{align}[\/latex]\r\n\r\n<\/div>\r\n<\/div>\r\nThe second value represents a loss, since no golf balls are produced. Neither of these values exceed [latex]540[\/latex], so it seems that our extremum is a maximum value of [latex]f[\/latex].<\/li>\r\n<\/ol>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it<\/h3>\r\nA company has determined that its production level is given by the Cobb-Douglas function [latex]f(x,y)=2.5x^{0.45}y^{0.55}[\/latex] where [latex]x[\/latex] represents the total number of labor hours in [latex]1[\/latex] year and [latex]y[\/latex] represents the total capital input for the company. Suppose\u00a0[latex]1[\/latex] unit of labor costs [latex]$40[\/latex] and\u00a0[latex]1[\/latex] unit of capital costs [latex]$50[\/latex]. Use the method of Lagrange multipliers to find the maximum value of [latex]f(x,y)=2.5x^{0.45}y^{0.55}[\/latex] subject to a budgetary constraint of [latex]$500,000[\/latex] per year.\r\n\r\n[reveal-answer q=\"625684923\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"625684923\"]\r\n\r\nA maximum production level of [latex]13,890[\/latex] occurs with [latex]5,625[\/latex] labor hours and [latex]$5,500[\/latex] of total capital input.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n\r\n[caption]Watch the following video to see the worked solution to the above Try It[\/caption]\r\n\r\n<center><iframe src=\"\/\/plugin.3playmedia.com\/show?mf=8186170&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=xu2_ZpyYkSg&amp;video_target=tpm-plugin-ky4vc3gh-xu2_ZpyYkSg\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\"><\/iframe><\/center><center>You can view the <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Calculus+3\/Calc+3+transcripts\/CP4.38_transcript.html\">transcript for \u201c4.38\u201d here (opens in new window).<\/a><\/center>In the case of an optimization function with three variables and a single constraint function, it is possible to use the method of Lagrange multipliers to solve an optimization problem as well. An example of an optimization function with three variables could be the\u00a0<span id=\"dd17f45f-4704-4868-9192-90879033063c_term204\" class=\"no-emphasis\" data-type=\"term\">Cobb-Douglas function<\/span>\u00a0in the previous example: [latex]f(x,y,z)=x^{0.2}y^{0.4}z^{0.4}[\/latex], where [latex]x[\/latex] represents the cost of labor, [latex]y[\/latex] represents capital input, and [latex]z[\/latex] represents the cost of advertising. The method is the same as for the method with a function of two variables; the equations to be solved are\r\n\r\n[latex]\\hspace{10cm}\\begin{align}\r\n\r\n\\nabla{f}(x,y,z)&amp;=\\lambda\\nabla{g}(x,y,z) \\\\\r\n\r\ng(x,y,z)&amp;=0.\r\n\r\n\\end{align}[\/latex]\r\n<div class=\"textbox exercises\">\r\n<h3>Example: lagrange multipliers with a three-variable optimization function<\/h3>\r\nFind the minimum of the function [latex]f(x, y, z)=x^{2}+y^{2}+z^{2}[\/latex] subject to the constraint [latex]x+y+z=1[\/latex].\r\n\r\n&nbsp;\r\n\r\n[reveal-answer q=\"734795270\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"734795270\"]\r\n<ol id=\"fs-id1167793411204\" type=\"1\">\r\n \t<li>The optimization function is [latex]f(x, y, z)=x^{2}+y^{2}+z^{2}[\/latex]. To determine the constraint function, we subtract 1 from each side of the constraint: [latex]x+y+z-1=0[\/latex] which gives the constraint function as [latex]g(x, y, z)=x+y+z-1[\/latex].<\/li>\r\n \t<li>Next, we calculate\u00a0[latex]\\nabla{f}(x,y,z)[\/latex] and\u00a0[latex]\\nabla{g}(x,y,z)[\/latex]:\r\n<span data-type=\"newline\">[latex]\\hspace{7cm}\\begin{align}\\nabla{f}(x,y,z)&amp;=\\langle2x,2y,2z\\rangle \\\\\\nabla{g}(x,y,z)&amp;=\\langle1,1,1\\rangle \\end{align}[\/latex]<\/span><span data-type=\"newline\">\r\n<\/span>This leads to the equations<span data-type=\"newline\">\r\n<\/span>\r\n<div id=\"fs-id1167793612617\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">[latex]\\hspace{7cm}\\begin{align}\\langle2x_0,2y_0,2z_0\\rangle&amp;=\\lambda\\langle1,1,1\\rangle \\\\x_0+y_0+z_0-1&amp;=0 \\end{align}[\/latex]<\/div>\r\n<span data-type=\"newline\">\r\n<\/span>which can be rewritten in the following form:<span data-type=\"newline\">\r\n<\/span>\r\n<div id=\"fs-id1167793373631\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">\r\n\r\n[latex]\\hspace{7cm}\\begin{align}\r\n\r\n2x_0&amp;=\\lambda \\\\\r\n\r\n2y_0&amp;=\\lambda \\\\\r\n\r\n2z_0&amp;=\\lambda \\\\\r\n\r\nx_0+y_0+z_0-1&amp;=0.\r\n\r\n\\end{align}[\/latex]\r\n\r\n<\/div><\/li>\r\n \t<li>Since each of the first three equations has [latex]\\lambda[\/latex] on the right-hand side, we know that [latex]2x_0=2y_0=2z_0[\/latex] and all three variables are equal to each other. Substituting [latex]y_0=x_0[\/latex] and [latex]z_0=x_0[\/latex] into the last equation yields [latex]3x_0-1=0[\/latex], so [latex]x_0=\\frac13[\/latex] and [latex]y_0=\\frac13[\/latex] and [latex]z_0=\\frac13[\/latex] which corresponds to a critical point on the constraint curve.<\/li>\r\n \t<li>Then, we evaluate [latex]f[\/latex] at the point [latex]\\left(\\frac13,\\frac13,\\frac13\\right)[\/latex]:\u00a0<span data-type=\"newline\">\r\n<\/span>\r\n<div id=\"fs-id1167793937404\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">[latex]\\hspace{6cm}\\large{f\\left(\\frac13,\\frac13,\\frac13\\right)=\\left(\\frac13\\right)^2+\\left(\\frac13\\right)^2+\\left(\\frac13\\right)^2=\\frac39=\\frac13}.[\/latex]<\/div>\r\nTherefore, an extremum of the function is [latex]\\frac{1}{3}[\/latex]. To verify it is a minimum, choose other points that satisfy the constraint and calculate [latex]f[\/latex] at that point. For example,<span data-type=\"newline\">\r\n<\/span>\r\n<div id=\"fs-id1167794293267\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">[latex]\\hspace{7cm}\\begin{align} f(1,0,0)&amp;=1^2+0^2+0^2=1 \\\\f(0,-2,3)&amp;=0^2+(-2)^2+3^2=13. \\end{align}[\/latex]<\/div>\r\n<span data-type=\"newline\">\r\n<\/span>Both of these values are greater than [latex]\\frac{1}{3}[\/latex], leading us to believe the extremum is a minimum.<\/li>\r\n<\/ol>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Try it<\/h3>\r\n<p id=\"fs-id1167794177145\">Use the method of Lagrange multipliers to find the minimum value of the function<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{f(x,y,z)=x+y+z}[\/latex]<\/p>\r\n<span style=\"font-size: 1rem; text-align: initial;\">subject to the constraint [latex]x^2+y^2+z^2=1[\/latex].<\/span><span style=\"font-size: 1rem; text-align: initial;\">\u00a0<\/span>\r\n\r\n[reveal-answer q=\"457389340\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"457389340\"]\r\n\r\n[latex]\\hspace{6cm}\\begin{align}\r\n\r\nf\\left(\\frac{\\sqrt3}3,\\frac{\\sqrt3}3,\\frac{\\sqrt3}3\\right)&amp;=\\frac{\\sqrt3}3+\\frac{\\sqrt3}3+\\frac{\\sqrt3}3=\\sqrt3 \\\\\r\n\r\nf\\left(-\\frac{\\sqrt3}3,-\\frac{\\sqrt3}3,-\\frac{\\sqrt3}3\\right)&amp;=-\\frac{\\sqrt3}3-\\frac{\\sqrt3}3-\\frac{\\sqrt3}3=-\\sqrt3\r\n\r\n\\end{align}[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<h2 data-type=\"title\">Problems with Two Constraints<\/h2>\r\n<p id=\"fs-id1167793371372\">The method of Lagrange multipliers can be applied to problems with more than one constraint. In this case the optimization function, [latex]w[\/latex] is a function of three variables:<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{w=f(x, y, z)}[\/latex]<\/p>\r\n<p id=\"fs-id1167793927731\">and it is subject to two constraints:<\/p>\r\n<p style=\"text-align: center;\">[latex]g(x, y, z)=0[\/latex] and\u00a0[latex]h(x, y, z)=0[\/latex]<\/p>\r\n<p id=\"fs-id1167793452763\">There are two Lagrange multipliers, [latex]\\lambda_1[\/latex] and [latex]\\lambda_2[\/latex], and the system of equations becomes<\/p>\r\n[latex]\\hspace{7cm}\\large{\\begin{align}\r\n\r\n\\nabla{f}(x_0,y_0,z_0)&amp;=\\lambda_1\\nabla{g}(x_0,y_0,z_0)+\\lambda_2\\nabla{h}(x_0,y_0,z_0) \\\\\r\n\r\ng(x_0,y_0,z_0)&amp;=0 \\\\\r\n\r\nh(x_0,y_0,z_0)&amp;=0.\r\n\r\n\\end{align}}[\/latex]\r\n<div class=\"textbox exercises\">\r\n<h3>Example: Lagrange Multipliers with Two constraints<\/h3>\r\nFind the maximum and minimum values of the function\r\n<p style=\"text-align: center;\">[latex]\\large{f(x, y, z)=x^{2}+y^{2}+z^{2}}[\/latex]<\/p>\r\nsubject to the constraints\u00a0[latex]z^{2}=x^{2}+y^{2}[\/latex] and\u00a0[latex]x+y-z+1=0[\/latex].\r\n\r\n[reveal-answer q=\"568214519\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"568214519\"]\r\n<p id=\"fs-id1167793400611\">Let\u2019s follow the problem-solving strategy:<\/p>\r\n\r\n<ol id=\"fs-id1167793400614\" type=\"1\">\r\n \t<li>The optimization function is [latex]f(x, y, z)=x^{2}+y^{2}+z^{2}[\/latex]. To determine the constraint functions, we first subtract [latex]z^2[\/latex] from both sides of the first constraint, which gives [latex]x^2+y^2-z^2=0[\/latex], so [latex]g(x,y,z)=x^2+y^2-z^2[\/latex]. The second constraint function is [latex]h(x,y,z)=x+y-z+1[\/latex].<\/li>\r\n \t<li>\r\n<div class=\"unnumbered\" data-type=\"equation\" data-label=\"\">\r\n\r\nWe then calculate the gradients of [latex]f[\/latex],\u00a0[latex]g[\/latex], and\u00a0[latex]h[\/latex]:\r\n\r\n&nbsp;\r\n\r\n[latex]\\hspace{6cm}\\large{\\begin{align}\r\n\r\n\\nabla{f}(x,y,z)&amp;=2x{\\bf{i}}+2y{\\bf{j}}+2z{\\bf{k}} \\\\\r\n\r\n\\nabla{g}(x,y,z)&amp;=2x{\\bf{i}}+2y{\\bf{j}}-2z{\\bf{k}} \\\\\r\n\r\n\\nabla{h}(x,y,z)&amp;={\\bf{i}}+{\\bf{j}}-{\\bf{k}}.\r\n\r\n\\end{align}}[\/latex]\r\n\r\n<span data-type=\"newline\">\r\n<\/span>The equation [latex]\\nabla{f}(x_0,y_0,z_0)=\\lambda_1\\nabla{g}(x_0,y_0,z_0)+\\lambda_2\\nabla{h}(x_0,y_0,z_0)[\/latex] becomes<span data-type=\"newline\">\r\n<\/span>\r\n<p style=\"text-align: center;\">[latex]\\large{2x_0{\\bf{i}}+2y_0{\\bf{j}}+2z_0{\\bf{k}}=\\lambda_(2x_0{\\bf{i}}+2y_0{\\bf{j}}-2z_0{\\bf{k}})+\\lambda_2({\\bf{i}}+{\\bf{j}}-{\\bf{k}})},[\/latex]<\/p>\r\nwhich can be rewritten as\r\n<p style=\"text-align: center;\">[latex]\\large{2x_0{\\bf{i}}+2y_0{\\bf{j}}+2z_0{\\bf{k}}=(2\\lambda_1x_0+\\lambda_2){\\bf{i}}+(2\\lambda_1y_0+\\lambda_2){\\bf{j}}-(2\\lambda_1z_0+\\lambda_2){\\bf{k}}}.[\/latex]<\/p>\r\nNext, we set the coefficients of [latex]\\bf{i}[\/latex], [latex]\\bf{j}[\/latex], and [latex]\\bf{k}[\/latex] equal to each other:\r\n[latex]\\hspace{9cm}\\large{\\begin{align}\r\n2x_0&amp;=2\\lambda_1x_0+\\lambda_2 \\\\\r\n2y_0&amp;=2\\lambda_1y_0+\\lambda_2 \\\\\r\n2z_0&amp;=2\\lambda_1z_0-\\lambda_2.\r\n\\end{align}}[\/latex]\r\nThe two equations that arise from the constraints are [latex]x_0^2=x_0^2+y_0^2[\/latex] and [latex]x_0+y_0-z_0+1=0[\/latex]. Combining these equations with the previous three equations gives\r\n[latex]\\hspace{7cm}\\large{\\begin{align}\r\n2x_0&amp;=2\\lambda_1x_0+\\lambda_2 \\\\\r\n2x_0&amp;=2\\lambda_1y_0+\\lambda_2 \\\\\r\n2x_0&amp;=2\\lambda_1z_0-\\lambda_2 \\\\\r\n{z_0}^2&amp;={x_0}^2+{y_0}^2 \\\\\r\nx_0+y_0-z_0+1&amp;=0.\r\n\\end{align}}[\/latex]\r\n\r\n<\/div><\/li>\r\n \t<li>The first three equations contain the variable [latex]\\lambda_2[\/latex]. Solving the third equation for [latex]\\lambda_2[\/latex] and replacing into the first and second equations reduces the number of equations to four:<span data-type=\"newline\">\r\n<\/span>\r\n[latex]\\hspace{7cm}\\large{\\begin{align}\r\n2x_0&amp;=2\\lambda_1x_0-2\\lambda_1z_0-2z_0 \\\\2y_0&amp;=2\\lambda_1y_0-2\\lambda_1z_0-2z_0 \\\\{z_0}^2&amp;={x_0}^2+{y_0}^2 \\\\x_0+y_0-z_0+1&amp;=0.\\end{align}}[\/latex]\r\n<span data-type=\"newline\">\r\n<\/span>Next, we solve the first and second equation for [latex]\\lambda_1[\/latex]. The first equation gives [latex]\\lambda_1=\\frac{x_0+z_0}{x_0-z_0}[\/latex], the second equation gives [latex]\\lambda_1=\\frac{y_0+z_0}{y_0-z_0}[\/latex]. We set the right-hand side of each equation equal to each other and cross-multiply:<span data-type=\"newline\">\r\n<\/span>\r\n<div id=\"fs-id1167793423565\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">\r\n\r\n[latex]\\hspace{6cm}\\large{\\begin{align}\\frac{x_0+z_0}{x_0-z_0}&amp;=\\frac{y_0+z_0}{y_0-z_0} \\\\\r\n\r\n(x_0+z_0)(y_0-z_0)&amp;=(x_0-z_0)(y_0+z_0) \\\\\r\n\r\nx_0y_0-x_0z_0+y_0z_0-{z_0}^2&amp;=x_0y_0+x_0z_0-y_0z_0-{z_0}^2 \\\\\r\n\r\n2y_0z_0-2x_0z_0&amp;=0 \\\\\r\n\r\n2x_0(y_0-x_0)&amp;=0.\r\n\r\n\\end{align}}[\/latex]\r\n\r\n<\/div>\r\nTherefore, either [latex]z_0=0[\/latex] or [latex]y_0=x_0[\/latex]. If [latex]z_0=0[\/latex], then the first constraint becomes [latex]0=x_0^2+y_0^2[\/latex] The only real solution to this equation is [latex]x_0=0[\/latex] and [latex]y_0=0[\/latex], which gives the ordered triple [latex](0,0,0)[\/latex]. This point does not satisfy the second constraint, so it is not a solution.Next, we consider [latex]y_0=x_0[\/latex], which reduces the number of equations to three:<span data-type=\"newline\">\r\n<\/span>\r\n\r\n[latex]\\hspace{8cm}\\large{\\begin{align}\r\n\r\ny_0&amp;=x_0 \\\\\r\n\r\n{z_0}^2&amp;={x_0}^2+{y_0}^2 \\\\\r\n\r\nx_0+y_0-z_0+1&amp;=0.\r\n\r\n\\end{align}}[\/latex]\r\nWe substitute the first equation into the second and third equations:<span data-type=\"newline\">\r\n<\/span>\r\n\r\n[latex]\\hspace{8cm}\\large{\\begin{align}\r\n\r\n{z_0}^2&amp;={x_0}^2+{y_0}^2 \\\\\r\n\r\nx_0+y_0-z_0+1&amp;=0.\r\n\r\n\\end{align}}[\/latex]\r\n\r\nThen, we solve the second equation for [latex]z_0[\/latex], which gives [latex]z_0=2x_0+1[\/latex]. We then substitute this into the first equation,<span data-type=\"newline\">\r\n<\/span>\r\n\r\n[latex]\\hspace{7cm}\\large{\\begin{align}\r\n\r\n{z_0}^2&amp;={2x_0}^2 \\\\\r\n\r\n(2x_0+1)^2&amp;={2x_0}^2 \\\\\r\n\r\n{4x_0}^2+4x_0+1&amp;={2x_0}^2 \\\\\r\n\r\n{2x_0}^2+4x_0+1&amp;=0\r\n\r\n\\end{align}}[\/latex]\r\nand use the quadratic formula to solve for [latex]x_0[\/latex]:\r\n<p style=\"text-align: center;\"><span data-type=\"newline\">[latex]\\large{x+0=\\frac{-4\\pm\\sqrt{4^2-4(2)(1)}}{2(2)}=\\frac{-4\\pm\\sqrt8}4=\\frac{-4\\pm2\\sqrt2}4=-1\\pm\\frac{\\sqrt2}2}[\/latex].<\/span><\/p>\r\n<span data-type=\"newline\">\r\n<\/span>Recall [latex]y_0=x_0[\/latex],so this solves for [latex]y_0[\/latex] as well. Then, [latex]z_0=2x_0+1[\/latex], so\r\n<p style=\"text-align: center;\"><span data-type=\"newline\">[latex]\\large{x_0=2x_0+1=2\\left(-1\\pm\\frac{\\sqrt2}2\\right)+1=-2+1\\pm\\sqrt2=-1\\pm\\sqrt2}.[\/latex]<\/span><\/p>\r\nTherefore, there are two ordered triplet solutions:\r\n<p style=\"text-align: center;\"><span data-type=\"newline\">[latex]\\left(-1+\\frac{\\sqrt2}2,-1+\\frac{\\sqrt2}2,-1+\\sqrt2\\right)[\/latex] and [latex]\\left(-1-\\frac{\\sqrt2}2,-1-\\frac{\\sqrt2}2,-1-\\sqrt2\\right).[\/latex]<\/span><\/p>\r\n<\/li>\r\n \t<li>We substitute [latex]\\left(-1+\\frac{\\sqrt2}2,-1+\\frac{\\sqrt2}2,-1+\\sqrt2\\right)[\/latex] into [latex]f(x,y,z)=x^2+y^2+z^2[\/latex], which gives<span data-type=\"newline\">\r\n<\/span>\r\n[latex]\\hspace{3cm}\\begin{align}\r\nf\\left(-1+\\frac{\\sqrt2}2,-1+\\frac{\\sqrt2}2,-1+\\sqrt2\\right)&amp;=\\left(-1+\\frac{\\sqrt2}2\\right)^2+\\left(-1+\\frac{\\sqrt2}2\\right)^2+\\left(-1+\\sqrt2\\right)^2 \\\\\r\n&amp;=(1-\\sqrt2+\\frac12)+(1-\\sqrt2+\\frac12)+(1-2\\sqrt2+2) \\\\\r\n&amp;=6-4\\sqrt2.\r\n\\end{align}[\/latex]\r\n<span data-type=\"newline\">\r\n<\/span>[latex]6+4\\sqrt2[\/latex] is the maximum value and [latex]6-4\\sqrt2[\/latex]\u00a0is the minimum value of [latex]f(x,y,z)[\/latex] subject to the given constraints.<\/li>\r\n<\/ol>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Try it<\/h3>\r\n<p id=\"fs-id1167794314954\">Use the method of Lagrange multipliers to find the minimum value of the function<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{f(x,y,z)=x^2+y^2+z^2}[\/latex]<\/p>\r\n<span style=\"font-size: 1rem; text-align: initial;\">subject to the constraints [latex]2x+y+2z=9[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">and [latex]5x+5y+7z=29[\/latex].\u00a0<\/span>\r\n\r\n[reveal-answer q=\"131765238\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"131765238\"]\r\n\r\n[latex]f(2,1,2)=9[\/latex] is a minimum.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n\r\n[caption]Watch the following video to see the worked solution to the above Try It[\/caption]\r\n\r\n<center><iframe src=\"\/\/plugin.3playmedia.com\/show?mf=8186171&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=xwTxfOqbXkw&amp;video_target=tpm-plugin-jwom32th-xwTxfOqbXkw\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\"><\/iframe><\/center><center>You can view the <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Calculus+3\/Calc+3+transcripts\/CP4.40_transcript.html\">transcript for \u201cCP 4.40\u201d here (opens in new window).<\/a><\/center>&nbsp;\r\n\r\n<\/div>\r\n<\/div>","rendered":"<div class=\"textbox learning-objectives\">\n<h3>Learning Objectives<\/h3>\n<div id=\"1\" class=\"ui-has-child-title\" data-type=\"abstract\">\n<section>\n<ul class=\"os-abstract\">\n<li><span class=\"os-abstract-content\">Use the method of Lagrange multipliers to solve optimization problems with one constraint.<\/span><\/li>\n<li><span class=\"os-abstract-content\">Use the method of Lagrange multipliers to solve optimization problems with two constraints.<\/span><\/li>\n<\/ul>\n<\/section>\n<\/div>\n<\/div>\n<p id=\"fs-id1167793827503\">Solving optimization problems for functions of two or more variables can be similar to solving such problems in single-variable calculus. However, techniques for dealing with multiple variables allow us to solve more varied optimization problems for which we need to deal with additional conditions or constraints. In this section, we examine one of the more common and useful methods for solving optimization problems with constraints.<\/p>\n<section id=\"fs-id1167794098992\" data-depth=\"1\">\n<h2 data-type=\"title\">Lagrange Multipliers<\/h2>\n<p id=\"fs-id1167793361325\">Chapter Opener: Profitable Golf Balls\u00a0was an applied situation involving maximizing a profit function, subject to certain\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term199\" data-type=\"term\">constraints<\/span><\/strong>. In that example, the constraints involved a maximum number of golf balls that could be produced and sold in [latex]1[\/latex] month [latex](x)[\/latex], and a maximum number of advertising hours that could be purchased per month [latex](y)[\/latex]. Suppose these were combined into a budgetary constraint, such as [latex]20x+4y\\leq 216[\/latex], that took into account the cost of producing the golf balls and the number of advertising hours purchased per month. The goal is, still, to maximize profit, but now there is a different type of constraint on the values of [latex]x[\/latex] and [latex]y[\/latex]. This constraint, when combined with the profit function [latex]f(x, y)=48x+96y-x^{2}-2xy-9y^{2}[\/latex], is an example of an\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term200\" data-type=\"term\">optimization problem<\/span><\/strong>, and the function [latex]f(x, y)[\/latex] is called the\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term201\" data-type=\"term\">objective function<\/span><\/strong>. A graph of various level curves of the function [latex]f(x, y)[\/latex] follows.<\/p>\n<div id=\"attachment_1292\" style=\"width: 427px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1292\" class=\"size-full wp-image-1292\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23140514\/4-8-1.jpeg\" alt=\"A series of rotated ellipses that become increasingly large. The smallest one is marked f(x, y) = 400, and the biggest one is marked f(x, y) = 150.\" width=\"417\" height=\"347\" \/><\/p>\n<p id=\"caption-attachment-1292\" class=\"wp-caption-text\">Figure 1. Graph of level curves of the function\u00a0[latex]\\small{f(x, y)=48x+96y-x^{2}-2xy-9y^{2}}[\/latex] corresponding to [latex]\\small{c=150,250,350, \\text{ and } 400}[\/latex].<\/p>\n<\/div>\n<p>In\u00a0Figure 1, the value [latex]c[\/latex] represents different profit levels (i.e., values of the function [latex]f[\/latex]). As the value of [latex]c[\/latex] increases, the curve shifts to the right. Since our goal is to maximize profit, we want to choose a curve as far to the right as possible. If there was no restriction on the number of golf balls the company could produce, or the number of units of advertising available, then we could produce as many golf balls as we want, and advertise as much as we want, and there would not be a maximum profit for the company. Unfortunately, we have a budgetary constraint that is modeled by the inequality [latex]20x+4y\\leq 216[\/latex]. To see how this constraint interacts with the profit function,\u00a0Figure 2\u00a0shows the graph of the line [latex]2x+4y=216[\/latex] superimposed on the previous graph.<\/section>\n<div id=\"attachment_1294\" style=\"width: 380px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1294\" class=\"size-full wp-image-1294\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23140701\/4-8-2.jpeg\" alt=\"A series of rotated ellipses that become increasingly large. On the smallest ellipse, which is red, there is a tangent line marked with equation 20x + 4y = 216 that appears to touch the ellipse near (10, 4).\" width=\"370\" height=\"309\" \/><\/p>\n<p id=\"caption-attachment-1294\" class=\"wp-caption-text\">Figure 2.\u00a0Graph of level curves of the function\u00a0[latex]\\small{f(x, y)=48x+96y-x^{2}-2xy-9y^{2}}[\/latex] corresponding to [latex]\\small{c=150,250,350, \\text{ and } 395}[\/latex].\u00a0The red graph is the constraint function.<\/p>\n<\/div>\n<p>As mentioned previously, the maximum profit occurs when the level curve is as far to the right as possible. However, the level of production corresponding to this maximum profit must also satisfy the budgetary constraint, so the point at which this profit occurs must also lie on (or to the left of) the red line in\u00a0Figure 2. Inspection of this graph reveals that this point exists where the line is tangent to the level curve of [latex]f[\/latex]. Trial and error reveals that this profit level seems to be around [latex]395[\/latex], when [latex]x[\/latex] and [latex]y[\/latex] are both just less than [latex]5[\/latex]. We return to the solution of this problem later in this section. From a theoretical standpoint, at the point where the profit curve is tangent to the constraint line, the gradient of both of the functions evaluated at that point must point in the same (or opposite) direction. Recall that the gradient of a function of more than one variable is a vector. If two vectors point in the same (or opposite) directions, then one must be a constant multiple of the other. This idea is the basis of the\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term202\" data-type=\"term\">method of Lagrange multipliers<\/span>.<\/strong><\/p>\n<div class=\"textbox shaded\">\n<h3 style=\"text-align: center;\">Theorem: method of lagrange multipliers: one constant<\/h3>\n<hr \/>\n<p>Let\u00a0[latex]f[\/latex] and\u00a0[latex]g[\/latex]\u00a0be functions of two variables with continuous partial derivatives at every point of some open set containing the smooth curve [latex]g(x,y)=0[\/latex]. Suppose that [latex]f[\/latex], when restricted to points on the curve [latex]g(x,y)=0[\/latex], has a local extremum at the point [latex](x_0,y_0)[\/latex] and that [latex]\\nabla{g}(x_0,y_0)\\ne0[\/latex]. Then there is a number [latex]\\lambda[\/latex] called a\u00a0<strong><span id=\"dd17f45f-4704-4868-9192-90879033063c_term203\" data-type=\"term\">Lagrange multiplier<\/span><\/strong>, for which<\/p>\n<p style=\"text-align: center;\">[latex]\\nabla{f}(x_0,y_0)=\\lambda\\nabla{g}(x_0,y_0)[\/latex]<\/p>\n<\/div>\n<h2 data-type=\"title\">Proof<\/h2>\n<p id=\"fs-id1167794066211\">Assume that a constrained extremum occurs at the point [latex](x_0, y_0)[\/latex]. Furthermore, we assume that the equation [latex]g(x, y)=0[\/latex] can be smoothly parameterized as<\/p>\n<p style=\"text-align: center;\">[latex]x=x(s)[\/latex] and\u00a0[latex]y=y(s)[\/latex]<\/p>\n<p>where\u00a0<em data-effect=\"italics\">s<\/em>\u00a0is an arc length parameter with reference point [latex](x_0, y_0)[\/latex] at [latex]s=0[\/latex]. Therefore, the quantity [latex]z=f(x(s), y(s))[\/latex] has a relative maximum or relative minimum at [latex]s=0[\/latex], and this implies that [latex]\\frac{dz}{ds}=0[\/latex] at that point. From the chain rule,<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\frac{dz}{ds}=\\frac{\\partial f}{\\partial x}\\cdot\\frac{\\partial x}{\\partial s}+\\frac{\\partial f}{\\partial y}\\cdot\\frac{\\partial y}{\\partial s}=\\left(\\frac{\\partial f}{\\partial x}{\\bf{\\hat{i}}}+\\frac{\\partial f}{\\partial y}{\\bf{\\hat{j}}}\\right)\\cdot\\left(\\frac{\\partial x}{\\partial s}{\\bf{\\hat{i}}}+\\frac{\\partial y}{\\partial s}{\\bf{\\hat{j}}}\\right)=0,}[\/latex]<\/p>\n<p>where the derivatives are all evaluated at [latex]s=0[\/latex]. However, the first factor in the dot product is the gradient of [latex]f[\/latex], and the second factor is the unit tangent vector [latex]\\text{T}(0)[\/latex] to the constraint curve. Since the point [latex](x_0, y_0)[\/latex] corresponds to [latex]s=0[\/latex], it follows from this equation that<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\nabla{f}(x_0,y_0)\\cdot{\\text{T}}(0)=0},[\/latex]<\/p>\n<p><span style=\"font-size: 1rem; text-align: initial;\">which implies that the gradient is either [latex]0[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">or is normal to the constraint curve at a constrained relative extremum. However, the constraint curve [latex]g(x, y)=0[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">is a level curve for the function [latex]g(x, y)[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">so that if [latex]\\nabla{g}(x_0,y_0)\\ne0[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">then [latex]\\nabla{g}(x_0,y_0)[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">is normal to this curve at [latex](x_0, y_0)[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">It follows, then, that there is some scalar [latex]\\lambda[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">such that<\/span><\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\nabla{f}(x_0,y_0)=\\lambda\\nabla{g}(x_0,y_0)}[\/latex]<\/p>\n<p>[latex]_\\blacksquare[\/latex]<\/p>\n<p>To apply the\u00a0Method of Lagrange Multipliers: One Constraint\u00a0to an optimization problem similar to that for the golf ball manufacturer, we need a problem-solving strategy.<\/p>\n<div id=\"fs-id1167794333153\" class=\"problem-solving\" data-type=\"note\">\n<div data-type=\"title\">\n<div class=\"textbox examples\">\n<h3 style=\"text-align: center;\">Problem solving strategy: steps for using Lagrange multipliers<\/h3>\n<hr \/>\n<ol id=\"fs-id1167793863160\" type=\"1\">\n<li>Determine the objective function [latex]f(x, y)[\/latex] and the constraint function [latex]g(x, y)[\/latex]. Does the optimization problem involve maximizing or minimizing the objective function?<\/li>\n<li>Set up a system of equations using the following template:\n<p style=\"text-align: left;\">[latex]\\hspace{8cm}\\begin{align}<\/p>\n<p>  \\nabla{f}(x_0,y_0)\\cdot{\\text{T}}(0)&=0 \\\\ g(x_0,y_0)&=0. \\end{align}[\/latex]<\/li>\n<li>Solve for [latex]x_0[\/latex] and\u00a0[latex]y_0[\/latex].<\/li>\n<li>The largest of the values of [latex]f[\/latex] at the solutions found in step 3 maximizes [latex]f[\/latex]; the smallest of those values minimizes [latex]f[\/latex].<\/li>\n<\/ol>\n<\/div>\n<div class=\"textbox exercises\">\n<h3>Example: using lagrange multipliers<\/h3>\n<p>Use the method of Lagrange multipliers to find the minimum value of [latex]f(x,y)=x^2+4y^2-2x+8y[\/latex] subject to the constraint [latex]x+2y=7[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q573132468\">Show Solution<\/span><\/p>\n<div id=\"q573132468\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1167794333406\">Let\u2019s follow the problem-solving strategy:<\/p>\n<ol>\n<li>The optimization function is [latex]f(x,y)=x^2+4y^2-2x+8y[\/latex]. To determine the constraint function, we must first subtract [latex]7[\/latex] from both sides of the constraint. This gives [latex]x+2y-7=0[\/latex]. The constraint function is equal to the left-hand side, so [latex]g(x,y)=x+2y-7[\/latex]. The problem asks us to solve for the minimum value of [latex]f[\/latex], subject to the constraint (see the following graph).<\/li>\n<\/ol>\n<div id=\"attachment_1296\" style=\"width: 353px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1296\" class=\"size-full wp-image-1296\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/09\/23140848\/4-8-3.jpeg\" alt=\"Two rotated ellipses, one within the other. On the largest ellipse, which is marked f(x, y) = 26, there is a tangent line marked with equation x + 2y = 7 that appears to touch the ellipse near (5, 1).\" width=\"343\" height=\"348\" \/><\/p>\n<p id=\"caption-attachment-1296\" class=\"wp-caption-text\">Figure 3.\u00a0Graph of level curves of the function\u00a0[latex]\\small{f(x, y)=x^{2}+4y^{2}-2x+8y}[\/latex] corresponding to [latex]\\small{c=10\\text{ and } 26}[\/latex].\u00a0The red graph is the constraint function.<\/p>\n<\/div>\n<p>2. We then must calculate the gradients of both [latex]f[\/latex] and\u00a0[latex]g[\/latex]:<span data-type=\"newline\"><br \/>\n<\/span>[latex]\\hspace{8cm}\\begin{align}  \\nabla{f}(x,y)&=(2x-2){\\bf{i}}+(8y+8){\\bf{j}} \\\\  \\nabla{g}(x,y)&={\\bf{i}}+2{\\bf{j}}.  \\end{align}[\/latex]<br \/>\nThe equation [latex]\\nabla{f}(x_0,y_0)=\\lambda\\nabla{g}(x_0,y_0)[\/latex] becomes<\/p>\n<div id=\"fs-id1167794063017\" data-type=\"equation\" data-label=\"\">\n<div style=\"text-align: center;\">[latex](2x_0-2){\\bf{i}}+(8y_0+8){\\bf{j}}=\\lambda({\\bf{i}}+2{\\bf{j}}),[\/latex]<\/div>\n<\/div>\n<p>which can be rewritten as<\/p>\n<div id=\"fs-id1167794337439\" data-type=\"equation\" data-label=\"\">\n<div style=\"text-align: center;\">[latex](2x_0-2){\\bf{i}}+(8y_0+8){\\bf{j}}=\\lambda{\\bf{i}}+2\\lambda{\\bf{j}}.[\/latex]<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Next, we set the coefficients of [latex]\\bf{i}[\/latex] and [latex]\\bf{j}[\/latex] equal to each other:<\/p>\n<p>[latex]\\hspace{10cm}\\begin{align}    2x_0-2&=\\lambda \\\\    8y_0+8&=2\\lambda.    \\end{align}[\/latex]<\/p>\n<p>The equation [latex]g(x_0,y_0)=0[\/latex] becomes [latex]x_0+2y_0-7=0[\/latex]. Therefore, the system of equations that needs to be solved is<\/p>\n<p>[latex]\\hspace{9cm}\\begin{align}    2x_0-2&=\\lambda \\\\    8y_0+8&=2\\lambda \\\\    x_0+2y_0-7&=0.    \\end{align}[\/latex]<\/p>\n<div id=\"fs-id1167793964857\" data-type=\"equation\" data-label=\"\">\n<div><\/div>\n<p>3. This is a linear system of three equations in three variables. We start by solving the second equation for [latex]\\lambda[\/latex] and substituting it into the first equation. This gives [latex]\\lambda=4y_0+4[\/latex], so substituting this into the first equation gives<\/p>\n<p>[latex]2x_0-2=4y_0+4[\/latex].<\/p>\n<p>Solving this equation for [latex]x_0[\/latex] gives [latex]x_0=2y_0+3[\/latex]. We then substitute this into the third equation:<br \/>\n[latex]\\hspace{9cm}\\begin{align}  (2y_0+3)+2y_0-7&=0 \\\\  4y_0-4&=0 \\\\  y_0=1.  \\end{align}[\/latex]<\/p>\n<p><span data-type=\"newline\"><br \/>\n<\/span>Since [latex]x_0=2y_0+3[\/latex], this gives [latex]x_0=5[\/latex].<\/p>\n<p>4. Next, we substitute [latex](5,1)[\/latex] into [latex]f(x,y)=x^2+4y^2-2x+8y[\/latex], gives [latex]f(5,1)=5^2+4(1)^2-2(5)+8(1)=27[\/latex]. To ensure this corresponds to a minimum value on the constraint function, let\u2019s try some other values, such as the intercepts of [latex]g(x,y)=0[\/latex], Which are [latex](7,0)[\/latex] and [latex](0,3.5)[\/latex]. We get [latex]f(7,0)=35[\/latex] and\u00a0[latex]f(0.3.5)=77[\/latex],\u00a0so it appears [latex]f[\/latex] has a minimum at [latex](5,1)[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>try it<\/h3>\n<p>Use the method of Lagrange multipliers to find the maximum value of\u00a0[latex]f(x, y)=9x^{2}+36xy-4y^{2}-18x-8y[\/latex] subject to the constraint\u00a0[latex]3x+4y=32[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q881245602\">Show Solution<\/span><\/p>\n<div id=\"q881245602\" class=\"hidden-answer\" style=\"display: none\">\n<p>[latex]f[\/latex] has a maximum value of [latex]976[\/latex] at the point\u00a0[latex](8, 2)[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>Let\u2019s now return to the problem posed at the beginning of the section.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example: golf balls and lagrange multipliers<\/h3>\n<p id=\"fs-id1167793299667\">The golf ball manufacturer, Pro-T, has developed a profit model that depends on the number [latex]x[\/latex] of golf balls sold per month (measured in thousands), and the number of hours per month of advertising [latex]y[\/latex], according to the function<\/p>\n<p style=\"text-align: center;\">[latex]z=f(x, y)=48x+96y-x^{2}-2xy-9y^{2}[\/latex],<\/p>\n<p><span style=\"font-size: 1rem; text-align: initial;\">where [latex]z[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">is measured in thousands of dollars. The budgetary constraint function relating the cost of the production of thousands golf balls and advertising units is given by [latex]20x+4y=216[\/latex].\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">Find the values of [latex]x[\/latex] and\u00a0[latex]y[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">that maximize profit, and find the maximum profit.<\/span><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q670049531\">Show Solution<\/span><\/p>\n<div id=\"q670049531\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1167793627947\">Again, we follow the problem-solving strategy:<\/p>\n<ol id=\"fs-id1167793627950\" type=\"1\">\n<li>The optimization function is [latex]f(x, y)=48x+96y-x^{2}-2xy-9y^{2}[\/latex]. To determine the constraint function, we first subtract 216 from both sides of the constraint, then divide both sides by 4, which gives [latex]5x+y-54=0[\/latex]. The constraint function is equal to the left-hand side, so [latex]g(x, y)=5x+y-54[\/latex]. The problem asks us to solve for the maximum value of [latex]f[\/latex] subject to this constraint.<\/li>\n<li>So, we calculate the gradients of both [latex]f[\/latex] and\u00a0[latex]g[\/latex]:<br \/>\n[latex]\\hspace{6cm}\\begin{align}  \\nabla{f}(x,y)&=(48-2x-2y){\\bf{i}}+(96-2x-18y){\\bf{j}} \\\\  \\nabla{g}(x,y)&=5{\\bf{i}}+{\\bf{j}}.  \\end{align}[\/latex]<br \/>\nThe equation [latex]\\nabla{f}(x_0,y_0)=\\lambda\\nabla{g}(x_0,y_0)[\/latex] becomes<\/p>\n<div id=\"fs-id1167794212873\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">\n<p>[latex]\\hspace{6cm}(48-2x_0-2y_0){\\bf{i}}+(96-2x_0-18y_0){\\bf{j}}=\\lambda(5{\\bf{i}}+{\\bf{j}})[\/latex],<br \/>\nwhich can be rewritten as<\/p>\n<p>[latex](48-2x_0-2y_0){\\bf{i}}+(96-2x_0-18y_0){\\bf{j}}=\\lambda5{\\bf{i}}+\\lambda{\\bf{j}}[\/latex].<\/p>\n<p>We then set the coefficients of [latex]\\bf{i}[\/latex] and [latex]\\bf{j}[\/latex] equal to each other:<\/p>\n<p>[latex]\\hspace{8cm}\\begin{align}    48-2x_0-2y_0&=5\\lambda \\\\    96-2x_0-18y_0&=\\lambda.    \\end{align}[\/latex]<\/p>\n<div style=\"text-align: left;\" data-type=\"equation\" data-label=\"\">\n<p>The equation [latex]g(x_0, y_0)=0[\/latex] becomes [latex]5x_0+y_0-54=0[\/latex]. Therefore, the system of equations that needs to be solved is<\/p>\n<p>[latex]\\hspace{8cm}\\begin{align}    48-2x_0-2y_0&=5\\lambda \\\\    96-2x_0-18y_0&=\\lambda \\\\    5x_0+y_0-54&=0.    \\end{align}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/li>\n<li>We use the left-hand side of the second equation to replace [latex]\\lambda[\/latex] in the first equation:\n<div id=\"fs-id1167793547488\" data-type=\"equation\" data-label=\"\">\n<p>[latex]\\hspace{8cm}\\begin{align}    48-2x_0-2y_0&=5(96-2x_0-18y_0) \\\\    48-2x_0-2y_0&=480-10x_0-90y_0 \\\\    8x_0&=432-88y_0 \\\\    x_0&=54-11y_0.    \\end{align}[\/latex]<\/p>\n<\/div>\n<p>Then we substitute this into the third equation:<\/p>\n<p>&nbsp;<\/p>\n<div id=\"fs-id1167794162841\" data-type=\"equation\" data-label=\"\">\n<p>[latex]\\hspace{8cm}\\begin{align}    5(54-11y_0)+y+0&=0 \\\\    270-55y_0+y_0&=0 \\\\    216-54y_0&=0 \\\\    y_0&=4.    \\end{align}[\/latex]<\/p>\n<\/div>\n<p>Since [latex]x_0=54-11y_0[\/latex], this gives [latex]x_0=10[\/latex].<\/li>\n<li>We then substitute [latex](10, 4)[\/latex] into [latex]f(x, y)=48x+96y-x^{2}-2xy-9y^{2}[\/latex], which gives\n<div id=\"fs-id1167793416705\" data-type=\"equation\" data-label=\"\">\n<div>\n<p>[latex]\\hspace{5cm}\\begin{align}    f(10,4)&=48(10)+96(4)-(10)^2-2(10)(4)-9(4)^2 \\\\    &=480+384-100-80-144=540.    \\end{align}[\/latex]<\/p>\n<\/div>\n<\/div>\n<p>Therefore the maximum profit that can be attained, subject to budgetary constraints, is [latex]$540,000[\/latex] with a production level of [latex]10,000[\/latex] golf balls and [latex]4[\/latex] hours of advertising bought per month. Let\u2019s check to make sure this truly is a maximum. The endpoints of the line that defines the constraint are [latex](10.8, 0)[\/latex] and [latex](0, 54)[\/latex]. Let\u2019s evaluate [latex]f[\/latex] at both of these points:<\/p>\n<div id=\"fs-id1167793560949\" data-type=\"equation\" data-label=\"\">\n<div>\n<p>[latex]\\hspace{5cm}\\begin{align}    f(10.8,0)&=48(10.8)+96(0)-10.8^2-2(10.8)(0)-9(0)^2=401.76 \\\\    f(0,54)&=48(0)+96(54)-0^2-2(0)(54)-9(54)^2=-21,060.    \\end{align}[\/latex]<\/p>\n<\/div>\n<\/div>\n<p>The second value represents a loss, since no golf balls are produced. Neither of these values exceed [latex]540[\/latex], so it seems that our extremum is a maximum value of [latex]f[\/latex].<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>try it<\/h3>\n<p>A company has determined that its production level is given by the Cobb-Douglas function [latex]f(x,y)=2.5x^{0.45}y^{0.55}[\/latex] where [latex]x[\/latex] represents the total number of labor hours in [latex]1[\/latex] year and [latex]y[\/latex] represents the total capital input for the company. Suppose\u00a0[latex]1[\/latex] unit of labor costs [latex]$40[\/latex] and\u00a0[latex]1[\/latex] unit of capital costs [latex]$50[\/latex]. Use the method of Lagrange multipliers to find the maximum value of [latex]f(x,y)=2.5x^{0.45}y^{0.55}[\/latex] subject to a budgetary constraint of [latex]$500,000[\/latex] per year.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q625684923\">Show Solution<\/span><\/p>\n<div id=\"q625684923\" class=\"hidden-answer\" style=\"display: none\">\n<p>A maximum production level of [latex]13,890[\/latex] occurs with [latex]5,625[\/latex] labor hours and [latex]$5,500[\/latex] of total capital input.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>Watch the following video to see the worked solution to the above Try It<\/p>\n<div style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"\/\/plugin.3playmedia.com\/show?mf=8186170&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=xu2_ZpyYkSg&amp;video_target=tpm-plugin-ky4vc3gh-xu2_ZpyYkSg\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\"><\/iframe><\/div>\n<div style=\"text-align: center;\">You can view the <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Calculus+3\/Calc+3+transcripts\/CP4.38_transcript.html\">transcript for \u201c4.38\u201d here (opens in new window).<\/a><\/div>\n<p>In the case of an optimization function with three variables and a single constraint function, it is possible to use the method of Lagrange multipliers to solve an optimization problem as well. An example of an optimization function with three variables could be the\u00a0<span id=\"dd17f45f-4704-4868-9192-90879033063c_term204\" class=\"no-emphasis\" data-type=\"term\">Cobb-Douglas function<\/span>\u00a0in the previous example: [latex]f(x,y,z)=x^{0.2}y^{0.4}z^{0.4}[\/latex], where [latex]x[\/latex] represents the cost of labor, [latex]y[\/latex] represents capital input, and [latex]z[\/latex] represents the cost of advertising. The method is the same as for the method with a function of two variables; the equations to be solved are<\/p>\n<p>[latex]\\hspace{10cm}\\begin{align}    \\nabla{f}(x,y,z)&=\\lambda\\nabla{g}(x,y,z) \\\\    g(x,y,z)&=0.    \\end{align}[\/latex]<\/p>\n<div class=\"textbox exercises\">\n<h3>Example: lagrange multipliers with a three-variable optimization function<\/h3>\n<p>Find the minimum of the function [latex]f(x, y, z)=x^{2}+y^{2}+z^{2}[\/latex] subject to the constraint [latex]x+y+z=1[\/latex].<\/p>\n<p>&nbsp;<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q734795270\">Show Solution<\/span><\/p>\n<div id=\"q734795270\" class=\"hidden-answer\" style=\"display: none\">\n<ol id=\"fs-id1167793411204\" type=\"1\">\n<li>The optimization function is [latex]f(x, y, z)=x^{2}+y^{2}+z^{2}[\/latex]. To determine the constraint function, we subtract 1 from each side of the constraint: [latex]x+y+z-1=0[\/latex] which gives the constraint function as [latex]g(x, y, z)=x+y+z-1[\/latex].<\/li>\n<li>Next, we calculate\u00a0[latex]\\nabla{f}(x,y,z)[\/latex] and\u00a0[latex]\\nabla{g}(x,y,z)[\/latex]:<br \/>\n<span data-type=\"newline\">[latex]\\hspace{7cm}\\begin{align}\\nabla{f}(x,y,z)&=\\langle2x,2y,2z\\rangle \\\\\\nabla{g}(x,y,z)&=\\langle1,1,1\\rangle \\end{align}[\/latex]<\/span><span data-type=\"newline\"><br \/>\n<\/span>This leads to the equations<span data-type=\"newline\"><br \/>\n<\/span><\/p>\n<div id=\"fs-id1167793612617\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">[latex]\\hspace{7cm}\\begin{align}\\langle2x_0,2y_0,2z_0\\rangle&=\\lambda\\langle1,1,1\\rangle \\\\x_0+y_0+z_0-1&=0 \\end{align}[\/latex]<\/div>\n<p><span data-type=\"newline\"><br \/>\n<\/span>which can be rewritten in the following form:<span data-type=\"newline\"><br \/>\n<\/span><\/p>\n<div id=\"fs-id1167793373631\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">\n<p>[latex]\\hspace{7cm}\\begin{align}    2x_0&=\\lambda \\\\    2y_0&=\\lambda \\\\    2z_0&=\\lambda \\\\    x_0+y_0+z_0-1&=0.    \\end{align}[\/latex]<\/p>\n<\/div>\n<\/li>\n<li>Since each of the first three equations has [latex]\\lambda[\/latex] on the right-hand side, we know that [latex]2x_0=2y_0=2z_0[\/latex] and all three variables are equal to each other. Substituting [latex]y_0=x_0[\/latex] and [latex]z_0=x_0[\/latex] into the last equation yields [latex]3x_0-1=0[\/latex], so [latex]x_0=\\frac13[\/latex] and [latex]y_0=\\frac13[\/latex] and [latex]z_0=\\frac13[\/latex] which corresponds to a critical point on the constraint curve.<\/li>\n<li>Then, we evaluate [latex]f[\/latex] at the point [latex]\\left(\\frac13,\\frac13,\\frac13\\right)[\/latex]:\u00a0<span data-type=\"newline\"><br \/>\n<\/span><\/p>\n<div id=\"fs-id1167793937404\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">[latex]\\hspace{6cm}\\large{f\\left(\\frac13,\\frac13,\\frac13\\right)=\\left(\\frac13\\right)^2+\\left(\\frac13\\right)^2+\\left(\\frac13\\right)^2=\\frac39=\\frac13}.[\/latex]<\/div>\n<p>Therefore, an extremum of the function is [latex]\\frac{1}{3}[\/latex]. To verify it is a minimum, choose other points that satisfy the constraint and calculate [latex]f[\/latex] at that point. For example,<span data-type=\"newline\"><br \/>\n<\/span><\/p>\n<div id=\"fs-id1167794293267\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">[latex]\\hspace{7cm}\\begin{align} f(1,0,0)&=1^2+0^2+0^2=1 \\\\f(0,-2,3)&=0^2+(-2)^2+3^2=13. \\end{align}[\/latex]<\/div>\n<p><span data-type=\"newline\"><br \/>\n<\/span>Both of these values are greater than [latex]\\frac{1}{3}[\/latex], leading us to believe the extremum is a minimum.<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>Try it<\/h3>\n<p id=\"fs-id1167794177145\">Use the method of Lagrange multipliers to find the minimum value of the function<\/p>\n<p style=\"text-align: center;\">[latex]\\large{f(x,y,z)=x+y+z}[\/latex]<\/p>\n<p><span style=\"font-size: 1rem; text-align: initial;\">subject to the constraint [latex]x^2+y^2+z^2=1[\/latex].<\/span><span style=\"font-size: 1rem; text-align: initial;\">\u00a0<\/span><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q457389340\">Show Solution<\/span><\/p>\n<div id=\"q457389340\" class=\"hidden-answer\" style=\"display: none\">\n<p>[latex]\\hspace{6cm}\\begin{align}    f\\left(\\frac{\\sqrt3}3,\\frac{\\sqrt3}3,\\frac{\\sqrt3}3\\right)&=\\frac{\\sqrt3}3+\\frac{\\sqrt3}3+\\frac{\\sqrt3}3=\\sqrt3 \\\\    f\\left(-\\frac{\\sqrt3}3,-\\frac{\\sqrt3}3,-\\frac{\\sqrt3}3\\right)&=-\\frac{\\sqrt3}3-\\frac{\\sqrt3}3-\\frac{\\sqrt3}3=-\\sqrt3    \\end{align}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<h2 data-type=\"title\">Problems with Two Constraints<\/h2>\n<p id=\"fs-id1167793371372\">The method of Lagrange multipliers can be applied to problems with more than one constraint. In this case the optimization function, [latex]w[\/latex] is a function of three variables:<\/p>\n<p style=\"text-align: center;\">[latex]\\large{w=f(x, y, z)}[\/latex]<\/p>\n<p id=\"fs-id1167793927731\">and it is subject to two constraints:<\/p>\n<p style=\"text-align: center;\">[latex]g(x, y, z)=0[\/latex] and\u00a0[latex]h(x, y, z)=0[\/latex]<\/p>\n<p id=\"fs-id1167793452763\">There are two Lagrange multipliers, [latex]\\lambda_1[\/latex] and [latex]\\lambda_2[\/latex], and the system of equations becomes<\/p>\n<p>[latex]\\hspace{7cm}\\large{\\begin{align}    \\nabla{f}(x_0,y_0,z_0)&=\\lambda_1\\nabla{g}(x_0,y_0,z_0)+\\lambda_2\\nabla{h}(x_0,y_0,z_0) \\\\    g(x_0,y_0,z_0)&=0 \\\\    h(x_0,y_0,z_0)&=0.    \\end{align}}[\/latex]<\/p>\n<div class=\"textbox exercises\">\n<h3>Example: Lagrange Multipliers with Two constraints<\/h3>\n<p>Find the maximum and minimum values of the function<\/p>\n<p style=\"text-align: center;\">[latex]\\large{f(x, y, z)=x^{2}+y^{2}+z^{2}}[\/latex]<\/p>\n<p>subject to the constraints\u00a0[latex]z^{2}=x^{2}+y^{2}[\/latex] and\u00a0[latex]x+y-z+1=0[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q568214519\">Show Solution<\/span><\/p>\n<div id=\"q568214519\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1167793400611\">Let\u2019s follow the problem-solving strategy:<\/p>\n<ol id=\"fs-id1167793400614\" type=\"1\">\n<li>The optimization function is [latex]f(x, y, z)=x^{2}+y^{2}+z^{2}[\/latex]. To determine the constraint functions, we first subtract [latex]z^2[\/latex] from both sides of the first constraint, which gives [latex]x^2+y^2-z^2=0[\/latex], so [latex]g(x,y,z)=x^2+y^2-z^2[\/latex]. The second constraint function is [latex]h(x,y,z)=x+y-z+1[\/latex].<\/li>\n<li>\n<div class=\"unnumbered\" data-type=\"equation\" data-label=\"\">\n<p>We then calculate the gradients of [latex]f[\/latex],\u00a0[latex]g[\/latex], and\u00a0[latex]h[\/latex]:<\/p>\n<p>&nbsp;<\/p>\n<p>[latex]\\hspace{6cm}\\large{\\begin{align}    \\nabla{f}(x,y,z)&=2x{\\bf{i}}+2y{\\bf{j}}+2z{\\bf{k}} \\\\    \\nabla{g}(x,y,z)&=2x{\\bf{i}}+2y{\\bf{j}}-2z{\\bf{k}} \\\\    \\nabla{h}(x,y,z)&={\\bf{i}}+{\\bf{j}}-{\\bf{k}}.    \\end{align}}[\/latex]<\/p>\n<p><span data-type=\"newline\"><br \/>\n<\/span>The equation [latex]\\nabla{f}(x_0,y_0,z_0)=\\lambda_1\\nabla{g}(x_0,y_0,z_0)+\\lambda_2\\nabla{h}(x_0,y_0,z_0)[\/latex] becomes<span data-type=\"newline\"><br \/>\n<\/span><\/p>\n<p style=\"text-align: center;\">[latex]\\large{2x_0{\\bf{i}}+2y_0{\\bf{j}}+2z_0{\\bf{k}}=\\lambda_(2x_0{\\bf{i}}+2y_0{\\bf{j}}-2z_0{\\bf{k}})+\\lambda_2({\\bf{i}}+{\\bf{j}}-{\\bf{k}})},[\/latex]<\/p>\n<p>which can be rewritten as<\/p>\n<p style=\"text-align: center;\">[latex]\\large{2x_0{\\bf{i}}+2y_0{\\bf{j}}+2z_0{\\bf{k}}=(2\\lambda_1x_0+\\lambda_2){\\bf{i}}+(2\\lambda_1y_0+\\lambda_2){\\bf{j}}-(2\\lambda_1z_0+\\lambda_2){\\bf{k}}}.[\/latex]<\/p>\n<p>Next, we set the coefficients of [latex]\\bf{i}[\/latex], [latex]\\bf{j}[\/latex], and [latex]\\bf{k}[\/latex] equal to each other:<br \/>\n[latex]\\hspace{9cm}\\large{\\begin{align}  2x_0&=2\\lambda_1x_0+\\lambda_2 \\\\  2y_0&=2\\lambda_1y_0+\\lambda_2 \\\\  2z_0&=2\\lambda_1z_0-\\lambda_2.  \\end{align}}[\/latex]<br \/>\nThe two equations that arise from the constraints are [latex]x_0^2=x_0^2+y_0^2[\/latex] and [latex]x_0+y_0-z_0+1=0[\/latex]. Combining these equations with the previous three equations gives<br \/>\n[latex]\\hspace{7cm}\\large{\\begin{align}  2x_0&=2\\lambda_1x_0+\\lambda_2 \\\\  2x_0&=2\\lambda_1y_0+\\lambda_2 \\\\  2x_0&=2\\lambda_1z_0-\\lambda_2 \\\\  {z_0}^2&={x_0}^2+{y_0}^2 \\\\  x_0+y_0-z_0+1&=0.  \\end{align}}[\/latex]<\/p>\n<\/div>\n<\/li>\n<li>The first three equations contain the variable [latex]\\lambda_2[\/latex]. Solving the third equation for [latex]\\lambda_2[\/latex] and replacing into the first and second equations reduces the number of equations to four:<span data-type=\"newline\"><br \/>\n<\/span><br \/>\n[latex]\\hspace{7cm}\\large{\\begin{align}  2x_0&=2\\lambda_1x_0-2\\lambda_1z_0-2z_0 \\\\2y_0&=2\\lambda_1y_0-2\\lambda_1z_0-2z_0 \\\\{z_0}^2&={x_0}^2+{y_0}^2 \\\\x_0+y_0-z_0+1&=0.\\end{align}}[\/latex]<br \/>\n<span data-type=\"newline\"><br \/>\n<\/span>Next, we solve the first and second equation for [latex]\\lambda_1[\/latex]. The first equation gives [latex]\\lambda_1=\\frac{x_0+z_0}{x_0-z_0}[\/latex], the second equation gives [latex]\\lambda_1=\\frac{y_0+z_0}{y_0-z_0}[\/latex]. We set the right-hand side of each equation equal to each other and cross-multiply:<span data-type=\"newline\"><br \/>\n<\/span><\/p>\n<div id=\"fs-id1167793423565\" class=\"unnumbered\" data-type=\"equation\" data-label=\"\">\n<p>[latex]\\hspace{6cm}\\large{\\begin{align}\\frac{x_0+z_0}{x_0-z_0}&=\\frac{y_0+z_0}{y_0-z_0} \\\\    (x_0+z_0)(y_0-z_0)&=(x_0-z_0)(y_0+z_0) \\\\    x_0y_0-x_0z_0+y_0z_0-{z_0}^2&=x_0y_0+x_0z_0-y_0z_0-{z_0}^2 \\\\    2y_0z_0-2x_0z_0&=0 \\\\    2x_0(y_0-x_0)&=0.    \\end{align}}[\/latex]<\/p>\n<\/div>\n<p>Therefore, either [latex]z_0=0[\/latex] or [latex]y_0=x_0[\/latex]. If [latex]z_0=0[\/latex], then the first constraint becomes [latex]0=x_0^2+y_0^2[\/latex] The only real solution to this equation is [latex]x_0=0[\/latex] and [latex]y_0=0[\/latex], which gives the ordered triple [latex](0,0,0)[\/latex]. This point does not satisfy the second constraint, so it is not a solution.Next, we consider [latex]y_0=x_0[\/latex], which reduces the number of equations to three:<span data-type=\"newline\"><br \/>\n<\/span><\/p>\n<p>[latex]\\hspace{8cm}\\large{\\begin{align}    y_0&=x_0 \\\\    {z_0}^2&={x_0}^2+{y_0}^2 \\\\    x_0+y_0-z_0+1&=0.    \\end{align}}[\/latex]<br \/>\nWe substitute the first equation into the second and third equations:<span data-type=\"newline\"><br \/>\n<\/span><\/p>\n<p>[latex]\\hspace{8cm}\\large{\\begin{align}    {z_0}^2&={x_0}^2+{y_0}^2 \\\\    x_0+y_0-z_0+1&=0.    \\end{align}}[\/latex]<\/p>\n<p>Then, we solve the second equation for [latex]z_0[\/latex], which gives [latex]z_0=2x_0+1[\/latex]. We then substitute this into the first equation,<span data-type=\"newline\"><br \/>\n<\/span><\/p>\n<p>[latex]\\hspace{7cm}\\large{\\begin{align}    {z_0}^2&={2x_0}^2 \\\\    (2x_0+1)^2&={2x_0}^2 \\\\    {4x_0}^2+4x_0+1&={2x_0}^2 \\\\    {2x_0}^2+4x_0+1&=0    \\end{align}}[\/latex]<br \/>\nand use the quadratic formula to solve for [latex]x_0[\/latex]:<\/p>\n<p style=\"text-align: center;\"><span data-type=\"newline\">[latex]\\large{x+0=\\frac{-4\\pm\\sqrt{4^2-4(2)(1)}}{2(2)}=\\frac{-4\\pm\\sqrt8}4=\\frac{-4\\pm2\\sqrt2}4=-1\\pm\\frac{\\sqrt2}2}[\/latex].<\/span><\/p>\n<p><span data-type=\"newline\"><br \/>\n<\/span>Recall [latex]y_0=x_0[\/latex],so this solves for [latex]y_0[\/latex] as well. Then, [latex]z_0=2x_0+1[\/latex], so<\/p>\n<p style=\"text-align: center;\"><span data-type=\"newline\">[latex]\\large{x_0=2x_0+1=2\\left(-1\\pm\\frac{\\sqrt2}2\\right)+1=-2+1\\pm\\sqrt2=-1\\pm\\sqrt2}.[\/latex]<\/span><\/p>\n<p>Therefore, there are two ordered triplet solutions:<\/p>\n<p style=\"text-align: center;\"><span data-type=\"newline\">[latex]\\left(-1+\\frac{\\sqrt2}2,-1+\\frac{\\sqrt2}2,-1+\\sqrt2\\right)[\/latex] and [latex]\\left(-1-\\frac{\\sqrt2}2,-1-\\frac{\\sqrt2}2,-1-\\sqrt2\\right).[\/latex]<\/span><\/p>\n<\/li>\n<li>We substitute [latex]\\left(-1+\\frac{\\sqrt2}2,-1+\\frac{\\sqrt2}2,-1+\\sqrt2\\right)[\/latex] into [latex]f(x,y,z)=x^2+y^2+z^2[\/latex], which gives<span data-type=\"newline\"><br \/>\n<\/span><br \/>\n[latex]\\hspace{3cm}\\begin{align}  f\\left(-1+\\frac{\\sqrt2}2,-1+\\frac{\\sqrt2}2,-1+\\sqrt2\\right)&=\\left(-1+\\frac{\\sqrt2}2\\right)^2+\\left(-1+\\frac{\\sqrt2}2\\right)^2+\\left(-1+\\sqrt2\\right)^2 \\\\  &=(1-\\sqrt2+\\frac12)+(1-\\sqrt2+\\frac12)+(1-2\\sqrt2+2) \\\\  &=6-4\\sqrt2.  \\end{align}[\/latex]<br \/>\n<span data-type=\"newline\"><br \/>\n<\/span>[latex]6+4\\sqrt2[\/latex] is the maximum value and [latex]6-4\\sqrt2[\/latex]\u00a0is the minimum value of [latex]f(x,y,z)[\/latex] subject to the given constraints.<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>Try it<\/h3>\n<p id=\"fs-id1167794314954\">Use the method of Lagrange multipliers to find the minimum value of the function<\/p>\n<p style=\"text-align: center;\">[latex]\\large{f(x,y,z)=x^2+y^2+z^2}[\/latex]<\/p>\n<p><span style=\"font-size: 1rem; text-align: initial;\">subject to the constraints [latex]2x+y+2z=9[\/latex]\u00a0<\/span><span style=\"font-size: 1rem; text-align: initial;\">and [latex]5x+5y+7z=29[\/latex].\u00a0<\/span><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q131765238\">Show Solution<\/span><\/p>\n<div id=\"q131765238\" class=\"hidden-answer\" style=\"display: none\">\n<p>[latex]f(2,1,2)=9[\/latex] is a minimum.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>Watch the following video to see the worked solution to the above Try It<\/p>\n<div style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"\/\/plugin.3playmedia.com\/show?mf=8186171&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=xwTxfOqbXkw&amp;video_target=tpm-plugin-jwom32th-xwTxfOqbXkw\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\"><\/iframe><\/div>\n<div style=\"text-align: center;\">You can view the <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Calculus+3\/Calc+3+transcripts\/CP4.40_transcript.html\">transcript for \u201cCP 4.40\u201d here (opens in new window).<\/a><\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-875\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Original<\/div><ul class=\"citation-list\"><li>CP 4.38. <strong>Authored by<\/strong>: Ryan Melton. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><li>CP 4.40. <strong>Authored by<\/strong>: Ryan Melton. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><\/ul><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Calculus Volume 3. <strong>Authored by<\/strong>: Gilbert Strang, Edwin (Jed) Herman. <strong>Provided by<\/strong>: OpenStax. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction\">https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">CC BY-NC-SA: Attribution-NonCommercial-ShareAlike<\/a><\/em>. <strong>License Terms<\/strong>: Access for free at https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction<\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":349141,"menu_order":35,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc\",\"description\":\"Calculus Volume 3\",\"author\":\"Gilbert Strang, Edwin (Jed) Herman\",\"organization\":\"OpenStax\",\"url\":\"https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction\",\"project\":\"\",\"license\":\"cc-by-nc-sa\",\"license_terms\":\"Access for free at https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction\"},{\"type\":\"original\",\"description\":\"CP 4.38\",\"author\":\"Ryan Melton\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"CP 4.40\",\"author\":\"Ryan Melton\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-875","chapter","type-chapter","status-publish","hentry"],"part":22,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/users\/349141"}],"version-history":[{"count":162,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/875\/revisions"}],"predecessor-version":[{"id":6400,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/875\/revisions\/6400"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/parts\/22"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/875\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/media?parent=875"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapter-type?post=875"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/contributor?post=875"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/license?post=875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}