When a function has one variable we know how to find the maxima and minima of the function by differentiating and equating to zero to find the points.
But when a function has more than two variables, we use partial differentiation to find the maxima and minima.
1. subject to the condition x + y = 4
Sol: The local maximum and minimum of f(x,y) subject to the constraint g(x,y)=0 correspond to the stationary points of
where is Lagrange multiplier.
We have
Now
Note: in doing partial differentiation, except the independent variable everything is considered a constant. For example, when we do differentiation w.r.t x then, except x all others should be considered constant.
Also
Putting
------(1)
-----(2)
x + y - 4 = 0 ------------(3)
From equations (1) and (2) we get --------(4)
Putting y = - x + 4 in equation (4)
we get
For x = 2, from equation (3) we get y = 2 and F(x,y)) = 40
and for , and F(x,y) =
Alternatively: By substituting y = x - 4 in the equation f(x, y) =
we get, F(x, 4-x) =
F(x) =
F(x) =
Differentiation F with respect to x we get,
Solving like above we get the values of
2. Find the point on the line 3x + 2y = 5 that is closest to the point (3,1)
Sol: The distance between a general point (x,y) and the point (3, 1) is
We want to find the minimum value of this distance subject to the constraint 3x + 2y = 5. Infact we have to minimize the square of the distance, and so we minimize f(x, y) =
subject to the given constraint.
Putting
-------(1)
------(2)
3x + 2y = 5 ------------(3)
Multiplying (1) by 2 and (2) by 3 will give
So 4(x-3) = 6(y-1) 2x - 3y = 3 -------(4)
Multiplying equation (3) by 3 and (4) by 2, gives
9x + 6y = 15
4x - 6y = 6
Solving we get x = and y =
Thus the point is on the given line and closest to (3,1)
But when a function has more than two variables, we use partial differentiation to find the maxima and minima.
1. subject to the condition x + y = 4
Sol: The local maximum and minimum of f(x,y) subject to the constraint g(x,y)=0 correspond to the stationary points of
where is Lagrange multiplier.
We have
Now
Note: in doing partial differentiation, except the independent variable everything is considered a constant. For example, when we do differentiation w.r.t x then, except x all others should be considered constant.
Also
Putting
------(1)
-----(2)
x + y - 4 = 0 ------------(3)
From equations (1) and (2) we get --------(4)
Putting y = - x + 4 in equation (4)
we get
For x = 2, from equation (3) we get y = 2 and F(x,y)) = 40
and for , and F(x,y) =
Alternatively: By substituting y = x - 4 in the equation f(x, y) =
we get, F(x, 4-x) =
F(x) =
F(x) =
Differentiation F with respect to x we get,
Solving like above we get the values of
2. Find the point on the line 3x + 2y = 5 that is closest to the point (3,1)
Sol: The distance between a general point (x,y) and the point (3, 1) is
We want to find the minimum value of this distance subject to the constraint 3x + 2y = 5. Infact we have to minimize the square of the distance, and so we minimize f(x, y) =
subject to the given constraint.
Putting
-------(1)
------(2)
3x + 2y = 5 ------------(3)
Multiplying (1) by 2 and (2) by 3 will give
So 4(x-3) = 6(y-1) 2x - 3y = 3 -------(4)
Multiplying equation (3) by 3 and (4) by 2, gives
9x + 6y = 15
4x - 6y = 6
Solving we get x = and y =
Thus the point is on the given line and closest to (3,1)
No comments:
Post a Comment