méthode par séparation des variables