Is "polynomials in $x$" a monad?

The construction of polynomials $R \mapsto R[x]$ gives a functor $P: \mathbf{Ring} \to \mathbf{Ring}$ on the category of possibly noncommutative rings. Choosing a ring $R$ for the moment, there is a nice homomorphism $R \to P(R)$ which embeds in the obvious way, taking $r$ to the constant polynomial $r \cdot 1$. There also seems to be a homomorphism $P(P(R)) \to P(R)$: given a polynomial in $x$ with coefficients in $R[x]$, just do the multiplication and addition to get a polynomial with coefficients in $R$.

This sounds suspiciously like a monad on $\mathbf{Ring}$. I think that the above maps are in fact natural transformations $\eta: 1_{\mathbf{Ring}} \to P$ and $\mu: P^2 \to P$, and that $\mu \circ P \eta = \mu \circ \eta P = 1_P$ and $\mu \circ P \mu = \mu \circ \mu P$.

Is this right? And if so, what have people done with this idea? For example, I see that there are things called polynomial monads, but it's not clear how they might be related.


Yes, this is a monad. Much more generally, if $\mathcal{C}$ is a monoidal category and $M$ is a monoid object in $\mathcal{C}$, then the functor $P(R)=M\otimes R$ is a monad using the monoid structure of $M$. In this case, $\mathcal{C}=\mathbf{Ring}$, the monoidal structure is $\otimes_\mathbb{Z}$, and $M=\mathbb{Z}[x]$ (note that a monoid object in $\mathbf{Ring}$ is the same thing as a commutative ring).

I don't know of any particular applications of this monad. An algebra over this monad is just a $\mathbb{Z}[x]$-algebra, or equivalently a ring $R$ together with a chosen central element $x\in Z(R)$ (the image of $x$ under the structure map $R[x]\to R$). I'm not familiar with polynomial monads, but from reading a little on nlab they seem to be totally unrelated.