# Piecewise 2b (Basic)

## Creator

Dan Anderson (@dandersod)

## Difficulty

Basic

## On to the Challenge!

Can you create the following graph using desmos.com or some other graphing tool? If you’re victorious, leave us a note in the comments when you’re done.

Can you do this with only one “equation”? To do the following piecewise function in desmos:

This is the same function in desmos:

f(x)={x<3:1,x>3:0}

How about f(x)={-5<x<-3:2x+10,-3<x<-1:x+7,-1<x<1:6,1<x<3:-x+7,3<x<5:-2x+10}?

Weird, the comment isn’t showing up, maybe try linking the Desmos page directly?

F(x)={-1<x<1}+5. -(x-2)+5{1<x<3} -(2x-4)+6{3<xx>-3} (2x+4)+6{-3>x>-5}