Perturbation treatment of mixing in Josephson junctions