Problem: Check if $\mathbb{Q}[x]/(x-1)(x^2+4)\mathbb{Q}[x]$ is isomorphic to $\mathbb{Q}\times\mathbb{Q}[i]$. If not, find what is it isomorphic to.
My guess: they're isomorphic.
My attempt:
I define $\varphi: \mathbb{Q}[x] \to \mathbb{Q} \times \mathbb{Q}[i]$, $\varphi(w) = (w(1),w(2i))$. It is easy to show that $\varphi$ is a surjective homomorphism but i struggle with showing that $\ker \varphi = (x-1)(x^2+4)\mathbb{Q}[x]$.
I know it should be easy but find it hard to proceede. I'd be thankful for some hints.
It's clear that $\ker \varphi$ contains $(x-1)(x^2+4)$, so it contains the ideal generated by $(x-1)(x^2+4)$. Conversely let $P \in \ker \varphi$. Then since $\mathbb{Q}[x]$ is a Euclidean domain, there exist unique polynomials $Q,R \in \mathbb{Q}[x]$ such that $$P = (x-1) (x^2+4) Q + R,$$ with $\deg R < 3$. Now $P(1) = 0 = R(1)$ and $P(\pm 2i) = 0 = R(\pm 2i)$, hence $R$ has three distinct roots in $\mathbb{C}$ (here I used the fact that if $z \in \mathbb{C}$ is a root of some real polynomial, then so is $\bar z$). Being of degree less than three it can only be the zero polynomial. It follows that $(x-1) (x^2+4)$ divides $P$.