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?
There is indeed an obvious choice for a bilinear map $$ h\colon R[x]\times M\to M[x] $$ where $$ h\biggl(\,\sum_{i=0}^k r_ix^i,m\biggr)=\sum_{i=0}^k r_imx^i $$
Now, let $f\colon R[x]\times M\to N$ be a bilinear map. We need to find $\phi\colon M[x]\to N$ such that $f=\phi\circ h$.
Define $$ \phi\biggl(\,\sum_{i=0}^k m_ix^i\biggr)= \sum_{i=0}^k f(x^i,m_i) $$ You should have no problem in proving it is $R$-linear, using bilinearity of $f$.
Next, $$ \phi\circ h(x^i,m)=\phi(mx^i)=f(x^i,m) $$ and use again bilinearity.