Example: Here is another piecewise function: What is h (−1)? x is ≤ 1, so we use h (x) = 2, so h (−1) = 2. What is h (1)? x is ≤ 1, so we use h (x) = 2, so h (1) = 2. What is h (4)? x is > 1, so we use h (x) = x, so h (4) = 4. Piecewise functions let us make functions that do anything we want! Example: A Doctor's fee is based on the length of time.
Piecewise functions follow differnt rules depending on the value of x. Learn how to solve, graph, and read piecewise functions here!
A piecewise function is a function that is defined differently over different intervals of its domain. Instead of using a single equation for all inputs, it assigns distinct expressions to specific intervals.