Differential approach to the theory of fluids in the presence of two- and three-body potentials and study of the critical point of krypton