Understanding Piecewise Functions
Understanding Piecewise Functions
A piecewise function indicates that for each section into which its domain has been divided (subdomains),
only one of the specified functions is fulfilled.
The piecewise-defined functions are expressed with a common functional notation, where the body of the function
It is a list of mathematical expressions associated with a subdomain (interval), in the following form:
For example, let the function defined by sections of the absolute value function:
-x for x < 0
f(x) =
x for x ≥ 0
For all values less than zero, the first mathematical expression (the function -x) is used.
which changes the sign of the value assigned to the independent variable, making the result always
positive. For all values greater than or equal to zero, the second mathematical expression
(the function x) is used.
X
x1
x2
x3
:
:
:
xm
GRAPHICS OF PIECEWISE DEFINED FUNCTIONS
From here, we can organize the Domain of this function in the following way:
Dependiendo de los valores que definen cada uno de estos subdominios, podemos representar la fun
defined by sections as:
f1(x) f2(x)
f3(x)
a<X≤b b<X<c c≤X≤d
( ]( )[ ]x
a b c d
To create the graph of a piecewise defined function, a data table with the values must first be created.
the independent variable, in one column (these values of the variable x should be taken arbitrarily but that cover
all the subdomains and ordered in ascending order). In another column, the values of the function f(x) must be calculated, u
expression of the corresponding function, depending on the subdomain to which the particular value of x belongs.
F(X)
f1(x1if x1belongs to the subdomain 1 or f2(x1) if x1it belongs to subdomain 2 or ..... Fn(x1) if x1belong
f1(x2) if x2belongs to the subdomain 1 or f2(x2) if x2belongs to subdomain 2 or ..... Fn(x2) if x2belonging
f1(x3) if x3belongs to subdomain 1 or f2(x3) yes x3belongs to subdomain 2 or ..... Fn(x3) if x3belong
From here, we can express the function f(x) in Excel using the IF function, with several nested IF functions.
-x for x < 0
f(x) =
x for x ≥ 0
X F(x)
F(x
-5 5 6
-4.5 4.5
-4 4
-3.5 3.5
-3 3 5
-2.5 2.5
-2 2
-1.5 1.5
-1 1 4
-0.5 0.5
0 0
0.5 0.5
1 1 3
1.5 1.5
2 2
2.5 2.5
3 3 2
3.5 3.5
4 4
4.5 4.5
5 5 1
0
-6 -4 -2
x)
F(x)
0 2 4 6
x
GRAPH OF THE FUNCTION DEFINED BY SECTIONS
X F(x)
-5 24 30
-4.5 19.25
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