These are handled in a similar fashion by using limits. The definition we need the most is given below.
The other two cases are handled similarly. You are asked to provide suitable definitions for them in one of the exercises.