Sunday, 10 February 2019

elementary number theory - Finding inverse of polynomial in a field



I'm having trouble with the procedure to find an inverse of a polynomial in a field. For example, take:





In Z3[x]m(x), where m(x)=x3+2x+1, find the inverse of x2+1.




My understanding is that one needs to use the (Extended?) Euclidean Algorithm and Bezout's Identity. Here's what I currently have:



Proceeding with Euclid's algorithm:



x3+2x+1=(x2+1)(x)+(x+1)x2+1=(x+1)(2+x)+2



We stop here because 2 is invertible in Z3[x]. We rewrite it using a congruence:



(x+1)(2+x)2mod(x2+1)



I don't understand the high level concepts sufficiently well and I'm lost from here. Thoughts?



Wikipedia has a page on this we a decent explanation, but it's still not clear in my mind.




Note that this question has almost the same title, but it's a level of abstraction higher. It doesn't help me, as I don't understand the basic concepts.



Thanks.


Answer



Write f:=x3+2x+1 and g:=x2+1. We want to find the inverse of g in the field F3[x]/(f) (I prefer to write F3 instead of Z3 to avoid confusion with the 3-adic integers), i.e. we are looking for a polynomial h such that gh1(modf), or equivalently gh+kf=1 for some kF3[x]. The Euclidean algorithm can be used to find h and k:
f=xg+(x+1)g=(x+2)(x+1)+2(x+1)=(2x)2+1

Working backwards, we find
1=(x+1)(2x)2=(x+1)(2x)(g(x+2)(x+1))=(2x2+x+1)(x+1)(2x)g=(2x2+x+1)(fxg)(2x)g=(2x2+x+1)f(x3+2x2)g=(2x2+x+1)f(2x3+x2)g=(2x2+x+1)f+(x3+2x2)g.

So, the inverse of g modulo f is h=x3+2x2(modf)=2x2+x+2(modf).


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...