##Lab 7 Piecewise fn's and Operations with fn's
We'll start by looking at the syntax for defining piecewise functions using the builtin function called Piecewise. Let's have a 2-piece(can go with more) over the overall interval, . We want the function to return over the interval and over the interval . The function's name will be pw. One important thing to mention!! SAGE doesn't allow half-open or half-closed intervals! To it, the intervals are always closed.
Next we look at operations on functions and function composition. I will use the two functions, . Step 3 below shows the two functions, their sum, difference, product and quotient. It also shows the composition, .
Your turn. . . Let and Find the following all together or one at a time:
(determine its domain)
Evaluate all results for
Let's look at one more new concept in this lab. It's called a difference quotient. This idea is fundamental to the study of beginning calculus. The difference quotient is a new function whose variable is that's built using an ordinary function of . Here I name it . What represents is not important at this point. In the example below, my . Use my block to fashion code to calculate the difference quotients for the following functions: