Example 6 : Divide p(x) by g(x)