Inequalities and Piecewise Functions

How to Graph Nonlinear Inequalities

A nonlinear inequality such as y > x² − 4 is graphed the same way as a linear one, but with a curved boundary. Draw y = x² − 4 (dashed for > or <, solid for ≥ or ≤), test a point not on the curve, and shade the side that makes the inequality true — here, inside the parabola, above the curve.

The inequality y > x² − 4 with a dashed parabolic boundary and the region inside (above) the parabola shaded; the point (0, 0) is a solution.

Check it yourself: every example here can be loaded into the Graphing Inequalities Calculator.

Open the Graphing Inequalities Calculator

Same method, curved boundary

  1. Boundary: replace the sign with = and graph the curve.
  2. Style: dashed for < or >, solid for ≤ or ≥ — see dashed vs solid lines.
  3. Test a point not on the curve.
  4. Shade the side that makes the inequality true.

For inequalities solved for y, you can skip the test: y > f(x) or y ≥ f(x) means shade above the curve; y < f(x) or y ≤ f(x) means below.

Worked example: y > x² − 4

  1. Boundary: the parabola y = x² − 4, vertex (0, −4), roots ±2. Strict >, so dashed.
  2. Test (0, 0): 0 > −4 ✓.
  3. Shade the region containing the origin — above the curve, i.e. inside the U.
  4. Check outside: (3, 0) gives 0 > 5 ✗, so the outside is correctly unshaded.
Try it in the calculator

Other curved boundaries

Inequality Boundary Shade
y ≤ √x solid square-root curve, x ≥ 0 below the curve (and only for x ≥ 0)
y < 2ˣ dashed exponential below the curve, down to −∞
y ≥ |x − 1| solid V inside the V, above it
y > 1⁄x dashed hyperbola above each branch

Restricted domains matter: for y ≤ √x there is no shading for x < 0, because the inequality has no meaning there.

Try it in the calculator

Systems with curves

Graph of y ≥ x² shaded above the parabola and y ≤ x + 2 shaded below the line, with the overlap between them bounded by the points (−1, 1) and (2, 4).
The solution lies above the parabola and below the line, between their intersections.
Text description of this figure

Graph of y ≥ x² shaded above the parabola and y ≤ x + 2 shaded below the line, with the overlap between them bounded by the points (−1, 1) and (2, 4).

  1. Solid parabola y = x², shade above it.
  2. Solid line y = x + 2, shade below it.
  3. Corners: x² = x + 2 gives x = −1 and x = 2.

Solve y ≥ x² and y ≤ x + 2 graphically:

  1. Shade above the solid parabola y = x².
  2. Shade below the solid line y = x + 2.
  3. The overlap is the region between them. Its edges meet where x² = x + 2 → x² − x − 2 = 0 → (x − 2)(x + 1) = 0, giving (−1, 1) and (2, 4).
  4. Check (0, 1): 1 ≥ 0 ✓ and 1 ≤ 2 ✓.
Try it in the calculator

Quadratic inequalities in one variable

A graph also solves inequalities like x² − x − 6 < 0:

  1. Graph y = x² − x − 6 (roots −2 and 3).
  2. “< 0” asks where the curve is below the x-axis.
  3. That happens between the roots: −2 < x < 3.

For “> 0” the answer would be the two outer pieces: x < −2 or x > 3.

Common mistakes

  • Shading outside a parabola for y > f(x). “Above” an upward parabola is inside it.
  • Forgetting domain limits of square roots and logs.
  • Using a test point on the curve.
  • Treating x² + y² < 9 as “y < …”. Circles need two boundary branches.

Questions

How do I solve a one-variable quadratic inequality with a graph?

For x² − x − 6 < 0, graph y = x² − x − 6 and find where the curve is below the x-axis: between the roots −2 and 3, so −2 < x < 3.

Can I graph x² + y² < 9?

Not directly in this calculator, because the boundary is not a function of x. Describe it as the region between y = −√(9 − x²) and y = √(9 − x²).

Does 'above' still work for curves?

Yes, for inequalities solved for y: y > f(x) means every point vertically above the curve.

Graph your own example with the Graphing Inequalities Calculator — free, in your browser.

Try it now

Sources and further reading

Worked examples and figures were produced and checked with the Graphing Calculator Lab engine. See the editorial policy.

Related guides

More in Inequalities and Piecewise Functions · All guides