Differentiate cos into -sintheta. As for the 1/4√3 sintheta. You make the sintheta to the power of negative one (index form). Then you chain rule it leaving the constant of 1/4√3 on the side
This is a bit cluttered so apologies. I think the method above is more faster but this is what first came in my mind when doing the problem because I saw cosecx.