Piecewise+Functions

=PIECEWISE FUNCTIONS= Tues. September 20, 2011

A **piecewise function** is a function made up of two or more parts. Each part has a rule that defines it.

Example: A function with three pieces:

 * when x is less than 2, it gives **x^2**,
 * when x is exactly 2 it gives **6**
 * when x is more than 2 and less than or equal to 6 it gives the line **10-x**

It looks like this:

(a solid dot means "including", an open dot means "not including")

And this is how you write it:

Example taken from this site: []

More examples: [] []

An online tool for graphing piecewise functions: []