Here I will try to explain boolean expressions. Boolean expressions are expressions that evaluate to “true” or “false”. “True” is like a value of 1 and “false” is like a value of 0 (zero).
If X is equal to or less than , this same expression can be replaced with a 0. does not plot in that case. But since falls in the domain of Y2, then it is Y2 that will plot instead.
Suppose now I have two functions on my graphing calculator:
I have written the two booleans in such a way that only one of the statements can be true at a time. Notice that if the boolean for Y1 us true, then the one for Y2 is not. That means for X values less than , only Y1 will plot. For all other values, only Y2 will plot, because its boolean will now be true and Y1‘s false. Ultimately, we obtain the graph:
Others have used different techniques for piecewise functions. One which seems to possess certain advantages would have been to place all details on to as the sum of both “pieces” where each “piece” is multiplied by the boolean of the restriction, as follows:
While being slightly unwieldy (being sure to run past the end of the display), it saves the user from having to flip between and using the key.
There was also a useful idea where you could disable plotting for Y1 and Y2; and, for a new function Y3, enter: Y1 + Y2 using the VARS key to obtain the Y variables. The result is a single function that does not require flipping between functions with the or , and proving continuity is much easier. And, the function is more like a piecewise function rather than two separate functions.