Step-by-step solved exercise: Polynomials and fields
In \(\displaystyle \mathbb{Q}[x]\), compute the monic greatest common divisor of \(\displaystyle x^{3} - x^{2} + x - 1\) and \(\displaystyle x^{3} + x^{2} + x + 1\).
Step by step with comments, a check and common mistakes.
Step-by-step solution
Factor the first by grouping: x³ − x² + x − 1 = (x − 1)(x² + 1).
\[\displaystyle x^3-x^2+x-1=(x-1)(x^2+1)\]
Factor the second: x³ + x² + x + 1 = (x + 1)(x² + 1).
\[\displaystyle x^3+x^2+x+1=(x+1)(x^2+1)\]
The common factor of largest degree is x² + 1, which is monic and irreducible over \(\displaystyle \mathbb{Q}\).
\[\displaystyle \gcd=x^2+1\]
Comment: Check: g − f = 2x² + 2 is also divisible by x² + 1.