Question: Plot a continuous function

AOA... I want to plot the following function which is continuous in [0,3]

f:=x^2+1  for x belong to [0,1]

f:=x^2-1  for x belong to [1,2]

f:=x+1  for x belong to [2,3]

Kindly help...

Please Wait...