Minimize x+2y where xy=200

  • Thread starter Thread starter Nitrate
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
Nitrate
Messages
75
Reaction score
0

Homework Statement


find two positive numbers with product of 200 such that the sum of one number and twice the second number is as small as possible.



2. The attempt at a solution

my work:
xy=200 ==> y = 200/x
x+2y = s (what we need to minimize)
x+2(200/x) =s
x+400x^-1 = s
1-400x^-2 = ds/dx
(x^2-400)/x^2 = dx/dx
(x-200)(x+200)/(x^2) = ds/dx
crit numbers: 0, 200, -200 (not included because the domain is x>0)
 
Physics news on Phys.org
Nitrate said:

Homework Statement


find two positive numbers with product of 200 such that the sum of one number and twice the second number is as small as possible.



2. The attempt at a solution

my work:
xy=200 ==> y = 200/x
x+2y = s (what we need to minimize)
x+2(200/x) =s
x+400x^-1 = s
1-400x^-2 = ds/dx
(x^2-400)/x^2 = dx/dx
(x-200)(x+200)/(x^2) = ds/dx
crit numbers: 0, 200, -200 (not included because the domain is x>0)

Are you sure that [itex]x^2-400=(x-200)(x+200)[/itex]. What is 200*200??
 
micromass said:
Are you sure that [itex]x^2-400=(x-200)(x+200)[/itex]. What is 200*200??

oh wow >.> what a silly error.
 
Nitrate said:

Homework Statement


find two positive numbers with product of 200 such that the sum of one number and twice the second number is as small as possible.



2. The attempt at a solution

my work:
xy=200 ==> y = 200/x
x+2y = s (what we need to minimize)
x+2(200/x) =s
x+400x^-1 = s
1-400x^-2 = ds/dx
(x^2-400)/x^2 = dx/dx
(x-200)(x+200)/(x^2) = ds/dx
crit numbers: 0, 200, -200 (not included because the domain is x>0)

Here is a little hint that applies to ANY problem of the form min f(x) = Ax + B/x with A,B>0 (and we want x > 0). At the min, both terms of f are *equal*, so Ax = B/x. That means that x = sqrt(B/A). (Remembering equality of the two terms is easier than remembering the final formula.)

By the way, that "equality" result follows from calculus, but can also be obtained without using calculus---that is the basis of so-called "Geometric Programming".

RGV