All functions $f(x):\mathbb{R}\to\mathbb{R}$ can be decomposed into an even and an odd part $f(x)=E(x)+O(x)$.
The proof I see here, and on Wikipedia requires $2$ to have an inverse, however I want to know if this property is true of functions in a ring.
For a ring $R$ for every function $f(x):R\to R$, can I find even and odd functions $E(x)$ and $O(x)$ such that $f(x)=E(x)+O(x)$?
Using a similar method to the ordinary proof I can find that $2E(x)$ and $2O(x)$ are defined uniquely by $f$, but this only shows that $2f$ has a decomposition into an even and an odd part. Because $2$ does not necessarily have an inverse, I'm not certain how to solve this.
I think that a decomposition seems possible, but it would not necessarily be unique?