Thank you for your time. I managed to solve it. I will post the solution once I figure out how to work with the math tag.
1. Convert it to the form infinity/infinity and simplify
2. Take the derivatives
3. Since 1 - cosx is either some constant or zero and the denominator is infinity, there are two cases. Either constant/infinity or zero/infinity both of which equal to zero.