Inequalities
Use inequalities to automatically shade above or below lines and curves. Combine implicit relations and inequalities to share the interior of a circle, or the concave part of a hyperbola. Add extra life to your Desmos math art with a bit of inequality-based shading. Get started with the video on the right, then dive deeper with the resources and challenges below.
With inequalities, you can add colored shading to your Desmos graph. Use strict inequalities (\(\lt and \gt \)) for dotted lines and non-strict inequalities (\(\le and \ge \)) for a solid line.
For more intricate graphs, you can also use inequalities with restrictions to shade selected parts of the graph.
Inequalities in Action
"The best way to learn is to do." – Paul Halmos
Domain and Range Restrictions
Use curly braces at the end of an expression to add a domain or range restriction in seconds. From piecewise functions and implicit relations, to including sliders within your restrictions, Desmos makes it easy to control what you see in the coordinate plane. Get started with the video on the right, then dive deeper with the resources and challenges below.
To limit the domain or range (x or y values of a graph), you can add the restriction to the end of your equation in curly brackets {}. In the example graph above the line y=2x is restricted for x values between 1 and 3.
You can also use restrictions on the range of a function and any defined parameter.
It's also possible to add multiple restrictions to the same expression line regardless of what parameter is being restricted.
Restrictions in Action
"The best way to learn is to do." – Paul Halmos
Next Steps
Now that you know about inequalities and restrictions, check out these other articles.