How to create a function with a

Doamin [-3,8]
Range [-2,4]
Increase (-3,1) (5,8)
Decrease (1,5)