Listen, I’ve tried graphing piecewise functions by hand. It’s like trying to draw a straight line with a noodle. Desmos does the heavy lifting so you can focus on the fun part: watching the graph snap into place.
But here’s the kicker—Desmos has a tiny quirk. It doesn’t have a dedicated “piecewise” button. You have to type it the right way, or it’ll just stare at you with a red error bar. Ever felt judged by a graphing calculator? Me too.
The secret formula (it’s not scary)
Here’s the trick: use curly braces. Yes, those curly things that usually make you think of programming or chaotic laundry baskets. Type y = { condition : expression }. For example, type y = { x < 0 : x^2 }. Poof. Half a parabola appears.
Want two pieces? Just add another pair of curly braces. Like this: y = { x < 0 : x^2, x >= 0 : -x }. See? You’re basically writing a choose-your-own-adventure for numbers. How cool is that?