MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Can Maximize return a function



Hi,

No Maximize can not work symbolically. However, you may e.g. use Reduce 

or Solve to serach for singular points where the derivative is zero. E.g.:

Reduce[{D[a*x-x^2,x]==0},x]

Daniel



mfmad wrote:

> e.g.

> 

> When I run:

> 

> Clear["*"]

> SetAttributes[a, Constant]

> (*this works if use a num instead of a*)

> (*e.g. f[x_] := 4*x - x^2 *)

> f[x_] := a*x - x^2

> Maximize[f[x], a > 0, x]

> 

> I get:

> 

> Maximize[{-x^2+xy, y>0},x]

> 

> when I really want something like:

> 

> {a, {x->a/2}}

> 

> Can this be done?

> 

> 




  • Prev by Date: RowReduce and SparseArray
  • Next by Date: Re: small question
  • Previous by thread: Can Maximize return a function
  • Next by thread: Re: Re: Can Maximize return a function