I've the following polynomial:
$$ a(x) = x^6 + x^5 + 2x^3 - 3x^2 +x -2 \in \mathbb{K}[x] $$
Set $\mathbb{K} = \mathbb{R}$.
A factorization of $a(x)$ is:
$$ a(x) = (x^2 + 1)^2(x-2)(x+1) $$
Now set $\mathbb{K} = \mathbb{Z}_{[5]}$.
If I'm asked to factorize $a(x)$ can I consider the factorization done in $\mathbb{R}$?
A factorization in a field $X$ is valid in a field $Y \subseteq X$?
EDIT: the right factorization of $a(x)$ in $\mathbb{R}$ is
$$ (x^2 + 1)^2(x+2)(x-1) $$
In fact, the factorisation over $\Bbb Q$ is given by $$ a(x)=(x^2+1)^2(x+2)(x-1). $$ This is also the factorisation over $\Bbb R$. Over $\Bbb F_5$ the Berlekamp algorithm gives $$ a(x)=(x + 4)(x + 3)^2(x + 2)^3 $$ This can also be seen from the factorisation over $\Bbb Z$ above, where $x^2+1=(x+2)(x+3)$ over $\Bbb F_5$.