In my exercise session of commutative algebra I had the following problem: show that $R[X] \otimes_R M \cong M[X]$. There was a hint: show that $M[X]$ satisfies the universal property of tensor products. Here $R$ is a commutative ring with unity and $M$ is an $R$-module. This is my attempt:
I have defined a bilinear map $$h: R[X] \times M \to M[X]: (\sum_{i = 0}^{n}r_ix^i, m) \mapsto \sum_{i = 0}^{n}(r_im)x^i.$$ Let us now consider a bilinear map $f: R[X] \times M \to P$, where $P$ is any $R$- module. I want to construct a linear map $\phi: M[X] \to P$ such that $\phi \circ h = f$. If a can show that this $\phi$ is unique, then I am finished, since the universal property then gives that $M[X]$ is isomorphic to $R[X] \otimes_R M$. However, I have troubles defining the map $\phi$: I want to write something like $$\phi= M[X] \to P: m_ix^i \to f(x^i, m_i),$$ but how to show that this map is a morphism?