Isomorphisms between polynomial quotient rings on infinite base fields. Hello i'm having trouble understanding something.
I need to show that

Let $R$ be a ring.
$$R[x]/(x^2-1)\cong R[x]/(x^2-4).$$

but i'm pretty lost on how to proceed i've tried a map
$f:R[x]/(x^2-1)\to R[x]/(x^2-4)$
$f:(x-1)(x+1)\to(x-2)(x+2)$
but that's as far as i could get.
Thanks in advance!

Answer: Let $A:=\mathbb{R}[x]/(x^2-1), B:=\mathbb{R}[x]/(x^2-4), R:=\mathbb{R}[x]$.
Since $x^2-1=(x-1)(x+1):=IJ$ where $I=(x-1),J:=(x+1)$ it follows
$$A \cong R/I\oplus R/J \cong \mathbb{R}\oplus \mathbb{R}$$
and similarly
$$B \cong \mathbb{R}\oplus \mathbb{R}\text{  hence } A \cong B.$$
If a similar factorization holds in $R[x]$ you get the same result. You need $2$ to be a unit in $R$: If $I_1:=(x-2), J_1:=(x+2)$
it follows
$$  -4:=(x-2)-(x+2) \in I_1+J_1$$
hence $I_1,J_1$ are coprime and $I_1J_1=x^2-4$.  Hence
$$B \cong R[x]/I_1J_1 \cong R[x]/I_1\oplus R[x]/J_1 \cong R\oplus R.$$
Similarly
$$ -2=(x-1)-(x+1) \in I +J$$
hence $I+J=(1)$. Hence there is an isomorphism
$$R[x]/IJ \cong R[x]/I \oplus R[x]/J  \cong R \oplus R.$$
