What is the "Mathematica" function for plotting a single variable inequality?

676 Views Asked by At

I was just wondering, how do I plot a single variable inequality in Mathematica?

For example, we could use Wolfram Alpha for plotting an inequality like $x^3+4x+9 > 0$ and see something like this. How could we do the same thing in Mathematica?

2

There are 2 best solutions below

2
On BEST ANSWER

How about this?

Plot[x^3+4x+9, {x,-2,2}, Filling->{1->{Axis, {White, LightBlue}}}]

Or, if you have two functions, and want where first curve is above the second, use

Plot[{x^3+4x+9,6x^2}, {x,-2,2}, Filling->{1->{{2}, {White, LightBlue}}}]

for example.

0
On

There is also RegionPlot[]:

RegionPlot[x^3 + 4 x + 9 > y, {x, -2, 2}, {y, 0, 25}]

plots the part in blue.