TITLE: Can every real function be represented as two shifted even functions?
QUESTION [11 upvotes]: I saw the theorem that every function can be represented as the sum of and even and odd function, and this made me wonder: can every function from the reals to the reals, defined on all the reals, be represented as the sum of two functions that are each symmetric about (possibly distinct) vertical axes of symmetry? 
This seems false to me, but it is harder than I expected to find a counterexample. For example, when trying to decompose f(x)=x this way, one can easily see that if our functions are a(x) and b(x), and we can translate and stretch so that we need to solve the functional equations:
$a(x)+b(x)=x$
$a(-x)=a(x)$
$b(x)=b(1-x)$
but I do not see an obvious contradiction. 
Is such a decomposition always possible?

REPLY [2 votes]: Here is a very simple-minded answer for the function $f(x)=x$ mentioned in the post.
Let $a(x)=x^2+1/4$ and let $b(x)=-(x-1/2)^2$.  The first function is symmetric about $x=0$, and the second about $x=1/2$.
Or more symmetrically let $a(x)=(x+1)^2/4$ and $b(x)=-(x-1)^2/4$.
The idea can be readily extended to arbitrary polynomials. Given a polynomial $P(x)$ with real coefficients, one can produce explicit polynomials  $a(x)$, $b(x)$ symmetric about $0$ and $1$ respectively such that $a(x)+b(x)$ is identically equal to $P(x)$.
{"set_name": "stack_exchange", "score": 11, "question_id": 34628}