I'm reading Artin's section on the Adjunction of Elements, and I don't understand what he means by calling polynomial rings the "universal solution" to the "problem of adjoining a new element." He writes:
If $\alpha$ is an element of any ring extension $R'$ of $R$, then there is a unique map $R[x]\to R'$ which is the identity on $R$ and which carries $x$ to $\alpha$. The image of this map will be the subring $R[\alpha]$.
Could someone clarify the necessity of the polynomial ring? What is its relevance?
My vague understanding of this is as follows: suppose we want to adjoin $\sqrt{2}$ to the ring $\mathbb{Q}$. Since $\sqrt{2}$ does not formally exist yet, but we know it satisfies $x^2-2=0$ in $\mathbb{Q}[x]$, we can adjoin it by working with $\mathbb{Q}[x]$ instead.
Edit: $R$ is commutative
The extension $S$ of $R$ by an element $a$ is the smallest right, that contains $R$ and $a$. Notice that all elements of $R[a]$ are necessarily in all rings containing $R$ and $a$, and it is itself a ring. Therefore, $S=R[a]$.
For the "evaluation" map from $\operatorname{ev}_a:R[x]\to R[a]$ it is routine to check that sends $a_nx^n+a_{n-1}x^{n-1}...+a_0$ to $a_na^n+a_{n-1}a^{n-1}...+a_0$ is a ring homomorphism.
Since $S$ is the smallest extension of $R$ containing $a$, if $R'$ is another extension of $R$ containing $a$, then $S\subset R'$. Therefore, you have the same map $R[x]\to S\hookrightarrow R'$ obtained by composing $\operatorname{ev}_a$ with the inclusion $S=R[a]\hookrightarrow R'$.
In some cases, when $a$ satisfies some algebraic relation with coefficients in $R$, it will happen that $\operatorname{ev}_a$ is not injective, and sends some non-zero polynomials to the zero element of $R$. The set of all elements sent to zero by $\operatorname{ev}_a$ is an ideal of $R[x]$. If that ideal happens to be principal, then it is genrated by one polynomial $f(x)\in R[x]$.
In your example of $a=\sqrt{2}$ and $R=\mathbb{Q}$, it results $f(x)=x^2-2$.
Look at the example $x=\pi$ with the same $R$ for a case in which there is no such $f$.