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.
Check it yourself: every example here can be loaded into the Graphing Inequalities Calculator.
Open the Graphing Inequalities CalculatorSame method, curved boundary
- Boundary: replace the sign with = and graph the curve.
- Style: dashed for < or >, solid for ≤ or ≥ — see dashed vs solid lines.
- Test a point not on the curve.
- 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
- Boundary: the parabola y = x² − 4, vertex (0, −4), roots ±2. Strict >, so dashed.
- Test (0, 0): 0 > −4 ✓.
- Shade the region containing the origin — above the curve, i.e. inside the U.
- Check outside: (3, 0) gives 0 > 5 ✗, so the outside is correctly unshaded.
- Graph y > x² − 4 — opens the Graphing Inequalities 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.
- Graph y < 2ˣ — opens the Graphing Inequalities Calculator
Systems with curves
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).
- Solid parabola y = x², shade above it.
- Solid line y = x + 2, shade below it.
- Corners: x² = x + 2 gives x = −1 and x = 2.
Solve y ≥ x² and y ≤ x + 2 graphically:
- Shade above the solid parabola y = x².
- Shade below the solid line y = x + 2.
- 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).
- Check (0, 1): 1 ≥ 0 ✓ and 1 ≤ 2 ✓.
- Graph the system y ≥ x² and y ≤ x + 2 — opens the Graphing Inequalities Calculator
Quadratic inequalities in one variable
A graph also solves inequalities like x² − x − 6 < 0:
- Graph y = x² − x − 6 (roots −2 and 3).
- “< 0” asks where the curve is below the x-axis.
- 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 nowSources and further reading
- OpenStax, College Algebra 2e — 7.3 Systems of Nonlinear Equations and Inequalities
- OpenStax, Intermediate Algebra 2e — 9.8 Solve Quadratic Inequalities
Worked examples and figures were produced and checked with the Graphing Calculator Lab engine. See the editorial policy.