Lagrange's Method Of Multipliers Engineering Maths, Btech first year

Lagrange's Method of Multipliers | Btech Shots!

Lagrange's Method of Multipliers


This method is used to find Maxima and Minima of a function in two or more than two variables called as Objective function. The variables are independent but are connected by a relation, called as Constraint function. Below are the steps to use this method:
Consider a function f(x,y,z) be an objective function of 3 variables x,y,z and the variables are connected by the constraint ϕ(x,y,z)=0
Step 1 : Identify the objective function: f(x,y,z)
Step 2 : Identify the constraint function: ϕ(x,y,z)=0
Step 3 : Find Lagrangian (Auxillary) function
F(x,y,z)=f(x,y,z)+λϕ(x,y,z)(1) λ non-zero  Lagrange multiplier  Step 4 : Partially differentiating equation (1) w.r.t. x,y,z and equate them to 0 Fx=0,Fy=0,Fz=0 Step 5 : Solve the above 3 equations together with ϕ(x,y,z)=0 to find the stationary points
Step 6 : Find nature of the stationary points by using method discussed in Maxima and Minima i.e. rts2. Here also lies its drawback: Lagrange's method does not give the nature of the stationary points.
Step 7 : Find maximum or minimum value of the function

A quick example will help you understand better.
Note : In our syllabus, we have to solve for only two variables.


Sample Problem 1

Find the minimum value of x2+y2+z2 subject to the condition xyz=a3.

Solution

Here, objective function is : f(x,y)=x2+y2+z2(1)
Constraint function is : ϕ(x,y)=xyza3(2)
By Lagrange's method: F(x,y,z)=f(x,y,z)+λϕ(x,y,z) =x2+y2+z2+λ(xyza3)(3) Partially differentiating equation (3) w.r.t. x,y,z Fx=2x+λyz(4) Fy=2y+λxz(5) Fz=2z+λxy(6) Equating the equations to 0 Fx=2x+λyz=0(4) Fy=2y+λxz=0(5) Fz=2z+λxy=0(6) Here you can solve for x,y,z and then for λ, and get your stationary points, but there is also a short method for this:
Multiplying equation (4) by x, (5) by y and (6) by z 2x2+λxyz=0(7) 2y2+λxyz=0(8) 2z2+λxyz=0(9) Now on subtracting (8) from (7) 2x2+λxyz2y2λxyz=0 x=y On subtracting (9) from (8) 2y2+λxyz2z2λxyz=0 y=z x=y=z Now using the constraint equation, x3=a3x=a Now as it is given in the question, we have to find minimum value, so we don't need to find nature of the stationary point.
So the minimum value of the function f(x,y)=a2+a2+a2=3a2


Sample Problem 2

Find the point upon the plane ax+by+cz=p at which the function f=x2+y2+z2 has a minimum value and find the minimum value of f.

Solution

Here, objective function is : f(x,y)=x2+y2+z2(1)
Constraint function is : ϕ(x,y)=ax+by+czp(2)
By Lagrange's method: F(x,y,z)=f(x,y,z)+λϕ(x,y,z) =x2+y2+z2+λ(ax+by+czp)(3) Partially differentiating equation (3) w.r.t. x,y,z Fx=2x+λa(4) Fy=2y+λb(5) Fz=2z+λc(6) Equating the equations to 0, Fx=2x+λa=0(4) Fy=2y+λb=0(5) Fz=2z+λc=0(6) x=λa2 y=λb2 z=λc2 Substituting the values in equation (2), a(λa2)+b(λb2)+c(λc2)=p λ(a2+b2+c2)=2p λ=2pa2+b2+c2 Therefore, x=apa2+b2+c2,y=bpa2+b2+c2,z=cpa2+b2+c2 The minimum value of function, f=a2p2(a2+b2+c2)2+b2p2(a2+b2+c2)2+c2p2(a2+b2+c2)2 =fracp2(a2+b2+c2)(a2+b2+c2)2 =p2a2+b2+c2



DC Motor, Basic Electrical Engineering, Btech first year

DC Motor | Btech Shots! DC Motor ...