Section 2.7: Piecewise functions

Mr. Dreyer

Algebra 2 Lv 1

1Warmup

  1. Welcome/expectations signatures on desk
  2. Got calculators?
  3. Write down homework: Read Chap 2.7 (p. 114-116). Problems (p. 117-119): 1-39 odd, 50-53, 56-57.
  4. Graph y=2|x-(-3)|-2.

Piecewise functions are functions defined differently for different pieces of the domain. For example:

f(x)={ 2x-1,ifx1 (x-3)2,ifx>1 .

2Evaluating piecewise functions

Basic plan: Look at input (usually x), decide which “piece” applies, and evaluate that. For example:

Evaluate f(0).

We note that 01 so we use the first piece:

f(x) = 2x-1 f(0) = 20-1 = -1

3Aside: multiple inequalities

A shorthand for

2<xandx5

is

2<x5

4

Graphing piecewise functions

For example, graph

f(x)={ 1,if0x<1 2,if1x<2 3,if2x<3 4,if3x<4 .

This is called a “step function.” Why?

5Determining piecewise function definition from graph

Example: consider the displayed function. We see that it looks like two pieces. Use what we already know to determine the functions for each one