You can use the lift
method. You can look at the following links for concrete examples:
- http://ask.sagemath.org/question/8346/find-polynomial-in-terms-of-ideal/
- http://ask.sagemath.org/question/7853/quotient-decomposition-by-groebner-basis/
- http://ask.sagemath.org/question/31946/polynomial-decomposition/