I was wondering how the Maclaurin series expansion for cotangent is derived using the Bernoulli numbers.

It is given as:

I cannot normally find the Maclaurin expansion since is undefined.

Could I derive this cotangent representation from the series representation of sine and cosine? Or tangent? If not, how would I?

Thank you very much.