Uh oh! Wolfram|Alpha doesn't run without JavaScript.
Please enable JavaScript. If you don't know how, you can find instructions
here
.
Once you've done that, refresh this page to start using Wolfram|Alpha.
Plot[If[x<1,x,If[x<2,-x+2,If[x<3,x-2,If[x<4,-x+4]]]],{x,0,5}]
Natural Language
Math Input
Extended Keyboard
Examples
Upload
Random