Professional Documents
Culture Documents
ID: e20200955
Problem
2.48 Minimize 𝑓 = 9 − 8𝑥1 − 6𝑥2 − 4𝑥3 + 2𝑥12 + 2𝑥22 + 𝑥32 + 2𝑥1 𝑥2 + 2𝑥1 𝑥3
Subject to
𝑥1 + 𝑥2 + 2𝑥3 = 3
By (a) direct substitution,
(b) constrained variation, and
(c) Lagrange multiplier method.
Proof
(a) Direct Substitution:
1
=> 𝑥3 = (3 − 𝑥1 − 𝑥2 )
2
1 1
𝑓(𝑥) = 9 − 8𝑥1 − 6𝑥2 − 4 × (3 − 𝑥1 − 𝑥2 ) + 2𝑥12 + 2𝑥22 + [3 − 𝑥1 − 𝑥2 ]2
2 4
1
+ 2𝑥1 𝑥2 + 2𝑥1 [ (3 − 𝑥1 − 𝑥2 )]
2
21 9 11 5 9 9 3
Therefore, 𝑓(𝑥) = − 𝑥1 − 𝑥2 + 𝑥12 + 𝑥22 + 𝑥22 + 𝑥1 𝑥2 (3)
4 2 2 2 4 4 2
Now
𝜕𝑓 9 5 3
= − + 𝑥1 + 𝑥2 = 0 (4)
𝜕𝑥1 2 2 2
𝜕𝑓 11 9 3
= − + 𝑥2 + 𝑥1 = 0 (5)
𝜕𝑥2 2 2 2
4 7
By solving (6) and (7), we get 𝑥1∗ = , 𝑥2∗ =
3 9
4
And we continued to calculate and we get 𝑥3∗ =
9
Then
5
0 45
From the Hessian matrix 𝐽 = ( 2 9) = 𝑖𝑠 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑑𝑒𝑓𝑖𝑛𝑖𝑡𝑒
4
0
2
Thus,
∗
4 7 4 4 2 7 2 4 2 4 7
𝑓𝑚𝑖𝑛 = 9 − 8( ) − 6( ) − 4( ) + 2( ) + 2( ) + ( ) + 2( )( )
3 9 9 3 9 9 3 9
4 4
+ 2 ( ) ( ) = −7
3 9
4 7 4
Therefore, 𝑥1∗ = , 𝑥2∗ = 𝑎𝑛𝑑 𝑥3∗ =
3 9 9
𝐿 = 𝑓 − λ(x1 + x2 + 2x3 − 3)
We differentiate the Lagrangian function L with respect to each variable and set the
derivatives equal to zero to find the critical points:
𝜕𝐿
= −8 + 4𝑥1 + 2𝑥2 + 2𝑥3 − 𝜆 = 0 (1)
𝜕𝑥1
𝜕𝐿
= −6 + 2𝑥1 + 4𝑥2 + 0𝑥3 + 𝜆 = 0 (2)
𝜕𝑥2
𝜕𝐿
= −4 + 0𝑥1 + 2𝑥2 + 2𝑥3 − 𝜆 = 0 (3)
𝜕𝑥3
𝜕𝐿
= −(𝑥1 + 𝑥2 + 2𝑥3 − 3) = 0 (4)
𝜕λ
−2 + 𝑥3 7
𝑥2 = =
2 9
4
𝑥1 = 1 + 𝑥2 − 𝑥3 =
3
∗
The function 𝑓 𝑚𝑖𝑛𝑖𝑚𝑖𝑧𝑒𝑑 and 𝑓𝑚𝑖𝑛 = −7
1
2.49 Minimize 𝑓(𝑋) = (𝑥12 + 𝑥22 + 𝑥32 )
2
Subject to
𝑔1 (𝑋) = 𝑥1 − 𝑥2 = 0
𝑔2 (𝑋) = 𝑥1 + 𝑥2 + 𝑥3 − 1 = 0
By (a) direct substitution, (b) constrained variation, and (c) Lagrange multiplier
method.
Proof
𝑥1 − 𝑥2 = 0 => 𝑥1 = 𝑥2 (1)
𝑥1 + 𝑥2 + 𝑥3 − 1 => 𝑥3 = 1 − 𝑥1 − 𝑥2
𝑥3 = 1 − 𝑥1 − 𝑥1 = 1 − 2𝑥1
1
𝑆𝑖𝑛𝑐𝑒 𝑓(𝑥) = (𝑥12 + 𝑥22 + 𝑥32 )
2
1
𝑓(𝑥) = (𝑥12 + 𝑥12 + (1 − 2𝑥1 )2 )
2
1
𝑓(𝑥) = (2𝑥12 + 1 + 4𝑥12 − 4𝑥1 )
2
1
𝑓(𝑥) = (6𝑥12 − 4𝑥1 + 1)
2
Now find,
𝜕𝑓 𝜕 1 1
= [ (6𝑥12 − 4𝑥1 + 1)] = (12𝑥1 − 4)
𝜕𝑥1 𝜕𝑥1 2 2
𝜕𝑓 1
= (12𝑥1 − 4) = 6𝑥1 − 2
𝜕𝑥1 2
𝜕𝑓 1
Take = 0 => 6𝑥1 − 2 = 0 => 𝑥1 =
𝜕𝑥1 3
1
𝑥1 = 𝑥2 => 𝑥2 =
3
1 2 1
𝑥3 = 1 − 2 ( ) = 1 − =
3 3 3
1
𝑥1 = 𝑥2 = 𝑥3 =
3
𝜕2𝑓 𝜕
Now = (6𝑥1 − 2) = 6
𝜕𝑥12 𝜕𝑥1
𝜕2𝑓 1
= 6 > 0 => 𝑓(𝑋) is minimum at 𝑥1 = 𝑥2 = 𝑥3 =
𝜕𝑥12 3
1 1 2 1 2 1 2
𝑓min = [( ) + ( ) + ( ) ]
2 3 3 3
1 3 1
𝑓min = [ ] =
2 9 6
1 1
Therefore, minimum value of 𝑓(𝑋) = obtained at 𝑥1 = 𝑥2 = 𝑥3 =
6 3
1
Minimize 𝑓(𝑋) = (𝑥12 + 𝑥22 + 𝑥32 )
2
Subject to
𝑔1 (𝑋) = 𝑥1 − 𝑥2 = 0
𝑔2 (𝑋) = 𝑥1 + 𝑥2 + 𝑥3 − 1 = 0
𝑛 − 𝑚 = 3 − 2 = 1(𝑖𝑛𝑑𝑒𝑝𝑒𝑛𝑑𝑒𝑛𝑡 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒𝑠)
𝜕𝑔1 𝜕𝑔1
𝑔1 , 𝑔2 𝜕𝑥 𝜕𝑥2
𝐽( ) = || 1 | = |1 −1| = 2
𝑥1 , 𝑥2 𝜕𝑔2 𝜕𝑔2 | 1 1
𝜕𝑥1 𝜕𝑥2
For 𝑘 = 𝑚 + 1 = 3
𝜕𝑓 𝜕𝑓 𝜕𝑓
𝜕𝑥 𝜕𝑥2 𝜕𝑥3
| 1 |
𝜕𝑔1 𝜕𝑔1 𝜕𝑔1
=0
𝜕𝑥1 𝜕𝑥2 𝜕𝑥3
|𝜕𝑔 𝜕𝑔2 𝜕𝑔2 |
2
𝜕𝑥1 𝜕𝑥2 𝜕𝑥3
𝜕𝑓 𝜕 1 2
= ( (𝑥 + 𝑥22 + 𝑥32 )) = 𝑥1
𝜕𝑥1 𝜕𝑥1 2 1
𝜕𝑓 𝜕𝑓
= 𝑥2 𝑎𝑛𝑑 = 𝑥3
𝜕𝑥2 𝜕𝑥3
𝑥1 𝑥2 𝑥3
|1 −1 0| = 0
1 1 1
𝑥1 (−1 − 0) − 𝑥2 (1 − 0) + 𝑥3 (1 + 1) = 0
2𝑥3 = 𝑥1 + 𝑥2 (1)
𝑥1 − 𝑥2 = 0 (2)
𝑥1 + 𝑥2 + 𝑥3 − 1 = 0 (3)
𝑥1 + 𝑥2
2𝑥3 = 𝑥1 + 𝑥2 => 𝑥3 =
2
𝑥1 +𝑥2
Substitute 𝑥3 = 𝑖𝑛 (3)
2
𝑥1 + 𝑥2
𝑥1 + 𝑥2 + −1=0
2
3 2
(𝑥1 + 𝑥2 ) − 1 = 0 => 𝑥1 + 𝑥2 =
2 3
𝑥1 − 𝑥2 = 0 => 𝑥2 = 𝑥1
2 2 1
𝑥1 + 𝑥2 = => 𝑥1 + 𝑥1 = => 𝑥1 =
3 3 3
1
𝑥2 = 𝑥1 => 𝑥2 =
3
1 1
𝑥1 + 𝑥2 ( + ) 1
𝑥3 = => 𝑥3 = 3 3 =
2 2 3
1 1 2 1 2 1 2
𝑓min = [( ) + ( ) + ( ) ]
2 3 3 3
1 3 1
𝑓min = [ ] =
2 9 6
1 1
Therefore, minimum value of 𝑓(𝑋) = obtained at 𝑥1 = 𝑥2 = 𝑥3 =
6 3
1
𝐿(𝑋, 𝜆1 , 𝜆2 ) = (𝑥12 + 𝑥22 + 𝑥32 ) − λ1 (𝑥1 − 𝑥2 ) − λ2 (𝑥1 + 𝑥2 + 𝑥3 − 1)
2
To find the critical points, we take the partial derivatives of the Lagrangian with
respect to 𝑥1 , 𝑥2 , 𝑥3 , 𝜆1 𝑎𝑛𝑑 𝜆2 and set them to zero.
𝜕𝐿
= 𝑥1 − 𝜆1 − 𝜆2 = 0 (1)
𝜕𝑥1
𝜕𝐿
= 𝑥2 − 𝜆1 − 𝜆2 = 0 (2)
𝜕𝑥2
𝜕𝐿
= 𝑥3 − 𝜆2 = 0 (3)
𝜕𝑥3
𝜕𝐿
= 𝑥1 − 𝑥2 = 0 (4)
𝜕𝜆1
𝜕𝐿
= 𝑥1 + 𝑥2 + 𝑥3 − 1 = 0 (5)
𝜕𝜆2
Solving the above system of equations simultaneously will give us the critical points
that satisfy both the objective function and the constraints.
𝜆1 + 𝜆2 + 𝑥3 − 1 = 0 𝑓𝑟𝑜𝑚 (5)
𝑥3 = 𝜆2 𝑓𝑟𝑜𝑚 (3)
1
𝜆1 + 𝜆2 + (−𝜆1 + 𝜆2 ) + 𝜆2 − 1 = 0 => 3𝜆2 − 1 = 0 => 𝜆2 =
3
1 1
From 𝑥1 = 𝜆1 + 𝜆2 , we have 𝑥1 = 0 + = .
3 3
1 1
From 𝑥2 = −𝜆1 + 𝜆2 , we have 𝑥2 = 0 + = .
3 3
Therefore, the critical point that satisfies both the objective function and the
1 1 1
constraints is 𝑥1 = , 𝑥2 = , 𝑎𝑛𝑑 𝑥3 =
3 3 3
To verify that this critical point corresponds to a minimum, we need to check the
second partial derivatives of the Lagrangian function.
1
Evaluating these second partial derivatives at the critical point 𝑥1 = , 𝑥2 =
3
1 1
, 𝑎𝑛𝑑 𝑥3 = , we find that all the second partial derivatives are positive.
3 3
Since all the second partial derivatives are positive, this critical point corresponds to a
minimum.
Therefore, the minimum value of the objective function 𝑓(𝑋) = 6 subject to the
1 1 1
given constraints is achieved at 𝑥1 = , 𝑥2 = , 𝑎𝑛𝑑 𝑥3 =
3 3 3
3. Find the dimension of a cylindrical tin (with top and bottom) made up of sheet
metal to maximize its volume such that the total surface area is equal to 24𝜋.
Proof
Let's denote the radius of the cylindrical tin as "r" and the height as "h". To maximize
the volume of the tin, we need to find the dimensions that satisfy the given constraint
of the total surface area.
The surface area of the cylindrical tin can be divided into three parts: the top and
bottom circles and the lateral surface area.
The surface area of each circle is given by πr², so the total surface area of both circles
is 2πr².
Adding these two parts, we have the equation for the total surface area:
r² + rh = 12
Now, we want to maximize the volume of the tin, which is given by V = πr²h.
To find the maximum volume, we can use the equation for the total surface area to
express h in terms of r and substitute it into the volume equation.
Therefore, the maximum volume of the cylindrical tin can be achieved when the
radius is 2. To find the corresponding height, we can substitute this value back into the
equation r 2 + rh = 12 :