See attached for some ways to achieve what you want.
Basically you can use range variables for plotting to limit the range for every function individually or you use if-statements/if-functions (or maybe even the Heaviside step function) in your functiondefinition(s) to limit the function output to the preferred range.
Lookup "Plotting piecewise functions" in the help for further information.