Are you sure that the first term is ? If it is actually then the problem becomes very much simpler, because

If you really want the first term to be then the problem is definitelynot"something simple". It takes you into some quite advanced mathematics involving Gröbner bases.