Rate equations and their applications