SlideShare a Scribd company logo
 Named after Joseph Louis Lagrange.
 Lagrange multipliers provides a strategy for finding
the maxima and minima of a function subject
to constraints.
 One of the most common problems in calculus is that
of finding maxima or minima of a function.
 Difficulties often arise when one wishes to maximize
or minimize a function subject to fixed outside
conditions or constraints.
 The method of Lagrange multipliers is a powerful tool
for solving this class of problems.
Lets consider there is a function f(x, y, z)whose maxima or
minima is to be find out subjected to the constraint
g(x, y, z) ..
 Solve the following system of equations.
f(x, y, z) = λ g(x, y, z)
g(x, y, z) = k
• Plug in all solutions, (x, y, z),
from the first step into f(x, y, z) and identify the minimum
and maximum values, provided they exist.
• The constant, , is called the Lagrange Multiplier.
 Here,
f(x, y) = 5x – 3y
constraint
g(x, y) = x² + y²-136
Thus,
δf(x, y)/δx = 5
δ f(x, y)/δy = -3
δg(x, y)/δx = 2 x
δg(x, y)/δy = 2 y
• Now, applying
δf(x, y)/δx = λ δg(x, y)/δx
δf(x, y)/δy = λ δg(x, y)/δy
We get following set of equations ..
5 = 2 λx
-3 = 2 λy
x² + y²=136 (constraint)
Solving these equations
x = 5/2 λ
y = -3/2 λ
Plugging these into the constraint we get
λ = ± ¼
If λ = ¼ then, x=10 and y=-6
if λ=-1/4 then, x=-10 and y= 6
To determine if we have maximums or minimums we just need to plug these
into the function.
Here are the minimum and maximum values of the function.
f(-10,6) = -68 Minimum at(-10,6)
f(10,-6) = 68 Maximum at(10,-6)
 Here,
f(x, y, z) = xyz (volume of the box)
constraint
2(x y + y z + z x) = 64 (total surface area)
i.e. x y + y z + z x = 32
g(x ,y ,z) = x y + y z + z x-32
Thus, we get..
δf(x, y, z)/δx = y z
δf(x, y, z)/δy = x z
δf(x, y, z)/δz = y x
δg(x, y, z)/δx = (y + z)
δg(x, y, z)/δy = (x + z)
δg(x, y, z)/δz = (y + x)
 Now, applying
δf(x, y, z)/δx = λ δg(x, y, z)/δx
δf(x, y, z)/δy = λ δg(x, y, z)/δy
δf(x, y, z)/δz = λ δg(x, y, z)/δz
We get following set of equations ..
y z = λ (y + z)
x z = λ (x + z)
y x = λ (y + x)
x y + y z + z x = 32 (constraint)
Applying either elimination or substitution method we now
solve the set of equations thus obtained..
Thus, x = y = z = 3.266
We can say that we will get a maximum volume if the dimensions
are
x = y = z = 3.266
 Find the maximum and minimum values of
f(x, y, z) = x y z subject to the constraint x + y + z =
1. Assume that x, y, z ≥ 0.
 Find the maximum and minimum values of
f(x, y) = 4x² + 10y² on the disk while x² + y²≤ 4.
Consider the following…….
 Find the maximum and minimum of f(x, y, z) = 4y – 2z
subject to constraints 2x – y – z = 2 and x² + y² = 1.
 If g1=0, g2=0, g3=0, ………, g n=0 are n number of constraints
then..
Solve the following system of equations.
f(P) = λ1 g1(P) + λ2 g2(P) + … + λn g n(P)
g1(P) = k1
g2(P) = k2
.
.
.
g n(P) = k n
• Plug in all solutions, (x, y, z),
from the first step into f(x, y, z) and identify the minimum and
maximum values, provided they exist.
• The constants, λ1 , λ2, ….., λn is called the Lagrange Multiplier.
Here,
f(x1,x2,x3,x4,x5)= x1
2+x2
2+x3
2+x4
2+x5
2
Constraints
g1(x1,x2,x3,x4,x5)=x1+2x2+x3-1
g2(x1,x2,x3,x4,x5)=x3-2x4+x5-6
Thus,
δf(x1,x2,x3,x4,x5)/δx1 =2x1
δf(x1,x2,x3,x4,x5)/δx2 =2x2
δf(x1,x2,x3,x4,x5)/δx3 =2x3
δf(x1,x2,x3,x4,x5)/δx4 =2x4
δf(x1,x2,x3,x4,x5)/δx5 =2x5
δg1(x1,x2,x3,x4,x5)/δ x1 =1
δg1 (x1,x2,x3,x4,x5)/δx2 =2
δg1 (x1,x2,x3,x4,x5)/δx3 =1
δg1 (x1,x2,x3,x4,x5)/δx4 =0
δg1 (x1,x2,x3,x4,x5)/δx5 =0
δg2(x1,x2,x3,x4,x5)/δ x1 =0
δg2 (x1,x2,x3,x4,x5)/δx2 =0
δg2 (x1,x2,x3,x4,x5)/δx3 =1
δg2 (x1,x2,x3,x4,x5)/δx4 =-2
δg2 (x1,x2,x3,x4,x5)/δx5 =1
On applying,
δf(x1,x2,x3,x4,x5)/δx1 = λ δg1(x1,x2,x3,x4,x5)/δ x1 + µ
δg2(x1,x2,x3,x4,x5)/δ x1
δf(x1,x2,x3,x4,x5)/δx2= λ δg1 (x1,x2,x3,x4,x5)/δx2 + µ δg2
(x1,x2,x3,x4,x5)/δx2
δf(x1,x2,x3,x4,x5)/δx3= λ δg1(x1,x2,x3,x4,x5)/δ x3 + µ
δg2(x1,x2,x3,x4,x5)/δ x3
δf(x1,x2,x3,x4,x5)/δx4= λ δg1(x1,x2,x3,x4,x5)/δ x4 + µ
δg2(x1,x2,x3,x4,x5)/δ x4
δf(x1,x2,x3,x4,x5)/δx5= λ δg1(x1,x2,x3,x4,x5)/δ x5 + µ
δg2(x1,x2,x3,x4,x5)/δ x5
We get following set of equations ..
2x1 + λ=0 ,
2x2 +2 λ=0 ,
2x3 + λ + µ =0 ,
2x4 -2 µ =0 ,
2x5 + µ =0
x1+2x2+x3=1 , x3-2x4+x5=6 (constraint)
On Solving these equations
µ=-2, λ=0
Plugging these into the equations we get
x1=x2=0, x3=x5=1 and x4=-2
To determine minimums we just need to plug these into
the function.
Here ,the minimum values of the function.
f(0,0,1,-2,1)=6.
Here,
f(x , y , z)=4y-2z
Constraint,
g1(x ,y ,z)=2x-y-z-2
g2(x ,y ,z)= x² + y² -1
Thus,
δf(x ,y ,z)/δx =0
δf(x ,y ,z)/δy =4
δf(x ,y ,z)/δz =-2
δg1(x ,y ,z)/δx =2
δg1(x ,y ,z)/δy =-1
δg1(x ,y ,z)/δz =-1
δg2(x ,y ,z)/δx=2x
δg2(x ,y ,z)/δy =2y
δg2(x ,y ,z)/δz=0
On applying,
δf(x ,y ,z)/δx= λ δg1 (x ,y ,z)/δx + µ δg2 (x ,y ,z)/δx
δf(x ,y ,z)/δy= λ δg1 (x ,y ,z)/δy+ µ δg2 (x ,y ,z)/δy
δf(x ,y ,z)/δz= λ δg1 (x ,y ,z)/δz + µ δg2 (x ,y ,z)/δz
We get following set of equations ..
2 λ+2x µ=0,
- λ+2y µ=4,
- λ=-2,
2x – y – z = 2, (constraint)
x² + y² = 1 (constraint)
On Solving these equations…
λ=2, µ=+5,-5
Plugging these into the equations we get
If µ=+5 ,then x=0.8,y=-0.6,z=0.2 and
If µ=-5 ,then x=-0.8,y=0.6,z=-4.2
To determine if we have maximums or minimums we
just need to plug these into the function.
Here are the minimum and maximum values of the
function.
f(0.8,-0.6,0.2)=-2.8 minimum at(0.8,-0.6,0.2)
f(-0.8,0.6,-4.2)=10.8 maximum at(-0.8,0.6,-4.2)

More Related Content

Similar to LAGRANGE_MULTIPLIER.ppt

Application of derivatives 2 maxima and minima
Application of derivatives 2  maxima and minimaApplication of derivatives 2  maxima and minima
Application of derivatives 2 maxima and minima
sudersana viswanathan
 
Algebra 2 Section 5-1
Algebra 2 Section 5-1Algebra 2 Section 5-1
Algebra 2 Section 5-1
Jimbo Lamb
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus
OlooPundit
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Limit and continuity
Limit and continuityLimit and continuity
Limit and continuity
Digvijaysinh Gohil
 
Chap14_Sec8 - Lagrange Multiplier.ppt
Chap14_Sec8 - Lagrange Multiplier.pptChap14_Sec8 - Lagrange Multiplier.ppt
Chap14_Sec8 - Lagrange Multiplier.ppt
MahmudulHaque71
 
Ece3075 a 8
Ece3075 a 8Ece3075 a 8
Ece3075 a 8
Aiman Malik
 
Recursive Compressed Sensing
Recursive Compressed SensingRecursive Compressed Sensing
Recursive Compressed Sensing
Pantelis Sopasakis
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)
Tarun Gehlot
 
functions limits and continuity
functions limits and continuityfunctions limits and continuity
functions limits and continuity
Pume Ananda
 
Maxima & Minima of Calculus
Maxima & Minima of CalculusMaxima & Minima of Calculus
Maxima & Minima of Calculus
Arpit Modh
 
polynomials class 9th maths presentation
polynomials class 9th maths presentationpolynomials class 9th maths presentation
polynomials class 9th maths presentation
AnushkaDubey19
 
3. Functions II.pdf
3. Functions II.pdf3. Functions II.pdf
Basic Cal - Quarter 1 Week 1-2.pptx
Basic Cal - Quarter 1 Week 1-2.pptxBasic Cal - Quarter 1 Week 1-2.pptx
Basic Cal - Quarter 1 Week 1-2.pptx
jamesvalenzuela6
 
1.1_The_Definite_Integral.pdf odjoqwddoio
1.1_The_Definite_Integral.pdf odjoqwddoio1.1_The_Definite_Integral.pdf odjoqwddoio
1.1_The_Definite_Integral.pdf odjoqwddoio
NoorYassinHJamel
 
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
polanesgumiran
 
The chain rule
The chain ruleThe chain rule
The chain rule
J M
 
Jacobians new
Jacobians newJacobians new
Jacobians new
Cyprian. Konyeha
 

Similar to LAGRANGE_MULTIPLIER.ppt (20)

Application of derivatives 2 maxima and minima
Application of derivatives 2  maxima and minimaApplication of derivatives 2  maxima and minima
Application of derivatives 2 maxima and minima
 
Algebra 2 Section 5-1
Algebra 2 Section 5-1Algebra 2 Section 5-1
Algebra 2 Section 5-1
 
Differential Calculus
Differential Calculus Differential Calculus
Differential Calculus
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Limit and continuity
Limit and continuityLimit and continuity
Limit and continuity
 
Chap14_Sec8 - Lagrange Multiplier.ppt
Chap14_Sec8 - Lagrange Multiplier.pptChap14_Sec8 - Lagrange Multiplier.ppt
Chap14_Sec8 - Lagrange Multiplier.ppt
 
Ece3075 a 8
Ece3075 a 8Ece3075 a 8
Ece3075 a 8
 
Recursive Compressed Sensing
Recursive Compressed SensingRecursive Compressed Sensing
Recursive Compressed Sensing
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)
 
functions limits and continuity
functions limits and continuityfunctions limits and continuity
functions limits and continuity
 
Maxima & Minima of Calculus
Maxima & Minima of CalculusMaxima & Minima of Calculus
Maxima & Minima of Calculus
 
polynomials class 9th maths presentation
polynomials class 9th maths presentationpolynomials class 9th maths presentation
polynomials class 9th maths presentation
 
3. Functions II.pdf
3. Functions II.pdf3. Functions II.pdf
3. Functions II.pdf
 
Solution4
Solution4Solution4
Solution4
 
Basic Cal - Quarter 1 Week 1-2.pptx
Basic Cal - Quarter 1 Week 1-2.pptxBasic Cal - Quarter 1 Week 1-2.pptx
Basic Cal - Quarter 1 Week 1-2.pptx
 
1.1_The_Definite_Integral.pdf odjoqwddoio
1.1_The_Definite_Integral.pdf odjoqwddoio1.1_The_Definite_Integral.pdf odjoqwddoio
1.1_The_Definite_Integral.pdf odjoqwddoio
 
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
Delos-Santos-Analyn-M.-_Repoter-No.-1-Multiplication-and-Division-of-Polynomi...
 
Functions limits and continuity
Functions limits and continuityFunctions limits and continuity
Functions limits and continuity
 
The chain rule
The chain ruleThe chain rule
The chain rule
 
Jacobians new
Jacobians newJacobians new
Jacobians new
 

More from MSPrasad7

Orbital_Simulation (2).pptx
Orbital_Simulation (2).pptxOrbital_Simulation (2).pptx
Orbital_Simulation (2).pptx
MSPrasad7
 
EMI EMC prob CP 12.pptx
EMI  EMC prob  CP  12.pptxEMI  EMC prob  CP  12.pptx
EMI EMC prob CP 12.pptx
MSPrasad7
 
Missile control Cp-1.pptx
Missile  control Cp-1.pptxMissile  control Cp-1.pptx
Missile control Cp-1.pptx
MSPrasad7
 
2. avionics architecture da cp
2. avionics architecture  da cp2. avionics architecture  da cp
2. avionics architecture da cp
MSPrasad7
 
3. avionics bus da
3. avionics bus  da   3. avionics bus  da
3. avionics bus da
MSPrasad7
 
2. avionics architecture da cp
2. avionics architecture  da cp2. avionics architecture  da cp
2. avionics architecture da cp
MSPrasad7
 

More from MSPrasad7 (6)

Orbital_Simulation (2).pptx
Orbital_Simulation (2).pptxOrbital_Simulation (2).pptx
Orbital_Simulation (2).pptx
 
EMI EMC prob CP 12.pptx
EMI  EMC prob  CP  12.pptxEMI  EMC prob  CP  12.pptx
EMI EMC prob CP 12.pptx
 
Missile control Cp-1.pptx
Missile  control Cp-1.pptxMissile  control Cp-1.pptx
Missile control Cp-1.pptx
 
2. avionics architecture da cp
2. avionics architecture  da cp2. avionics architecture  da cp
2. avionics architecture da cp
 
3. avionics bus da
3. avionics bus  da   3. avionics bus  da
3. avionics bus da
 
2. avionics architecture da cp
2. avionics architecture  da cp2. avionics architecture  da cp
2. avionics architecture da cp
 

Recently uploaded

FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 

LAGRANGE_MULTIPLIER.ppt

  • 1.
  • 2.  Named after Joseph Louis Lagrange.  Lagrange multipliers provides a strategy for finding the maxima and minima of a function subject to constraints.
  • 3.  One of the most common problems in calculus is that of finding maxima or minima of a function.  Difficulties often arise when one wishes to maximize or minimize a function subject to fixed outside conditions or constraints.  The method of Lagrange multipliers is a powerful tool for solving this class of problems.
  • 4. Lets consider there is a function f(x, y, z)whose maxima or minima is to be find out subjected to the constraint g(x, y, z) ..  Solve the following system of equations. f(x, y, z) = λ g(x, y, z) g(x, y, z) = k • Plug in all solutions, (x, y, z), from the first step into f(x, y, z) and identify the minimum and maximum values, provided they exist. • The constant, , is called the Lagrange Multiplier.
  • 5.
  • 6.  Here, f(x, y) = 5x – 3y constraint g(x, y) = x² + y²-136 Thus, δf(x, y)/δx = 5 δ f(x, y)/δy = -3 δg(x, y)/δx = 2 x δg(x, y)/δy = 2 y
  • 7. • Now, applying δf(x, y)/δx = λ δg(x, y)/δx δf(x, y)/δy = λ δg(x, y)/δy We get following set of equations .. 5 = 2 λx -3 = 2 λy x² + y²=136 (constraint) Solving these equations x = 5/2 λ y = -3/2 λ Plugging these into the constraint we get λ = ± ¼ If λ = ¼ then, x=10 and y=-6 if λ=-1/4 then, x=-10 and y= 6 To determine if we have maximums or minimums we just need to plug these into the function. Here are the minimum and maximum values of the function. f(-10,6) = -68 Minimum at(-10,6) f(10,-6) = 68 Maximum at(10,-6)
  • 8.  Here, f(x, y, z) = xyz (volume of the box) constraint 2(x y + y z + z x) = 64 (total surface area) i.e. x y + y z + z x = 32 g(x ,y ,z) = x y + y z + z x-32 Thus, we get.. δf(x, y, z)/δx = y z δf(x, y, z)/δy = x z δf(x, y, z)/δz = y x δg(x, y, z)/δx = (y + z) δg(x, y, z)/δy = (x + z) δg(x, y, z)/δz = (y + x)
  • 9.  Now, applying δf(x, y, z)/δx = λ δg(x, y, z)/δx δf(x, y, z)/δy = λ δg(x, y, z)/δy δf(x, y, z)/δz = λ δg(x, y, z)/δz We get following set of equations .. y z = λ (y + z) x z = λ (x + z) y x = λ (y + x) x y + y z + z x = 32 (constraint) Applying either elimination or substitution method we now solve the set of equations thus obtained.. Thus, x = y = z = 3.266 We can say that we will get a maximum volume if the dimensions are x = y = z = 3.266
  • 10.  Find the maximum and minimum values of f(x, y, z) = x y z subject to the constraint x + y + z = 1. Assume that x, y, z ≥ 0.  Find the maximum and minimum values of f(x, y) = 4x² + 10y² on the disk while x² + y²≤ 4. Consider the following…….  Find the maximum and minimum of f(x, y, z) = 4y – 2z subject to constraints 2x – y – z = 2 and x² + y² = 1.
  • 11.  If g1=0, g2=0, g3=0, ………, g n=0 are n number of constraints then.. Solve the following system of equations. f(P) = λ1 g1(P) + λ2 g2(P) + … + λn g n(P) g1(P) = k1 g2(P) = k2 . . . g n(P) = k n • Plug in all solutions, (x, y, z), from the first step into f(x, y, z) and identify the minimum and maximum values, provided they exist. • The constants, λ1 , λ2, ….., λn is called the Lagrange Multiplier.
  • 13. δg1(x1,x2,x3,x4,x5)/δ x1 =1 δg1 (x1,x2,x3,x4,x5)/δx2 =2 δg1 (x1,x2,x3,x4,x5)/δx3 =1 δg1 (x1,x2,x3,x4,x5)/δx4 =0 δg1 (x1,x2,x3,x4,x5)/δx5 =0 δg2(x1,x2,x3,x4,x5)/δ x1 =0 δg2 (x1,x2,x3,x4,x5)/δx2 =0 δg2 (x1,x2,x3,x4,x5)/δx3 =1 δg2 (x1,x2,x3,x4,x5)/δx4 =-2 δg2 (x1,x2,x3,x4,x5)/δx5 =1 On applying, δf(x1,x2,x3,x4,x5)/δx1 = λ δg1(x1,x2,x3,x4,x5)/δ x1 + µ δg2(x1,x2,x3,x4,x5)/δ x1
  • 14. δf(x1,x2,x3,x4,x5)/δx2= λ δg1 (x1,x2,x3,x4,x5)/δx2 + µ δg2 (x1,x2,x3,x4,x5)/δx2 δf(x1,x2,x3,x4,x5)/δx3= λ δg1(x1,x2,x3,x4,x5)/δ x3 + µ δg2(x1,x2,x3,x4,x5)/δ x3 δf(x1,x2,x3,x4,x5)/δx4= λ δg1(x1,x2,x3,x4,x5)/δ x4 + µ δg2(x1,x2,x3,x4,x5)/δ x4 δf(x1,x2,x3,x4,x5)/δx5= λ δg1(x1,x2,x3,x4,x5)/δ x5 + µ δg2(x1,x2,x3,x4,x5)/δ x5 We get following set of equations .. 2x1 + λ=0 , 2x2 +2 λ=0 , 2x3 + λ + µ =0 , 2x4 -2 µ =0 , 2x5 + µ =0 x1+2x2+x3=1 , x3-2x4+x5=6 (constraint)
  • 15. On Solving these equations µ=-2, λ=0 Plugging these into the equations we get x1=x2=0, x3=x5=1 and x4=-2 To determine minimums we just need to plug these into the function. Here ,the minimum values of the function. f(0,0,1,-2,1)=6.
  • 16. Here, f(x , y , z)=4y-2z Constraint, g1(x ,y ,z)=2x-y-z-2 g2(x ,y ,z)= x² + y² -1 Thus, δf(x ,y ,z)/δx =0 δf(x ,y ,z)/δy =4 δf(x ,y ,z)/δz =-2 δg1(x ,y ,z)/δx =2 δg1(x ,y ,z)/δy =-1
  • 17. δg1(x ,y ,z)/δz =-1 δg2(x ,y ,z)/δx=2x δg2(x ,y ,z)/δy =2y δg2(x ,y ,z)/δz=0 On applying, δf(x ,y ,z)/δx= λ δg1 (x ,y ,z)/δx + µ δg2 (x ,y ,z)/δx δf(x ,y ,z)/δy= λ δg1 (x ,y ,z)/δy+ µ δg2 (x ,y ,z)/δy δf(x ,y ,z)/δz= λ δg1 (x ,y ,z)/δz + µ δg2 (x ,y ,z)/δz We get following set of equations .. 2 λ+2x µ=0, - λ+2y µ=4, - λ=-2, 2x – y – z = 2, (constraint) x² + y² = 1 (constraint)
  • 18. On Solving these equations… λ=2, µ=+5,-5 Plugging these into the equations we get If µ=+5 ,then x=0.8,y=-0.6,z=0.2 and If µ=-5 ,then x=-0.8,y=0.6,z=-4.2 To determine if we have maximums or minimums we just need to plug these into the function. Here are the minimum and maximum values of the function. f(0.8,-0.6,0.2)=-2.8 minimum at(0.8,-0.6,0.2) f(-0.8,0.6,-4.2)=10.8 maximum at(-0.8,0.6,-4.2)