We assume for and , for . Find some monic polynomial such that .
is the subspace generated by ; we assume this is a basis of the eight dimensional space . Multiplication by maps these vectors onto the following vectors:
Thus the matrix of this map with respect to the basis
is the transpose of
is a root of the characteristic polynomial of this matrix.
A=matrix(SR,[[0,1,0,0,0,0,0,0],[0,0,-1,0,0,-1,0,0],[0,0,0,1,0,0,0,0],[p,0,q,0,0,0,0,-1],[0,0,0,0,0,1,0,0],[0,r,0,0,0,s,-1,0],[0,0,0,0,0,0,0,1],[0,0,0,r,p,0,q,s]])
A.characteristic_polynomial()
This will give you
For we have: and by Gauß' lemma is irreducible over iff it's irreducible over . In order to prove irreducibility of you may utilize Eisenstein's criterion or irreducibility of over some for some. In particular for , i.e. , and :
To check irreducibility:
R=PolynomialRing(ZZ,'X')
X=R.gen()
P=X^8 + 6*X^6 + 13*X^4 - 12*X^2 + 4
P.is_irreducible()
P.factor()
which shows that is irreducible.