8. Split Functions (Piecewisedefined functions)
By D Hu and M Bourne
Most functions you are familiar with are defined in the same manner for all values of x. However, there are some functions which are defined differently in different domains. These are known as split functions (or piecewisedefined functions).
Because split functions may have drastically different behaviours in different domains (that is, for different xvalues), it is quite common for a split function to be noncontinuous (and as we learn later, it cannot be differentiated).
Example 1  Ordinary Function for Comparison
f(x) = −x^{2} + 4
This function is not a split function. It is defined the same way for all values of x. To find the value of the function at a given xvalue, simply substitute into f(x) = −x^{2} + 4
Some values for f(x) = −x^{2} + 4 are as follows:
x  3  2  1  0  1  2  3 

f(x)  5  0  3  4  3  0  5 
Example 2  Split Function
` f(x)={(2x+3,text(for ) x<1),(x^2+2,text(for ) x>=1):} `
In the region x < 1, we have a straight line with slope 2 and yintercept `3`. As x approaches `1`, the value of the function approaches `5` (but does not reach it because of the "`<`" sign).
Now for the region `x ≥ 1`.
When `x = 1`, the function has value
f(1) = −(1)^{2} + 2 = −1 +2 = 1.
As we go further to the right, the function takes values based on f(x) = x^{2} + 2. It is a parabola.
This function has a discontinuity at `x = 1`, but it is actually defined for `x = 1` (and has value `1`).
Later we'll learn about Differentiation. This function is differentiable for all values of x except `x = 1`.
Example 3
Need Graph Paper?
Graph the split function:
` f(x)={(2x8,text(for ) x<2),(3x+2,text(for ) x> 2):} `
Example 4
`f(x)={(sin\ x,text(for ) x<2),(2x/2,text(for ) 2<=x<2),(x^28x+10,text(for ) x>= 2):}`
This function is defined in three ways.

For x less than `2`, the function is defined as `sin x`.

Between `2` and `2`, the function is defined as `2  x/2` (straight line).

Finally, for x greater than `2`, the function is `x^2 8x + 10` (parabola).
So, to determine the value of the function at a particular xvalue, it is first necessary to decide which "piece" this value falls within. Only then can we know which expression to substitute into.
Notice that the function is defined for all x, but has discontinuities at `2` and `2`.
Here are some function values for this split function:
x  4  3  2  1  0  1  2  3  4 

f(x)  0.757  0.141  3  2.5  2  1.5  2  5  6 
Example 5  Split Function (Continuous)
` f(x)={(x,text(for ) x<0),(1/5sin\ 5x,text(for ) x>=0):} `
This function is split into two pieces.
For negative values of x, the function is identical to x (straight line).
For nonnegative values of x, the function is identical to `1/5 sin\ 5x`. Again, the function is defined for all values of x. However, in this case, the function is continuous (and differentiable) everywhere.
x  2  1  0  1  2 

f(x)  2  1  0  0.192  0.109 
Some split functions are so commonly used that they are given special notation.
Example 6  Absolute Value Function
f(x) =  x 
This is the absolute value function. It is really a split function defined in two pieces:
` f(x)={(x,text(for ) x<0),(x,text(for ) x>=0):} `
The function is continuous everywhere, but only differentiable at nonzero values of x.
x  2  1  0  1  2 

f(x)  2  1  0  1  2 
Example 7  Step Function
You will also encounter split functions in signal analysis (see Fourier Series and Laplace Transforms). For example, a function in electronics can be defined as
` f(t)={(1,text(for ) 3<=t<0),(1,text(for ) 0<=t<=3):} `
Online Algebra Solver
This algebra solver can solve a wide range of math problems. (Please be patient while it loads.)
Go to: Online algebra solver
Math Lessons on DVD
Easy to understand math lessons on DVD. See samples before you commit.
More info: Math videos
The IntMath Newsletter
Sign up for the free IntMath Newsletter. Get math study tips, information, news and updates each fortnight. Join thousands of satisfied students, teachers and parents!