# Limit of a Piecewise Function

In this tutorial we shall discuss the limit of a piecewise function. Let us consider an example of the limit of a piecewise function.

For what value of , exists, where

The given function is split into two parts: one is defined for and the other is defined for . So, we have to take the left hand and right hand limits. For the left hand limit must approach 2 from the left side, i.e. from the values less than 2, so for the left hand limit we shall use the function part . Thus,

For the right hand limit must approach 2 from the right side, i.e. from the values greater than 2, so for the right hand limit we shall use the function part . Thus,

It is given that the limit exists, so the left and right hand limits must be the same, i.e.