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

       =  sinx  if x > 0

                           

Solved Example on Piecewise Function

        Choose the graph of the piecewise function  f(x) = cosx if x < 0

                                                                                     

                        

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 < 0                                    

                   is as shown below.    [Use a grapher.]

                                                                           

                     

Related Terms for Piecewise Function

  • Function
  • Expression

Additional Links for Piecewise Function