In this lesson, we’ll delve into evaluating piecewise functions. A piecewise function is like a puzzle, where the function behaves differently depending on the value of the input variable, x. We’ll explore how to determine which part of the function to use based on the value of x.
For example, let’s take a piecewise function that’s defined as f(x) = 4x + 5 when x is less than 2, and f(x) = 3x - 8 when x is greater than or equal to 2. To find the value of f(-2), we see that -2 is less than 2, so we use the first part of the function, f(x) = 4x + 5. Plugging in -2, we get f(-2) = 4(-2) + 5 = -3.
Similarly, for f(2), we notice that 2 is greater than or equal to 2, so we use the second part of the function, f(x) = 3x - 8. This gives us f(2) = 3(2) - 8 = -2. By understanding how to evaluate piecewise functions, you’ll be able to solve more complex problems involving these functions.