Related Links

Piecewise Function

Definition Of Piecewise Function

Piecewise function is a function f(x) defined piecewise, that is f(x) is given by different expressions on various intervals.

Examples of Piecewise Function

The graph below shows the piecewise function f(x) = |x| if x ≤ 0
= sinx if x > 0Examples of  Piecewise Function

Video Examples: Piecewise Functions.mov

Solved Example on Piecewise Function

Ques: Choose the graph of the piecewise function f(x) = cosx if x < 0="">
= ex if x ≥ 0

Examples of  Piecewise Function

Choices:

A. Graph A
B. Graph B
C. Graph C
D. None of these
Correct Answer: B

Solution:

Step 1: The graph of the piecewise-defined function
f(x) = cosx if x <>
= ex if x ≥ 0 is as shown below. [Use a grapher.]

  Examples of  Piecewise Function