Suppose we are given $R, S$ - rings with identity, and $\phi : R \to S$ a ring homomorphism such that $\phi(1_R) = 1_S$, and for $s_1,s_2,\cdots,s_n \in S$ we have $s_is_j = s_js_i$ for all $i,j$ and $\phi(r)s_i = s_i\phi(r)$ for all $r \in R$ for all $i$.
The text tells me that then there exists a unique homomorphism $\varphi : R[x_1,\cdots,x_n] \to S$ such that $\varphi|R = \phi$ and $\varphi(x_i) = s_i$.
How do I show go about proving it? Does this completely determine $R[x_1,\cdots,x_n]$? And how?
well, the morphism is defined on a generating set, i.e. $\varphi(\sum \alpha_{i,j} x_i^j):=\sum \phi(\alpha)_{i,j} s_i^j$ this is now clearly well defined by the definition of the polynomial algebra, respectively free algebra (if you allow multiindexes as $j$) and is precisely the morphism you want.
i.e. we just proved existence.
for uniqueness: assume that there are 2 morphisms $\varphi,\varphi'$ with that property and let $a \in R[x_1,...,x_n]$, then $a=\sum \alpha_{i,j} x_i^j)$ in particular by linearity: $$\varphi(a)=\varphi(\sum \alpha_{i,j} x_i^j)=\sum \varphi(\alpha_{i,j} x_i^j)=\sum \varphi(\alpha_{i,j})\varphi( x_i^j)=\\ \sum \phi(\alpha_{i,j}) s_i^j\\= \sum \varphi'(\alpha_{i,j})\varphi'( x_i^j)=\sum \varphi'(\alpha_{i,j} x_i^j)=\varphi'(\sum \alpha_{i,j} x_i^j)=\varphi'(a).$$ so since a was arbitrary $\varphi=\varphi'$ which proves uniqueness.