Re: maximization problem



On Jun 5, 6:58 pm, "Stephen J. Herschkorn" <sjhersc...@xxxxxxxxxxxx>
wrote:
chri...@xxxxxxxxx wrote:
Find the maximum of f(x1, ..., x_n) = (x1*x2*...*x_n)^2 subject to the
constraint

g(x1,...,x_n) = x1^2 + ... + x_n^2 = 1

I try to use lagrange multipliers. I take grad(f) and grad(g) and set

grad(f) = \lambda*grad(g)

but I always get stuck solving the nonlinear system of equations. Is
there a trick to doing this?

Letting y_i = (x_i)^2, your problem is

max sum(i=1..n, ln y_i)
s.t.
sum(i=1..n, y_i) = 1
y_i > 0 for all i

I suspect one could come up with some non-Lagrange argument that y_i =
1/n for all i should be the answer.

Okay, so f(y1, ..., y_n) = ln(y1*...*y_n) = ln(y1) + ... + ln(y_n).
g(y1,...,y_n) = y1 + ... +y_n = 1

Taking the gradients I get the vector equation:

(1/y1, ..., 1/y_n) = \lambda*(y1, ..., y_n)

I dot product both sides with (y1, ..., y_n) to get:

n = \lambda*||y||^2

\lambda = n / ||y||^2

Plugging lambda back in I get

(1/y1, ..., 1/y_n) = n / ||y||^2*(y1, ..., y_n)

So 1 / y_i = n / ||y||^2*y_i

How did you get y_i = 1/n for all i from that?



--
Stephen J. Herschkorn sjhersc...@xxxxxxxxxxxx
Math Tutor on the Internet and in Central New Jersey and Manhattan


.



Relevant Pages

  • Re: Drawhole in bents
    ... > Maybe the trick is to apply several layers, while letting the bowl dry in between applications? ...
    (alt.smokers.pipes)
  • Tasks do not start asap
    ... I had to implement a number of changes into an existing project plan (arround ... After number od optimizations, I noticed that a number of tasks ... their constraint is "start as soon as possible". ... I found only a trick to move these tasks to the "as soon as ...
    (microsoft.public.project)
  • Re: intent(in) variable
    ... I am afraid that's not the hook I am not letting you off! ... To check this properly means looking through Annex D for any constraint ...
    (comp.lang.fortran)
  • Re: Deinterlace VMR7 or VMR9
    ... > Setting the mixing prefs did the trick! ... > cleaner now. ... Thanks for letting us know. ... Please read this before replying: ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: reminder please
    ... looking for especially is the Pension Service one to ... ring for letting them know our new address. ... Should do the trick ...
    (uk.people.silversurfers)