Piecewise Defined Functions TI-86 tutorial

game

Problem:
Using the TI-86 graphing calculator, graph the following function

f(x) =
x+1 if x<=2
2-x if x>2

for x in the interval [-1, 4].