Piecewise Functions

​
first rule change
-2
second rule change
2
function in region 1
sin(x)
x+2
x

2
x
cos(x)
function in region 2
sin(x)
x+2
x

2
x
cos(x)
function in region 3
sin(x)
x+2
x

2
x
cos(x)
This Demonstration allows you to create a variety of piecewise functions—that is, functions whose output rule changes abruptly from one piece of its domain to another. The sliders control where the rules change and the buttons control which output rule is used in which region.

External Links

Piecewise Function (Wolfram MathWorld)

Permanent Citation

Chris Boucher
​
​"Piecewise Functions"​
​http://demonstrations.wolfram.com/PiecewiseFunctions/​
​Wolfram Demonstrations Project​
​Published: September 28, 2007