Piecewise-Defined Functions (Including Absolute Value Functions) - SAR
Piecewise-Defined Functions (Including Absolute Value Functions) - SAR
Piecewise-Defined Functions
Absolute Value Functions
GENMATH
Chemical Engineering Department
Dr. Susan A. Roces
1T, AY 2024 - 2025
Piecewise Defined Functions
ØIn preparation for the definition of the
absolute value function, it is extremely
important to have a good grasp of the
concept of a piecewise defined function.
Definition:
A piecewise function is a function defined by two
or more equations.
ØEach “piece” of the function applies to a
different part of its domain.
Piecewise Defined Functions
Ø Also called as hybrid function.
Ø Defined by multiple sub-functions, each applying a
certain sub-domain of the main function.
• A piecewise
constant function
having many finite
pieces
Piecewise Defined Functions
Piecewise linear
• Comprises of
straight-line sections
⎧ −x − 3, x ≤ −3
⎪
⎪ x + 3, −3 < x < 0
f ( x) = ⎨
⎪ −2x + 3, 0 ≤ x < 3
⎪ 12 ( x − 9 ), x≥3
⎩
Piecewise Defined Functions
Spline Functions
• Consists of polynomial
pieces joined together
⎧ 2
⎪⎪ x , x<0
f ( x ) = ⎨ −x 2 , 0 < x <1
⎪ 1− 2x, x >1
⎪⎩
Evaluating Piecewise Functions
To evaluate a piecewise function, identify or figure out
which piece applies to the given value of
Consider the function
⎧ 3x − 1, -3 1 3
⎪
f ( x ) = ⎨ 2,
x ≤ −3
−3 < x < 1
•
⎪ −3x,
⎪⎩ x ≥3
•
Evaluate the following:
1. f (0) = 2 3. f (−5) = 3(−5) −1 = −16
2. f (1) = 2 4. f (10) = −3(10) = −30
Evaluating Piecewise Functions
Evaluate the following:
⎛ −1 ⎞ ⎛1⎞
1. f ⎜ ⎟ 4. f ⎜ ⎟
⎝2⎠ ⎝ 10 ⎠
2. f (−3) 5. f (−2 )
3. f ( 2.5) 6. f (−15)
Domain of a Piecewise Function
Ø To determine the domain of a piecewise function is
simply to inspect where the given pieces are defined.
Determine the domain of each piecewise function:
⎧ x − 2, x ≤ −1 Domain:
1. f ( x ) = ⎨ 2
⎩ x − 2, x > −1 Set of real numbers
Note:
The function x – 2 is defined for all x less that or equal to - 1
The function x2 – 2 is defined for all x greater than – 1.
Therefore: It means that the function is defined for
all possible values of x.
Domain of a Piecewise Function
⎧ 1, x < −1
⎪ 2
2. f ( x ) = ⎨ x −1, −1 < x ≤ 2
⎪ 4, x>3
⎩
−1
•2 3
Domain: Interval Notation
(−∞, −1) U (−1, 2] U (3, ∞)
Graphing Piecewise Functions
In graphing a piecewise function, we can follow the
following steps:
1. Evaluate the endpoint(s) of function
Domain:
(−∞, ∞)
Range:
[−2] U [1, ∞)
Graphing Piecewise Functions
⎧ − x −1, x < −2
⎪
2. f ( x ) = ⎨ x +1, − 2 < x <1
⎪ − x +1, x ≥1
⎩
Solution: ( - ∞, -2) (- 2, 1) [1, ∞)
y=-x-1 y=x+1 y=-x+1
Range:
(−∞, ∞)
Graphing Piecewise Functions
⎧ − 2x − 3, x≤0
⎪
3. f ( x ) = ⎨ 4, 0<x≤2
⎪ 2
⎩ x −1, x>2
Domain:
(−∞, ∞)
Range:
[−3, ∞)
Graphing Piecewise Functions
y = −1
Answer: ⎧− 1 x < 0 ⎫
⎪ ⎪
f (x ) = ⎨ 0 x = 0⎬
⎪ 1 x > 0⎪
⎩ ⎭
Graphing Piecewise Functions
2.
y =1
⎧ 0, x < −0.5
Final Answer: ⎪
⎪⎪ 0.5, x = −0.5
f ( x ) = ⎨ 1, − 0.5 < x < 0.5
⎪0.5, x = 0.5
⎪
⎪⎩0, x > 0.5
Graphing Piecewise Functions
3. L3 : D(0, 3):
(0, 3)
(−5, 2) L
1
P1 (0, 3) and P2 (3, −3)
L2 L3
−3 0 3
L4 (5, −2) L4 : D(3, ∞):
2. y = − x + 2 + 3 ← y = a x−h +k
h = −2, k = 3,
a = −1, a < 0
Vertex : (−2, 3)
Opening Downward
Symmetrical at x = −2
Domain: (−∞, ∞)
Range: (−∞, 3] x = −2
Illustrative Examples: Graphing Absolute Value Functions
3. y = 2 x − 3 + 5 ← y = a x−h +k
h = 3, k = 5,
a = 2, a > 0
Vertex : (3, 5)
Opening Upward
Symmetrical at x = 3
Domain: (−∞, ∞)
Range: [5,∞) x=3
Practice Numbers_Piecewise Functions and Absolute Value Functions
⎧ 2 + x, x ≤ −1
1. f ( x ) = ⎨ 2
⎩x, x > −1
⎧ 2x − 4
⎪ 2 , x<4
2. f ( x ) = ⎨ x − 4
⎪⎩ x − 5, x≥4
Practice numbers_iecewise Functions and Absolute Value Functions
1
3. y = x −1 + 3
2
4. y = −3 x +1 − 2
Homework 8_Piecewise Functions and Absolute Value Functions
1. 3. 5.
2. 4. 6.
http://msenux2.redwoods.edu/IntAlgText/chapter4/
section1.pdf
http://www.kkuniyuk.com/PrecalcBook/
Precalc0105to0107.pdf
https://www.cusd80.com/cms/lib/AZ01001175/Centricity/
Domain/2385/4.7%20Alg.pdf
https://wl.apsva.us/wp-content/uploads/sites/38/2017/08/
Wright-2.7-Piecewise-SY18.pdf
https://www.jacksonsd.org/cms/lib/NJ01912744/Centricity/
Domain/504/Alg%203.7%20BI%20TB.pdf
https://www.classzone.com/eservices/home/pdf/student/
LA202HAD.pdf