How To Graph Piecewise Functions On Desmos?

Open Desmos Graphing Calculator

Enter each piece of the function on a separate line

Use curly braces for domain restrictions

Format each piece as `expression {condition}`

Use inequalities to limit where each piece appears

Example: `y=x^2 {x<0}`

Example: `y=2x+1 {0<=x<=3}`

Example: `y=5 {x>3}`

Use `<=` and `>=` for closed endpoints

Use `<` and `>` for open endpoints

Add points with `(x,y)` if needed

Use filled points for included endpoints

Use open circles for excluded endpoints

Check that all domain conditions do not overlap incorrectly

Adjust each piece until the graph matches the function

Use parentheses to group conditions when needed

Example: `y={x<1: x^2, x>=1: 2x+1}`

Suggested for You

Trending Today