Math Help - Need a function for this graph

1. Need a function for this graph

2. Originally Posted by sanghoon93
Have you considered a piecewise function?

3. $f(x)=\left\{\begin{array}{cc} x,&\mbox{ if }
0 \leq x \leq 1\\2-x, & \mbox{ if } 1 < x \leq 2\\0, & \mbox{ if } x > 2\end{array}\right.$

Should work...