To graph a piecewise function, simply graph both functions. However, if, for the function it says something like x>0, erase the function for the values of x not greater than 0. The domain is what the x values can be, and the range is what the y values can be.