Maximize[a x^2 + b x + c, x] 

gives this solution:

enter image description here

Does the word True stand for "else" here? What exactly did Maximize return?


closed as off-topic by Daniel Lichtblau, m_goldberg, LCarvalho, MarcoB, bbgodfrey Oct 29 '17 at 17:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Daniel Lichtblau, m_goldberg, LCarvalho, MarcoB, bbgodfrey
If this question can be reworded to fit the rules in the help center, please edit the question.


Yes. The right column is simply a list of conditions that define separate regimes of a Piecewise function. Since in principle these conditions could overlap, Mathematica determines the result of a Piecewise by checking the conditions from top to bottom, much as it does in Which. So if the condition is True it acts as a "catch-all" such that the corresponding value is chosen whenever none of the conditions above are true. This ensures that the Piecewise function always has a value. Therefore it has the same meaning as an "else" or "otherwise" you might read in "normal" mathematical notation of a piecewise function.


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