Prove that $\mathbb{Q}[x]/\langle x^2-2\rangle$ is ring isomorphic to $$\mathbb{Q}[\sqrt 2]=\{a+b\sqrt 2\mid a,b\in\mathbb{Q}\}.$$
Attempt: I think I have to apply first isomorphism theorem here and I will consider the function $\phi: f(x)\rightarrow f(\sqrt 2)$ then the $\ker\phi$ will be $\langle x^2- 2\rangle$. But I am confused if am I choosing the right function and is $f(\sqrt 2)$ is in $\mathbb{Q}[\sqrt2]$?
Define a map $\psi:\Bbb{Q}(\sqrt{2})\to \Bbb{Q}[x]/<x^2-2>$ by $\psi(a+b\sqrt{2})=[a+bx]$ for any $a,b\in\Bbb{Q}$.
$\psi$ is homomorphism:
$\psi((a+b\sqrt{2})+(c+d\sqrt{2}))=\psi((a+c)+(b+d)\sqrt{2}))=[(a+c)+(b+d)x]=[a+bx]+[c+dx]=\psi(a+b\sqrt{2})+\psi(c+d\sqrt{2}$.
$\psi((a+b\sqrt{2})(c+d\sqrt{2})=\psi((ac+2bd)+(ad+bc)\sqrt{2}))=[(ac+2bd)+(ad+bc)x]$. and, $\psi((a+b\sqrt{2})\psi(c+d\sqrt{2})=[a+bx][c+dx]=[ac+adx+bcx+bdx^2]=[ac+(ad+bc)x+bdx^2]=[(ac+2bd)+(ad+bc)x]$.
Therefore, $\psi$ is homomorphism.
$\psi$ is injective:
Let, $\psi(a + b\sqrt{2}) = \psi(c + d\sqrt{2})$, then $[a + bx] = [c + dx]$. Since there is a unique polynomial of degree $1$ or less for each congruence class $\operatorname{mod} p(x)$. $\Rightarrow$ $a + bx = c + dx$ $\Rightarrow$ $ a = c$ and $b = d$. Hence $\psi$ is injective.
$\psi$ is surjective:
Let $y\in \Bbb{Q}[x]/<x^2-2>$ then $y=[l+mx]$ for some $l,m\in \Bbb{Q}$. Therefore $\psi(l+m\sqrt{2})=y=[l+mx]$.
$\Rightarrow$ $\psi$ is surjective. And hence $\psi$ is isomorphism. Thus $\Bbb{Q}(\sqrt{2})\cong \Bbb{Q}[x]/<x^2-2>$.
Alternatively, Note that $\Bbb{Q}[x]/<x^2-2>$ is a field because $p(x)=x^2-2$ is irreducible over $\Bbb{Q}$ therefore $<p(x)>$ is maximal ideal. and $\Bbb{Q}(\sqrt{2})$ is the smallest field containing both $\sqrt{2}$ and $\Bbb{Q}$. Define a map $\phi:\Bbb{Q}[x]/<x^2-2>\to \Bbb{Q}(\sqrt{2})$ such that $\phi(a(x)+<x^2-2>)=a(\sqrt{2})$. $\phi$ is injective ring homomorphism since $\phi$ is not the zero map. The way map defined it is clear that $\phi$ is surjective. It is easy to see that. $\Bbb{Q}(\sqrt{2})=\Bbb{Q}[\sqrt{2}]$.