I've attached a serie of screenshots which shows the steps what you have to do:
As you can see you add the domain of the piece of a function in brackets to the term of the piece of function which has to be put in brackets too.
1. Yscl = 1. This value is covered by the cursor.
2. The graph which is drawn by the calculator is wrong: The vertical parts have to be removed. (I don't know how to get the calculator to stop this nonsense )