I let $M$ denote the free commutative monoid generated by some elements $x_1,\dots, x_n$. Suppose too that $R$ is a commutative ring. Then I can construct the free algebra of $M$ over $R$, denote it $R[M]$.
Recall that $R[M]$ is then the set of mappings $f\colon M\to R$ such that $f(m)\neq 0$ for only finitely many $m\in M$. Then $+$ and $\cdot$ are given by $(f+g)(m)=f(m)+g(m)$, $(fg)(m)=\sum_{pq=m}f(p)q(p)$, $0(m)=0$, and $1(1)=1$ and $1(m)=0$ if $m\neq 1$. Moreover, $R[M]$ has a subring isomorphic to $R$ by associating $r\in R$ with $r'\in R[M]$ such that $r'(1)=r$ and $r'(m)=0$ otherwise. It also has a submonoid of the multiplicative monoid isomorphic to $M$ by associating $m\in M$ with $m'\in R[M]$ given by $m'(m)=1$ and $m'(n)=0$ otherwise.
Viewing $M$ and $R$ as being in $R[M]$, I know that any element of $R[M]$ can be written as $\sum r_im_i$. So I'm curious, is $R[M]$ isomorphic to $R[x_1,\dots,x_n]$? To me it appears that the elements of the sets look more or less the same, as does the $+$ operation, but I'm not sure if they actually are isomorphic or not. Thanks for any explanation.