Question: How to find maximum?

Hi all,

I have a function f(x) and want to know at which x-value it attains its supremum.

Tried this, but it doesn't work (or at least hasn't been able to solve the equation in 10+ min):

M := maximize(f, x = 0 .. 1);

solve(f = M, x);

Does anyone know a way to do this?

Thanks,

Paul

a := 1; w0 := 1; w1 := 3; K := 10; h0 := .25; A := 3; alpha := .7; b := .6; c := .2

f := A*x^(b*alpha)*(alpha*A*x^(b*alpha)/(a+w0*h0+(x-h0)*w1))^(alpha/(1-alpha))-(alpha*A*x^(b*alpha)/(a+w0*h0+(x-h0)*w1))^(1/(1-alpha))

16.94206235*x^.42*(x^.42/(.50+3*x))^2.333333333-11.85944364*(x^.42/(.50+3*x))^3.333333333

(1)

NULL

M := maximize(f, x = 0 .. 1)

.8295280335

(2)

solve(f = M, x)

Warning,  computation interrupted

 

``

plot(f, x = 0 .. 1)

 

``

``

``



Download maximum.mw

Please Wait...