<< Chapter < Page Chapter >> Page >

Method of lagrange multipliers: one constraint

Let f and g be functions of two variables with continuous partial derivatives at every point of some open set containing the smooth curve g ( x , y ) = 0 . Suppose that f , when restricted to points on the curve g ( x , y ) = 0 , has a local extremum at the point ( x 0 , y 0 ) and that g ( x 0 , y 0 ) 0 . Then there is a number λ called a Lagrange multiplier    , for which

f ( x 0 , y 0 ) = λ g ( x 0 , y 0 ) .

Proof

Assume that a constrained extremum occurs at the point ( x 0 , y 0 ) . Furthermore, we assume that the equation g ( x , y ) = 0 can be smoothly parameterized as

x = x ( s ) and y = y ( s )

where s is an arc length parameter with reference point ( x 0 , y 0 ) at s = 0 . Therefore, the quantity z = f ( x ( s ) , y ( s ) ) has a relative maximum or relative minimum at s = 0 , and this implies that d z d s = 0 at that point. From the chain rule,

d z d s = f x · x s + f y · y s = ( f x i + j x s ) + ( f y · y s ) = 0 ,

where the derivatives are all evaluated at s = 0 . However, the first factor in the dot product is the gradient of f , and the second factor is the unit tangent vector T ( 0 ) to the constraint curve. Since the point ( x 0 , y 0 ) corresponds to s = 0 , it follows from this equation that

f ( x 0 , y 0 ) · T ( 0 ) = 0 ,

which implies that the gradient is either 0 or is normal to the constraint curve at a constrained relative extremum. However, the constraint curve g ( x , y ) = 0 is a level curve for the function g ( x , y ) so that if g ( x 0 , y 0 ) 0 then g ( x 0 , y 0 ) is normal to this curve at ( x 0 , y 0 ) It follows, then, that there is some scalar λ such that

f ( x 0 , y 0 ) = λ g ( x 0 , y 0 )

To apply [link] to an optimization problem similar to that for the golf ball manufacturer, we need a problem-solving strategy.

Problem-solving strategy: steps for using lagrange multipliers

  1. Determine the objective function f ( x , y ) and the constraint function g ( x , y ) . Does the optimization problem involve maximizing or minimizing the objective function?
  2. Set up a system of equations using the following template:
    f ( x 0 , y 0 ) = λ g ( x 0 , y 0 ) g ( x 0 , y 0 ) = 0 .
  3. Solve for x 0 and y 0 .
  4. The largest of the values of f at the solutions found in step 3 maximizes f ; the smallest of those values minimizes f .

Using lagrange multipliers

Use the method of Lagrange multipliers to find the minimum value of f ( x , y ) = x 2 + 4 y 2 2 x + 8 y subject to the constraint x + 2 y = 7 .

Let’s follow the problem-solving strategy:

  1. The optimization function is f ( x , y ) = x 2 + 4 y 2 2 x + 8 y . To determine the constraint function, we must first subtract 7 from both sides of the constraint. This gives x + 2 y 7 = 0 . The constraint function is equal to the left-hand side, so g ( x , y ) = x + 2 y 7 . The problem asks us to solve for the minimum value of f , subject to the constraint (see the following graph).
    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).
    Graph of level curves of the function f ( x , y ) = x 2 + 4 y 2 2 x + 8 y corresponding to c = 10 and 26 . The red graph is the constraint function.
  2. We then must calculate the gradients of both f and g :
    f ( x , y ) = ( 2 x 2 ) i + ( 8 y + 8 ) j g ( x , y ) = i + 2 j .

    The equation f ( x 0 , y 0 ) = λ g ( x 0 , y 0 ) becomes
    ( 2 x 0 2 ) i + ( 8 y 0 + 8 ) j = λ ( i + 2 j ) ,

    which can be rewritten as
    ( 2 x 0 2 ) i + ( 8 y 0 + 8 ) j = λ i + λ j .

    Next, we set the coefficients of i and j equal to each other:
    2 x 0 2 = λ 8 y 0 + 8 = 2 λ .

    The equation g ( x 0 , y 0 ) = 0 becomes x 0 + 2 y 0 7 = 0 . Therefore, the system of equations that needs to be solved is
    2 x 0 2 = λ 8 y 0 + 8 = 2 λ x 0 + 2 y 0 7 = 0.
  3. This is a linear system of three equations in three variables. We start by solving the second equation for λ and substituting it into the first equation. This gives λ = 4 y 0 + 4 , so substituting this into the first equation gives
    2 x 0 2 = 4 y 0 + 4 .

    Solving this equation for x 0 gives x 0 = 2 y 0 + 3 . We then substitute this into the third equation:
    ( 2 y 0 + 3 ) + 2 y 0 7 = 0 4 y 0 4 = 0 y 0 = 1.

    Since x 0 = 2 y 0 + 3 , this gives x 0 = 5 .
  4. Next, we substitute ( 5 , 1 ) into f ( x , y ) = x 2 + 4 y 2 2 x + 8 y , gives f ( 5 , 1 ) = 5 2 + 4 ( 1 ) 2 2 ( 5 ) + 8 ( 1 ) = 27 . To ensure this corresponds to a minimum value on the constraint function, let’s try some other values, such as the intercepts of g ( x , y ) = 0 , Which are ( 7 , 0 ) and ( 0 , 3.5 ) . We get f ( 7 , 0 ) = 35 and f ( 0 , 3.5 ) = 77 , so it appears f has a minimum at ( 5 , 1 ) .
Got questions? Get instant answers now!
Got questions? Get instant answers now!

Questions & Answers

what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
What would be the best educational aid(s) for gifted kids/savants?
Heidi Reply
treat them normal, if they want help then give them. that will make everyone happy
Saurabh
What are the treatment for autism?
Magret Reply
hello. autism is a umbrella term. autistic kids have different disorder overlapping. for example. a kid may show symptoms of ADHD and also learning disabilities. before treatment please make sure the kid doesn't have physical disabilities like hearing..vision..speech problem. sometimes these
Jharna
continue.. sometimes due to these physical problems..the diagnosis may be misdiagnosed. treatment for autism. well it depends on the severity. since autistic kids have problems in communicating and adopting to the environment.. it's best to expose the child in situations where the child
Jharna
child interact with other kids under doc supervision. play therapy. speech therapy. Engaging in different activities that activate most parts of the brain.. like drawing..painting. matching color board game. string and beads game. the more you interact with the child the more effective
Jharna
results you'll get.. please consult a therapist to know what suits best on your child. and last as a parent. I know sometimes it's overwhelming to guide a special kid. but trust the process and be strong and patient as a parent.
Jharna
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply
Practice Key Terms 5

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Calculus volume 3. OpenStax CNX. Feb 05, 2016 Download for free at http://legacy.cnx.org/content/col11966/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Calculus volume 3' conversation and receive update notifications?

Ask