Graphing Piecewise Functions on Desmos

Graphing Piecewise Functions on Desmosの要点を丁寧に掘り下げてご紹介します。

Here’s the fun part: you can make art with piecewises. Want to draw a broken heart? Piecewise. A function that jumps like a kangaroo on espresso? Piecewise. Desmos lets you layer multiple piecewise functions to create shapes, letters, even pixel art.

I once saw a Desmos graph of a cat made entirely of piecewise functions. It had whiskers made of y = |x| and a tail that curved like a sine wave. Absolute genius. You can be that person. All you need is patience and a little caffeine.

And if you mess up? That’s fine. Just delete the line and try again. Desmos doesn’t hold grudges. Unlike some math teachers I’ve known. (I’m kidding, Mrs. Henderson. You were great.)

The final piece (pun intended)

So go ahead and open Desmos right now. Type y = { x < -1 : 1, -1 <= x <= 1 : x^2, x > 1 : 1 }. That’s a “U” with flat wings—a classic. Watch it appear like magic.

Now tweak it. Make the middle piece a triangle. Or a straight line. Or a googly eye. You’re the math boss here. Desmos just follows orders.

And if you ever get stuck, just remember: curly braces, conditions, and commas. That’s your mantra. Chant it over your coffee. Your future self—who doesn’t want to graph by hand—will thank you.

山本 拓海

山本 拓海

ヘルス&ウェルネスアドバイザー

デジタルガジェットとスマート家電の検証記事を多数執筆。失敗しないモノ選びを提案します。

Share this article
Twitter Facebook Pinterest