# Need a function for this graph

• August 24th 2009, 10:10 AM
sanghoon93
Need a function for this graph
• August 24th 2009, 10:15 AM
sinewave85
Quote:

Originally Posted by sanghoon93

Have you considered a piecewise function?
• August 24th 2009, 10:51 AM
Defunkt
$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...