I'm trying to solve the following problem:
Prove that $\mathbb{Q}[x]/(x^2+1)$ and $\mathbb{Q}[y]/(y^2+2y+2)$ are isomorphic.
First of all, I tried to construct homomorphism from $\mathbb{Q}[x]$ to $\mathbb{Q}[y]/(y^2+2y+2)$ with $\mathbb(x^2+1)$ as a kernel, and also the other way around, but without much success.
Then, I've seen the following comment (specifically the part where he proves that $\mathbb{Q}[x]/(x^2-1)$ is isomorphic to $\mathbb{Q}[x]/(x^2-2x)$) : https://math.stackexchange.com/a/57766/808138, and since $y^2+2y+2 = (y+1)^2+1$, i realized that the problems are similar, but there is a part that confuses me: "Since $x^2-2x = (x-1)^2-1$, the equivalence class of $x$ in $\mathbb{Q}[x]/(x^2-1)$ should behave like the equivalence class of $x−1$ in $\mathbb{Q}[x]/(x^2-2x)$". I see that if I define $f(a) = a^2-1$ then $f(a-1) = (a-1)^2-1 = a^2-2a$, but I don't really get why mentioned equivalence classes behave same in respected quotient rings.
EDIT: I rewrote $\mathbb{Q}[x]/(x^2+2x+2)$ as $\mathbb{Q}[y]/(y^2+2y+2)$, so things look more clear. Specifically, when I tried to construct the homomorphism mentioed in first paragraph, I was planning on using The First Isomorphism Theorem, but really didn't have any idea how to construct a useful homomorphism from polynomial ring to polynomial quotient ring. Maybe I am just inexperienced with these type of problems, so any more hints would be greatly appreciated.