Methods for the determination of hydrazine derivatives and their applications in pharmaceutical analysis