Yes, you have to do what your professor told you to do. Recall that:
here is the problem
lim x approaches pi of cotx
would anyone please tell me how to prove the limit doesnt exist by using sided limit from both sides. my prof told me that i have to show x approaches PI from the left and from the right.