The following is a worked example:
In the following, for example
What I don't understand is that why they got .
But what do we need to substitute for ? Because this function is piece-wise, how do I know which one of the two functions I have to put into the formula?