A representation for the logarithmic derivative of a meromorphic function