NEXT SAT IN: DAYS, HOURS, MINUTES, SECONDS. DON'T MISS YOUR CHANCE! SUBSCRIBE HERE

Desmos piecewise SAT: Graph piecewise functions fast with braces

By the Cheetah Prep team · Reviewed July 13, 2026

On the digital SAT, graph a piecewise function in Desmos by typing each rule with its domain restriction in curly braces. Desmos then draws each piece only on its interval. For example, enter y=x2{x1}y = x^2\{x \le 1\} and then y=2x+1{x>1}y = 2x + 1\{x > 1\} on the next line (or combine them as y=x2{x1}+(2x+1){x>1}y = x^2\{x \le 1\} + (2x+1)\{x > 1\}). The graph switches right at the boundary.

This Desmos piecewise SAT setup helps because many SAT questions only ask you to read one feature from the graph. You do not have to rewrite the whole function. Once the pieces are in, you can quickly:

  • Confirm which formula applies at a specific xx value by checking which segment is drawn there.
  • Spot open versus closed endpoints by using strict versus inclusive inequalities, for example x<1x < 1 versus x1x \le 1.
  • Get key points without extra algebra, for example intercepts and where two pieces meet (or do not meet).

If the question is really about intercepts after you graph the pieces, use the same approach as in Desmos x intercepts SAT: Find Zeros Fast by Graphing, but apply it to the piecewise graph you already built.

When to use this Desmos method

Use the Desmos piecewise setup when the SAT gives you multiple rules with different domains, and the question asks you to pull a feature from the graph fast instead of doing a full algebra rewrite.

This method works best when the function is written like this: one formula for xx in one interval, and a different formula for xx in another interval. Once each piece is restricted to its own domain, Desmos keeps the rules separated, so you do not apply the wrong one.

Look for these question patterns:

  • Which value is f(a)f(a) or g(a)g(a), where aa sits near a boundary like x=2x = 2 or x=1x = -1. The graph shows which piece is active at that xx.
  • Is the function defined at the boundary, or what happens at the switch point. Inequalities decide whether the endpoint counts, so you can see a filled point or a gap.
  • Continuity questions, like whether the left and right pieces meet at x=cx = c, and if they do, what the shared yy value is.
  • Comparisons and inequalities, like which is larger on an interval, or where the piecewise graph is above or below a line.
  • Max or min over a restricted interval, since piecewise problems often limit xx to specific ranges. Graph only the allowed part.

If you still need an exact intercept after graphing, use Desmos y intercept SAT: Find a y Intercept Instantly on the piecewise graph you built.

Step by step in Desmos

  1. Type each piece as its own line with braces

    On line 1, type the first formula, then add a domain restriction in curly braces. On line 2, type the second formula with its own restriction. Desmos graphs only the part that matches the inequality, so you do not mix the rules.

    y=\sqrt{x+4}\{x<-1\}
  2. Add the next piece with the opposite interval

    On the next line, enter the next rule and restrict it to the interval the problem gives. Make sure the intervals cover what the question allows, and do not overlap unless the piecewise definition says they should.

    y=x-1\{x\ge -1\}
  3. Check the boundary with strict versus inclusive signs

    Look at the switch point, here it is x=1x=-1. If the left piece uses x<1x<-1 it will not include the endpoint. If the right piece uses x1x\ge -1 it will include the endpoint. This is how you control whether the point at the boundary is included in the function.

    y=\sqrt{x+4}\{x\le -1\}
  4. Verify which rule applies at a specific x value

    If the question asks for something like f(0)f(0) or f(2)f(-2), do not plug in right away. First, see which segment is actually drawn at that xx. If xx is on the right side of the boundary, only the right piece should appear there.

    x=0
  5. Use intersections to compare pieces or find where they meet

    If you need where the pieces meet, or where the graph crosses another graph, add the other equation on a new line. Then click the intersection point Desmos marks. If there is no intersection near the boundary, the function is not continuous there.

    y=0
  6. Optional, combine pieces into one line only if you need to

    You can also add pieces together in one expression by multiplying each rule by a restriction in braces. This is useful if you want a single line to turn on and off. It is not required for SAT problems, separate lines are usually clearer.

    y=\sqrt{x+4}\{x<-1\}+(x-1)\{x\ge -1\}

Exact expressions to enter

  • y=f1(x){condition1}y=f_1(x)\{\text{condition}_1\}Type this into Desmos

    Template for one piece. Replace $f_1(x)$ with the formula for that interval, and replace the condition with its domain rule, like $x\le2$ or $x>2$.

  • y=f2(x){condition2}y=f_2(x)\{\text{condition}_2\}Type this into Desmos

    Second piece on a new line. Each piece gets its own restriction so Desmos only draws it where it is allowed.

  • y=f1(x){condition1}+f2(x){condition2}y=f_1(x)\{\text{condition}_1\}+f_2(x)\{\text{condition}_2\}Type this into Desmos

    Single line version. Use this only when the conditions do not overlap, so you do not accidentally add two pieces at the same $x$ value.

  • y=(x+3)2{x1}y=(x+3)^2\{x\le-1\}Type this into Desmos

    Example of a left side rule with an inclusive boundary. $x\le-1$ means the point at $x=-1$ is included for this piece.

  • y=2x4{1<x2}y=2x-4\{-1<x\le2\}Type this into Desmos

    Example of a middle interval using a strict left endpoint and an inclusive right endpoint.

  • y=x2{x>2}y=\sqrt{x-2}\{x>2\}Type this into Desmos

    Example of a right side rule. Pairing the square root with $x>2$ avoids drawing anything at or left of $2$.

  • y=(x+3)2{x1}+(2x4){1<x2}+x2{x>2}y=(x+3)^2\{x\le-1\}+(2x-4)\{-1<x\le2\}+\sqrt{x-2}\{x>2\}Type this into Desmos

    Same three piece function combined into one entry. This is fast when you want to keep everything in one line.

  • y=1{x<0}y=1\{x<0\}Type this into Desmos

    Constant pieces work the same way. Use this when one part of the piecewise function is just a horizontal segment.

  • y=x{x0}y=|x|\{x\ge0\}Type this into Desmos

    Absolute value is fine inside a restriction. Use $|x|$ and then the domain condition in braces.

  • y=(x1)(x+2){0x<3}y=(x-1)(x+2)\{0\le x<3\}Type this into Desmos

    Restriction with a compound inequality. Desmos reads it as a single condition that keeps only the part of the graph between the endpoints.

Worked SAT style example

Example

Let f(x)f(x) be defined by f(x)={x+4if x<1x2if 1x26xif x>2f(x)=\begin{cases}x+4 & \text{if } x< -1\\ x^2 & \text{if } -1 \le x \le 2\\ 6-x & \text{if } x>2\end{cases}. What is the value of f(1)+f(2)f(-1)+f(2)?

  1. Enter the pieces in Desmos using domain restrictions in curly braces: y=x+4{x<1}y=x+4\{x<-1\}, y=x2{1x2}y=x^2\{-1\le x\le 2\}, and y=6x{x>2}y=6-x\{x>2\}.
  2. Check x=1x=-1. Because the middle piece uses 1x-1\le x, the point at x=1x=-1 is on y=x2y=x^2, so f(1)=(1)2=1f(-1)=(-1)^2=1.
  3. Check x=2x=2. Because the middle piece also includes x2x\le 2, the point at x=2x=2 is on y=x2y=x^2, so f(2)=22=4f(2)=2^2=4.
  4. Add the values: f(1)+f(2)=1+4=5f(-1)+f(2)=1+4=5.
  5. Why this is fast: the boundary points are where mistakes happen. The inequalities tell Desmos which rule owns x=1x=-1 and x=2x=2, so you do not accidentally use the wrong formula.
Answer: 55

Common mistakes

Most Desmos piecewise SAT setup mistakes come from a bad restriction, overlapping domains, or reading the boundary point wrong.

  • Putting the domain restriction outside the expression. In Desmos, the curly braces must be attached to the rule you want restricted, like y=3x{x2}y = 3x\{x \le 2\}. Do not write it as a separate note.

  • Using parentheses instead of curly braces. (x2)(x \le 2) changes the algebra, but it does not tell Desmos where to draw the piece. Use {x2}\{x \le 2\}.

  • Forgetting to restrict one piece. If one line has no braces, it graphs everywhere. It can cover the correct segment and make you think the piecewise rule changed.

  • Overlapping intervals by accident. If you use x1x \le 1 on one line and x1x \ge 1 on the next, both pieces are active at x=1x = 1. That can create an extra point or a vertical looking glitch. Make the split clean with one inclusive and one strict inequality when needed.

  • Wrong endpoint type. On the SAT, x<1x < 1 and x1x \le 1 are not interchangeable. A strict inequality means the function is not defined at the boundary for that piece.

  • Combining pieces with addition when they overlap. In a single line like f(x)=A{...}+B{...}f(x) = A\{...\} + B\{...\}, any overlap adds both values. If you see a doubled y value, check your inequalities.

  • Reading a value from the wrong segment. Before you grab f(a)f(a), zoom near x=ax = a and confirm which piece is actually drawn there. If you want more Desmos checking habits, use SAT Desmos guides.

When this method does not work

This Desmos piecewise SAT method is not reliable when the question needs exact algebra or when the graph can hide key details.

Use graphing to see the shape, the active interval, and whether an endpoint is open or closed. Do not use it as your only tool in these cases:

  • Exact answers are required. If the problem asks for an exact value in terms of a constant, an exact fraction, or an exact expression, the graph may only show a decimal approximation. Use algebra to finish.
  • The switch point is ambiguous. If you type restrictions wrong, for example you use x<cx < c on both pieces, or you forget the restriction on one piece, Desmos draws the wrong segment. Then you read the wrong value at the boundary.
  • Domain restrictions are not simple intervals. Some SAT functions have extra rules like “all real xx except where the denominator is 00” or “only when the expression under the square root is nonnegative.” Those restrictions are easy to miss if you only look at the piecewise braces. For these, use the same caution as in Desmos Rational Equations SAT: Solve by Graphing and Checking Denominators.
  • Two pieces overlap. If both rules are defined on the same xx values, Desmos draws both graphs. The SAT question might expect you to pick which rule defines the function, but the graph cannot tell you.
  • You are reading tiny features. A very steep line, a sharp corner, or a gap near the boundary is easy to misread unless you zoom in and check the inequality symbols carefully.

Practice questions

1.You enter the piecewise function in Desmos as two lines:
1) y=x+2{x<1}y = x + 2\{x < -1\}
2) y=x2{x1}y = x^2\{x \ge -1\}
What is f(1)f(-1)?

2.A function is defined by
f(x)={2x1x2x2x>2f(x)=\begin{cases}2x-1 & x \le 2\\ x^2 & x > 2\end{cases}
In Desmos you want a filled endpoint at x=2x = 2 on the line piece and no point from the parabola at x=2x = 2. Which input matches that?

3.You graph these in Desmos:
y=3{x<1}y = 3\{x < 1\}
y=2x+1{x1}y = 2x + 1\{x \ge 1\}
What is the yy value of the filled point at the boundary?

4.A piecewise function is entered as
y=x2{0x<2}+5{2x4}y = x^2\{0 \le x < 2\} + 5\{2 \le x \le 4\}
Which statement is true?

5.You graph
y=x{x0}y = -x\{x \le 0\}
y=x+2{x>0}y = x + 2\{x > 0\}
What is the jump between the left hand value and the right hand value at x=0x = 0?

6.A function is defined by
f(x)={x+4x<222x1x+3x>1f(x)=\begin{cases}x+4 & x < -2\\ 2 & -2 \le x \le 1\\ -x+3 & x > 1\end{cases}
What is f(1)f(1)?

7.You need to graph this in Desmos using restrictions:
f(x)={x2+1x<37x3f(x)=\begin{cases}x^2+1 & x < 3\\ 7 & x \ge 3\end{cases}
Which single line entry correctly graphs the piecewise function?

FAQ

How do I type a piecewise function in Desmos for the digital SAT?

Enter each rule on its own line. Add a domain restriction in curly braces. Example: y=x+3{x<0}y = x + 3\{x < 0\} on one line, and y=x2{x0}y = x^2\{x \ge 0\} on the next line. Desmos graphs each rule only where its inequality is true.

Can I combine the pieces into one line instead of using multiple lines?

Yes, as long as the domain restrictions do not overlap. You can combine the pieces into one line: y=(x+3){x<0}+x2{x0}y = (x+3)\{x < 0\} + x^2\{x \ge 0\}. Each restricted part is active only on its interval.

What do the curly braces mean in Desmos piecewise graphs?

Curly braces in Desmos set a condition. If the condition is true, Desmos graphs that part. If it is false, Desmos does not show it. This is how the same formula can appear only on one side of a boundary like x=0x = 0.

How do I show an open circle versus a closed circle at the boundary?

Use strict inequalities for an open endpoint. At x=2x = 2, write x<2x < 2 or x>2x > 2. Use inclusive inequalities for a closed endpoint. At x=2x = 2, write x2x \le 2 or x2x \ge 2. On the graph, an open endpoint shows a gap at the boundary. A closed endpoint shows a filled point at the boundary.

My graph looks wrong at the switch point, what should I check first?

Check the inequalities. Make sure every xx value you want covered is included by one piece. If you use x1x \le 1 on one piece and x1x \ge 1 on the next, both pieces include x=1x = 1, so you might see two values at the same xx. If you use x<1x < 1 and x>1x > 1, then nothing includes x=1x = 1, so you get a hole.

How can I use this desmos piecewise sat method to evaluate something like $f(3)$ fast?

After you graph the pieces with correct restrictions, go to x=3x = 3 and see which piece is defined there. Do not type a point like (3,f(3))(3,f(3)). Instead, trace the graph at x=3x = 3 and read the yy value from the cursor.

How do I find where two pieces meet, or if there is a jump?

Zoom in near the boundary x=cx = c. If both sides approach the same point and the boundary is included, you see one filled point. If the left and right sides land on different yy values, you see a jump. If the boundary is excluded, you see an open circle at that end.

When should I avoid graphing piecewise functions and just do algebra?

If the question asks for an exact expression you must simplify, graphing might not finish the job. Graphing works best when the SAT asks you to read a value, compare values on an interval, or check what happens at a boundary. If you need an exact symbolic result, use the graph to pick the correct piece, then do the algebra on that interval.

About this page: written and reviewed by the Cheetah Prep team. Last reviewed July 13, 2026.

Put this method to work

Practice real SAT style questions with instant feedback, free.

Try the full Desmos course