I am trying to solve the following problem.
If $ \mathcal{K}$ is a field and $a_1,a_2,\dots,a_n \in \mathcal{K}$. Prove that $(x_1-a_1,x_2-a_2,\dots,x_n-a_n)$ is a maximal ideal in $\mathcal{K}[x_1-a_1,x_2-a_2,\dots,x_n-a_n]$.
I know that if $R$ is a ring and $I$ and ideal in $R$, $R/I$ is a field if and only if $I$ is a maximal ideal.
So I need a surjective homomorphism $\phi \colon \mathcal{K}[x_1-a_1,x_2-a_2,\dots,x_n-a_n] \to \mathcal{K}$ such that $\text{ker}\phi =(x_1-a_1,x_2-a_2,\dots,x_n-a_n) $ so I can use the first theorem of homomorphism of rings and use the former resulst and I am done!
I think the evaluation is the homomorphism that I am looking for but I cant prove that indeed is a homomorphism... Can you help me with that please.
The evaluation is indeed the map that you are looking for. To show that it is a homomorphism is straightforward (especially additivity). Take two polynomials, add and multiply them, and then evaluate. Also $$(x_1-a_1,\dots ,x_n-a_n)\subseteq \text{Ker}(\phi)$$ should be obvious. The only kind of tricky part of this exercise is the other inclusion.