Put remaining stuff is just a matter of algebra.
Soroban, first thank you very much. But it's one thing left, how did u changed numerator from 2cosx-sqrt3 to -2sinx? With other words how to apply this Hopital Rule (i didn't know for this since it was mentioned here). Can you explain with your words what did you do? Sorry for this ironic questions, but I'm just trying to learn, and I don't understand other literatures about this rule.
A little help would be highly appreciated.
p.s sorry for my bad english.