Piecewise Functions Piecewise functions: defined by at least two equations, each applies to different part of the domain A piecewise function looks like this: Domain restrictions Equations
Evaluating Piecewise Functions Steps: 1. Look at the domain to see which equation to use 2. Plug in x-value 3. Solve!
Let’s calculate f(-2). f(x) = x 2 + 1 , x 0 x– 1, x 0 You are being asked to output when x = -2. Since -2 is 0, you will only substitute into the first part of the function. f(-2) = (-2)2 + 1 = 5
Evaluating Piecewise Functions Which equation would we use to find; g(-5)? g(-2)? g(1)?
3 x - 2, x -2 -x , -2 x 1 x 2 – 7 x, x 1 f(x) = Evaluate the following: f(-2) = 2? f(-4) = -14 ? f(3) = ? -12 f(1) = -6?
Step Functions Looks like a flight of stairs An example of a step function: Graphically, the equation would look like this: