How to restrict the domain on Desmos
To restrict the domain on Desmos, add a condition in curly braces after the equation. y = x^2 {0 < x < 3} draws the parabola only between x = 0 and x = 3.
y = x^2 {0 < x < 3}y = sin(x) {x > 0} {y > 0}Step by step
- 1Type your equation:
y = x^2. - 2Straight after it, type
{, and Desmos adds the closing brace. - 3Type the condition:
0 < x < 3.
Other kinds of restriction
- Restrict y:
y = x^2 {y < 4}. - Combine conditions: stack them, as in
y = x {x > 0} {y < 5}. - Use a slider:
y = x^2 {0 < x < a}, and drag a to draw the curve as you go. - Parametric curves: instead of braces, set the range of t below the line.
Why this matters for graph art
Restrictions are the main tool in Desmos graph art: every line and curve is cut to exactly the piece you need.
What domain means
A function’s domain is the x-values it accepts. Restricting it means drawing only part of it. The guide to domain and range explains how to find the natural domain of a function.
Frequently asked questions
How do I restrict a domain on Desmos?
How do I restrict the range?
Can I use more than one restriction?
Why does my restriction not work?
Keep going
Different rules on different intervals.
What the words mean.
Restrictions put to work.
Type a point using t, then widen the range of t.
d/dx and integrals work; limits and symbolic answers need a workaround.
Trace, restrict, fill and animate: a workflow for beginners.
The same equations work here, with algebra, steps and exports built in. It is free, with no account.