Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Opgave 5.5.

a) Make y the subject of the formula 9 x +3 y=2

Isolating for y:
3 y=2−9 x

3 y 2 9x
= −
3 3 3

2
y= −3 x
3
b) The function,
z=3 x y
Is subject to the constraint;
9 x +3 y=2
Use your answer to part (a) to show that;
2
z=2 x−9 x

2
Insert y= −3 x in z:
3
2
z=3 x·( −3 x)
3

6x 2
z= −9 x
3

2
z=2 x−9 x
Hence find the maximum value of z and the corresponding values of x and y.

∂z
Finding the maximum value of z, =0 and isolate for x:
∂x

∂z
=2−18 x
∂x

2−18 x=0
Isolate for x:
18 x=2

18 x 2
=
18 18

2 1
x= =
18 9
Inserting the x-value in y:
2
y= −3 x
3

2
y= −3 ·
3
1
9 ()

2 3 2· 3 3 ·1 6 3 3
y= − = − = − =
3 9 9 9 9 9 9

1
y=
3
The maximal value of z:

z=3 · ( 19 ) ·( 13 )= 19
When:
1 1 1
( x , y , z )=( , , )
9 3 9

Opgave 5.5.2

a) Find the maximum value of;

2
z=6 x−3 x +2 y
Subject to the constraint;
2
y−x =2

Isolating for y in the constraint:


2
y=2+ x
Interesting y=2+ x 2 in z:

2 2
z=6 x−3 x +2· (2+ x )
Simplify for x:
2 2
z=6 x−3 x +4 +2 x

2
z=6 x−x +4
∂z
Maximizing z by =0 and isolate for x:
∂x
∂z
=6−2 x
∂x

6−2 x =0
Isolate for x:
2 x=6

2x 6
=
2 2

x=3
Inserting x=3 in y:
2
y=2+ x

3
y=2+ 3

y=11

Finding max value of z by inserting ( x , y ) =(3 , 11):

2
z=6 x−3 x +2 y

2
z=6 · 3−3 · 3 +2 ·11=13
The maximal value of z:

z=13
When:
( x , y ) =(3 , 11)

Der er før blevet vist følgende;


c c−1
f ( x )= ( g ( x ) ) så er f ' ( x )=c ( g ( x ) ) g '( x )

Brug ovenstående til at finde;


−2
f ( x ) når f ( x )=( x + x )
' 2

Bruger kædereglen:
( f ° g )' ( x )=f ' ( g ( x ) ) · g ' (x)

−2 1
f ( x )=x = 2
x
Brug af potensregel:
' −2−1 −2
f ( x )=−2 x = 3
x
2
g(x )=x + x
'
g ( x ) =2 x +1
Indsætter værdier i kædereglen:
−2 4x
( f ° g )' ( x )= 3
· 2 x +1=1− 3

(x +x)
2
(x +x)
2
' 4 x−2
f ( x )= 3
( x 2+ x )

Opgave 5.6.1

a) Use the Lagrange multipliers to find the maximum value of;

z=x +2 xy
Subject to the constraint;
x +2 y=5
Bibetingelse sættes lig 0:
x +2 y=5

x +2 y−5=0

Brug af Lagrange:
L ( x , y , λ )=f ( x , y )−λ ( g ( x , y )−c )

L ( x , y , λ )=x +2 xy
Indfører nu bibetingelsen:
L ( x , y , λ )=x +2 xy−λ (5−x−2 y )

Finder nu de partielt afledte for Lagrange:

'
L x ( x , y , λ )=1+ 2 y −λ

'
L y ( x , y , λ )=2 x−2 λ

'
L λ ( x , y , λ )=5−x−2 y
Opstiller tre ligninger med 3 ubekendte:

'
L x ( x , y , λ )=1+ 2 y −λ=0

'
L y ( x , y , λ )=2 x−2 λ=0

5−x−2 y=0
Isolering af variable:

Fra første ligning har vi:


2 y−λ=−1

Ligning (2) giver:


2 x=2 λ → x= λ
Vi kan substituere x=λ ind i ligning (3):
5−λ−2 y =0

Vi kan nu løse for y og λ :

2 y−λ=−1

λ=2 y+ 1
Vi indsætter λ=2 x+1 i ligning (3):

5−(2 y +1)−2 y=0



y=1
Indsæt y=1 i ligning (1) og løs for λ :
2 ·1−λ=−1

λ=3
Indsæt λ=3 i ligning (2) og løs for x:

λ=x → x=3
Den maksimale værdi for z=x +2 xy:

z=3+2 · 3· 1=9

Opgave 5.6.2 (Hvis der er tid)

a) Use the Lagrange multipliers to find the maximum value of;

z=4 xy
Subject to the constraint
x +2 y=40
State the associated values of x, y and λ

You might also like