Let f(x) = x^2 + 1 and g(x) = x^3 + 1.

  • Context: MHB 
  • Thread starter Thread starter toni07
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around finding the greatest common divisor (gcd) of two polynomials, f(x) = x^2 + 1 and g(x) = x^3 + 1, over different fields: the rational numbers (Q) and the finite field F_2. Participants are tasked with computing the gcd and expressing it as a linear combination of the two polynomials.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants computed the gcd(f(x), g(x)) to be 2 over Q, but expressed confusion about finding the polynomials a(x) and b(x) such that h(x) = a(x)f(x) + b(x)g(x).
  • Others suggested using the Euclidean algorithm to find the gcd and the coefficients a(x) and b(x).
  • One participant pointed out that stating "the gcd is 2" can be misleading since gcd is determined up to a unit factor in Q, emphasizing that the gcd is of degree 0 and non-zero.
  • In F_2, it was noted that x^2 + 1 splits completely and that x + 1 is the gcd, with a suggestion to show that x^2 + 1 does not divide x^3 + 1.
  • Several participants discussed the steps of the extended Euclidean algorithm, with one providing a detailed breakdown of the calculations leading to the gcd and the coefficients.
  • There was a mention of the importance of taking coefficients mod 2 in the context of F_2.
  • Some participants expressed that the method to find a(x) and b(x) was straightforward but required careful attention to the calculations.

Areas of Agreement / Disagreement

Participants generally agree on the use of the Euclidean algorithm to find the gcd and the coefficients. However, there is disagreement regarding the interpretation of the gcd in Q, with some asserting that it is misleading to claim it is 2 without acknowledging the unit factor issue. The discussion about the results in F_2 also highlights differing perspectives on the nature of the gcd.

Contextual Notes

Limitations include the dependence on the definitions of gcd in different fields and the unresolved nature of the calculations for a(x) and b(x) in both Q and F_2.

toni07
Messages
24
Reaction score
0
a) Over the field Q, compute h(x) = gcd(f(x), g(x)), and fi nd polynomials a(x) and b(x) such that h(x) = a(x)f(x) + b(x)g(x).
(b) Same question over the fi eld F_2 = {0, 1}.

I already computed the gcd(f(x), g(x)) to be 2, but I don't really understand how I'm supposed to find a(x) and b(x), and the difference the result is supposed to have when compared with result of part b.
 
Physics news on Phys.org
crypt50 said:
I already computed the gcd(f(x), g(x)) to be 2, but I don't really understand how I'm supposed to find a(x) and b(x), and the difference the result is supposed to have when compared with result of part b.

Use the Euclidean algorithm. Perhaps this thread helps:

http://mathhelpboards.com/linear-abstract-algebra-14/field-extensions-basic-theory-6565.html#post29923
 
Fernando Revilla said:
Use the Euclidean algorithm. Perhaps this thread helps:

http://mathhelpboards.com/linear-abstract-algebra-14/field-extensions-basic-theory-6565.html#post29923

I already used the Euclidean algorithm to get the gcd which is 2, but I need help with the rest of the question.
 
crypt50 said:
I already used the Euclidean algorithm to get the gcd which is 2, but I need help with the rest of the question.

The extended Euclidean algorithm (for $\mathbb Q[x]$) also provides the factors:

\begin{array}{rcrcrl}
1 \cdot (x^3 + 1) &+& 0 \cdot (x^2 + 1) &=& x^3 + 1 \\
0 \cdot (x^3 + 1) &+& 1 \cdot (x^2 + 1) &=& x^2 + 1 & \text{times (-x) and add to previous} \\
\hline \\
1 \cdot (x^3 + 1) &+& (-x) \cdot (x^2 + 1) &=& -x + 1 & \text{times (x) and add to previous} \\
x \cdot (x^3 + 1) &+& (-x^2 + 1) \cdot (x^2 + 1) &=& x + 1 & \text{times (1) and add to previous} \\
(x+1)\cdot (x^3 + 1) &+& (-x^2 - x + 1) \cdot (x^2 + 1) &=& 2 & \text{divide by 2} \\
\frac 12(x+1)\cdot (x^3 + 1) &+&\frac 12 (-x^2 - x + 1) \cdot (x^2 + 1) &=& 1
\end{array}
$\blacksquare$
 
Last edited:
I think it's misleading to say "the gcd is 2", since any gcd is only determined up to a unit factor. In $\Bbb Q$, 2 is a unit, so we can claim just as easily that the gcd is 1, or 5. The important thing is that the gcd is of degree 0, so in particular is non-zero.

Over the field $F_2$, things are quite a bit different. For example, in $F_2$, we have that $x^2 + 1$ splits completely as:

$x^2 + 1 = (x + 1)(x + 1)$.

It should also be clear that in $F_2$ we have:

$x^3 + 1 = (x + 1)(x^2 + x + 1)$ where both of these factors are irreducible.

To show that $x + 1$ is the gcd (I use "the" here, because $F_2$ only HAS one unit, 1), it suffices to show $x^2 + 1$ does not divide $x^3 + 1$. I leave it to you to devise $a(x),b(x)$ a little algebraic tinkering should show you the proper polynomials to pick.
 
Last edited:
Deveno said:
I think it's misleading to say "the gcd is 2", since any gcd is only determined up to a unit factor. In $\Bbb Q$, 2 is a unit, so we can claim just as easily that the gcd is 1, or 5. The important thing is that the gcd is of degree 0, so in particular is non-zero.

Over the field $F_2$, things are quite a bit different. For example, in $F_2$, we have that $x^2 + 1$ splits completely as:

$x^2 + 1 = (x + 1)(x + 1)$.

It should also be clear that in $F_2$ we have:

$x^3 + 1 = (x + 1)(x^2 + x + 1)$ where both of these factors are irreducible.

To show that $x + 1$ is the gcd (I use "the" here, because $F_2$ only HAS one unit, 1), it suffices to show $x^2 + 1$ does not divide $x^3 + 1$. I leave it to you to devise $a(x),b(x)$ a little algebraic tinkering should show you the proper polynomials to pick.

My main problem is finding a(x), and b(x), and I still don't know how.
 
crypt50 said:
My main problem is finding a(x), and b(x), and I still don't know how.

You can read it off from the extended euclidean algorithm I showed.
Take each coefficient mod 2.
Then the algorithm stops a couple of lines earlier, where the value 2 was found, which is actually 0 (mod 2).
The line before that line shows the gcd, a(x), and b(x).
 
Yes, that works, and is the "rote" way to find it (no real thinking is required).

For example, we first divide $x^3 + 1$ by $x^2 + 1$ obtaining:

$x^3 + 1 = x(x^2 + 1) + x + 1$ (step one)

$x^2 + 1 = (x + 1)(x + 1) + 0$ (step two)

as this has a remainder of 0, we "back up one step" and find the gcd is $x + 1$:

$x + 1 = x^3 + 1 - x(x^2 + 1) = x^3 + 1 + x(x^2 + 1)$

(because in $F_2, 1 = -1$), which tells us that $a(x) = x, b(x) = 1$.

As I remarked earlier, though, just by "playing around" one quickly discovers that:

$x(x^2 + 1) + (1)(x^3 + 1) = x^3 + x + x^3 + 1 = 2x^3 + x + 1 = x + 1$.
 
Last edited:

Similar threads

Replies
48
Views
5K
  • · Replies 26 ·
Replies
26
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 16 ·
Replies
16
Views
4K