Resonance in equations with a diagonal field