Show that the map $\phi : \mathbb{Z}[x] \rightarrow \mathbb{R}$ given by $\phi(f(x)) := f( \sqrt 2)$ is a ring homomorphism.
Find out the kernel of $\phi $
My attempt : For $1$ we have $\phi(f(x_1 + x_2)) := \phi(f(x_1) + f(x_2))=\phi(f(x_1)) + \phi((x_2))= f( \sqrt 2) + f( \sqrt 2) = 2 f( \sqrt 2)$
$\phi(f(x_1)(f(x_2)) :=\phi(f(x_1)).\phi((x_2)) =f( \sqrt 2)^2$
For $2$ . $\ker \phi = (x- \sqrt 2)(x+ \sqrt 2)= (x^2-2)$
Is my way of answer is correct or not ?
Your analysis is not correct. The elements of your ring are polynomials, not variables.
$\phi(f+g) = (f+g)(\sqrt 2)=f( \sqrt 2)+g(\sqrt 2) = \phi(f(x))+\phi(g(x))$
The analysis for multiplication tracks the analysis for addition:
$\phi(f\cdot g) = (f \cdot g)(\sqrt 2)=f( \sqrt 2) \cdot g(\sqrt 2) = \phi(f(x)) \cdot \phi(g(x))$
Finally, $f \in \ker(\phi) \iff \phi(f)=0 \iff f(\sqrt 2)=0 \iff (x^2-2) \mid f$ so $\ker(\phi) = (x^2-2)\Bbb Z[x]$.