How do you find one sided limits and limits of piecewise functions?
The only thing you need to worry about is that you choose the right formula since piecewise defined functions have multiple formulas.
Let us look at an example.
As you can see above, you simply need to choose the correct formula depending on which way it is approaching from. Two-sided limit exists only when the left-hand limit and the right-hand limit are the same.