Here's what it looks to me:
Code:In[147]:= Maximize[{a*x^2 + b*x + c, {Abs[x] >= 1 && a*x^2 + b*x + c <= 100 && Element[{a, b, c}, Reals]}}, {a, b, c, x}] Out[147]= {100, {a -> 25, b -> 0, c -> 0, x -> -2}}
What commands should I put into Mathematica if I wanted the following:
Maximize if are real numbers and .
I got an error message when I input my code. Maybe I don't know how to correctly input the info, or Mathematica can't solve this?
Could someone please help me? Thanks in advance!
you wont type it!
Mathematica puts it itself to indicate how many operations have been done, its just a counter.
In a line just type the following
Code:Maximize[{Abs[a]+Abs[b]+Abs[c], {Abs[x] =< 1 && Abs[a*x^2 + b*x + c] <= 100 && Element[{a, b, c}, Reals]}}, {a, b, c, x}]
I need to maximize .
The conditions are:
- are real numbers
- .
I don't think that
worked, since the first line doesn't seem to maximize the right thing.Code:Maximize[{a*x^2 + b*x + c, {Abs[x] <= 1 && a*x^2 + b*x + c <= 100 && Element[{a, b, c}, Reals]}}, {a, b, c, x}]
This:
did not work because it didn't satisfy the condition that .Code:In[147]:= Maximize[{a*x^2 + b*x + c, {Abs[x] >= 1 && a*x^2 + b*x + c <= 100 && Element[{a, b, c}, Reals]}}, {a, b, c, x}] Out[147]= {100, {a -> 25, b -> 0, c -> 0, x -> -2}}
The closest I got was
, but this gave me an error message.Code:Maximize[{Abs[a]+Abs[b]+Abs[c], {Abs[x] =< 1 && Abs[a*x^2 + b*x + c] <= 100 && Element[{a, b, c}, Reals]}}, {a, b, c, x}]
Could someone please help me? Thanks!
Ok. I agree. I made a mistake. Looks though then there is no solution:
That makes sense right? For any large positive value of a, I can choose large enough negative values of b and c to make the inequality hold. Or no?Code:In[10]:= Maximize[{Abs[a] + Abs[b] + Abs[c], {a*x^2 + b*x + c <= 100 && Abs[x] <= 1 && Element[{a, b, c}, Reals]}}, {a, b, c, x}] During evaluation of In[10]:= Maximize::natt: The maximum is not attained at any point satisfying the given constraints. >> Out[10]= {\[Infinity], {a -> Indeterminate, b -> Indeterminate, c -> Indeterminate, x -> Indeterminate}}