Let $R$ be an integral domain, $K$ its field of fractions and $L/K$ a finite field extension. Let $b \in L$ such that its minimal polynomial $f$ is in $R[X]$. I want to show that $R[X]/(f)R[X]$ isomorphic to $R[b]$ as rings.
Note that $(f)R[X]$ denotes the ideal generated by $f$ in $R[X]$.
My ideas: Let be $i: R[X] \to K[X], p \mapsto p$ the canonical inclusion and the K-algebra homomorphism $\phi: K[X]\to K[b]$ defined by setting $X=b$. Obviously we have $\def\Im{\operatorname{Im}}\Im\phi \circ i = R[b]$, as well as $(f)R[X] \subseteq (f)K[X]$ and $K[b] \cong K[X]/(f)K[X]$. Moreover $(f)R[X] \subseteq\ker$ $\phi \circ i$.
It might happen that $fg \in R[X]$, where $g \in K[X]$, but $g \notin R[X]$ (i.e., $g$ has fractions as coefficients). This would imply that $fg \notin (f)R[X]$ and so the conclusion cannot be deduced. Can this happen?
You should get your notation straight. I assume $f=P$ and $a=b$.
The key is that $f$ is monic. Thus division with remainder works in $R[X]$. If $g(b)=0$, we can write $g = hf+r$ with $r \in R[X]$ being of lower degree than $f$. On the other hand, we obtain $r(b)=0$, which is a contradiction to the minimality of $f$, hence shows $r=0$ and thus $g \in (f)$. So $(f)$ is indeed the kernel.