Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to ArgMax a function over x, but x is only defined between [0,1]

How do I do that? I have tried:

ArgMax[f1[x], x ∈ [0,1]]

But it gave me an error. "{x}[Element]" cannot be followed by "[0,1]".

share|improve this question
doesn't ArgMax[{f1[x],0<x<1},x] work? – chris Jul 29 '14 at 7:31
up vote 6 down vote accepted

You can use the new (in V10) ImplicitRegion function as follows:

reg = ImplicitRegion[0 <= x <= 1, {x}];


ArgMax[f1[x], x ∈ reg]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.