A piecewise-defined function is a function that uses different rules for different parts of its domain. This means the domain is divided into smaller "pieces," and each piece is governed by a separate mathematical expression. These individual rules together define the complete function.
where I1,I2,…,In are different subsets of the domain, and f1(x),f2(x),…,fn(x) are the mathematical rules (expressions) defining f(x) on those subsets.
For weights between 5kg and 10kg, the cost is 100.
For weights above 10kg, the cost is 200.
Each example illustrates how we can divide the domain of the function into intervals and assign a specific rule for each interval. Piecewise functions are particularly useful in modeling real-world scenarios where different rules apply in different situations.
we plot the graph in two pieces corresponding to the given conditions.
Case 1: x≥1 (f(x)=x+1)
For x≥1, the function follows the rule f(x)=x+1. Let us calculate some points by substituting sample values of x:
When x=1, f(1)=1+1=2.
When x=2, f(2)=2+1=3.
When x=3, f(3)=3+1=4.
These points are (1,2), (2,3), and (3,4). Plot these points and connect them with a straight line for x≥1.
At x=1, the value f(1)=2 is valid, so we put a solid circle at (1,2).
Case 2: x<1 (f(x)=1−x)
For x<1, the function follows the rule f(x)=1−x. Let us calculate some points by substituting sample values of x:
When x=0, f(0)=1−0=1.
When x=−1, f(−1)=1−(−1)=2.
When x=−2, f(−2)=1−(−2)=3.
These points are (0,1), (−1,2), and (−2,3). Plot these points and connect them with a straight line for x<1.
At x=1, the condition x<1 does not include x=1. Therefore, the line 1−x ends at x=1 without including it. We put a hollow circle at (1,0) to indicate this.
Key Points
The solid circle at (1,2) shows that f(x)=x+1 is valid at x=1.
The hollow circle at (1,0) indicates that f(x)=1−x is not valid at x=1.
This distinction ensures clarity when transitioning between the two parts of the function.
Final Graph
The graph for f(x)=x+1 (x≥1) starts at (1,2) (solid circle) and extends upward.
The graph for f(x)=1−x (x<1) starts at (1,0) (hollow circle) and extends downward.
By joining these points appropriately, the final piecewise graph is obtained as shown below:
Section 6 of 18 · Relations and Functions
Mark this section complete when you have worked through its proofs.
Type any topic, theorem, or concept to jump directly to the section.