if function in graph

Hello
I search a programm witch can split a graph in 3spaces
Perhaps If X<=2 Y=2X
If 10<X>2 Y=5x
If X>=10 Y=50
Is there any possibility to make this
I search a programm witch can split a graph in 3spaces
Perhaps If X<=2 Y=2X
If 10<X>2 Y=5x
If X>=10 Y=50
Is there any possibility to make this
