Studying ice sheet stability using the method of separation of variables