How to Graph Piecewise Functions in Desmos

How to Graph Piecewise Functions in Desmos

How to Graph Piecewise Functions in Desmosを成功させるための重要なポイントをご紹介します。

The real joy? You can make wild, impossible shapes. Want a function that looks like a staircase? Use floor functions with piecewise conditions. Want to model the cost of a taxi ride that charges differently after midnight? Piecewise is your jam. It turns graphs from boring continuous lines into action-packed stories with sharp turns and sudden stops.

And here’s the rhetorical question for you: Isn’t it weirdly satisfying to see a graph that breaks? Normally, math graphs are so polite and smooth. Piecewise functions are the rebellious teenagers of the math world—they have mood swings.

Pro Tip: Don't Forget the "Equals"

A little trap that trips people up: You have to be very specific about where the boundary lives. If your condition is {x < 2}, the point at x=2 won’t show up on that piece. If you want it to, use {x <= 2}. It’s the difference between a soft exit and a hard cut. Desmos respects your boundaries—so you better respect your inequalities.

Also, you can add a third piece, a fourth piece, or even a hundred pieces. Just keep adding conditions. Desmos will happily draw your mathematical Frankenstein’s monster. Try making a function that is a circle for some numbers and a line for others—it’s pure chaos in the best way.

石川 優花
Author

石川 優花

心身ともに健康で持続可能なライフスタイルをテーマに、最新のウェルネストレンドを発信中。