Piecewise Function

How do i write a piecewise function from a graph?

Here are four different ways!

Method 4 is pretty slick. Would more easily allow for coding changing the bound ranges.
(Note took me a minute to realize I needed to click edit graph on Desmos.)

Thanks! First time I’ve tried it! I think it also lends to setting up “holes” since Desmos doesn’t do that automatically. Here’s my approach for adding holes.