Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Polynomial Algebra > Polynomial Division >

PolynomialExtendedGCD

PolynomialExtendedGCD[poly1, poly2, x]
gives the extended GCD of poly1 and poly2 treated as univariate polynomials in x.
PolynomialExtendedGCD[poly1, poly2, x, Modulus->p]
gives the extended GCD over the integers mod prime p.
Compute the extended GCD:
The second part gives coefficients of a linear combination of polynomials that yields the GCD:
Compute the extended GCD:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
The second part gives coefficients of a linear combination of polynomials that yields the GCD:
In[3]:=
Click for copyable input
Out[3]=
Polynomials with numeric coefficients:
Polynomials with symbolic coefficients:
Relatively prime polynomials:
Extended GCD over the integers:
Extended GCD over the integers modulo 2:
Given polynomials a, b and c, find polynomials f and g such that a f+b gEqualc:
A solution exists if and only if c is divisible by d:
The extended GCD of f and g is {d, {r, s}}, such that d=GCD(f, g) and r f+s gEquald:
d is equal to PolynomialGCD[f, g] up to a factor not containing x:
r and s are uniquely determined by the following Exponent conditions:
Use Cancel or PolynomialRemainder to prove that d divides f and g:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team