TITLE: Find all $f(x)$ if $f(1-x)=f(x)+1-2x$?
QUESTION [8 upvotes]: To find one solution I assumed that $f$ is even and rewrote this as $f(x-1)-f(x)+2x=1.$ By just thinking about a solution, I was able to conclude that $f(x)=x^2$ is a solution. However, I am sure that there are more solutions but I don't know how to find them.

REPLY [2 votes]: Here is a proof which finds all $\;f\;$ for which this equality holds, as the OP (long ago) asked.$%
\require{begingroup}
\begingroup
\newcommand{\calc}{\begin{align} \quad &}
\newcommand{\op}[1]{\\ #1 \quad & \quad \unicode{x201c}}
\newcommand{\hints}[1]{\mbox{#1} \\ \quad & \quad \phantom{\unicode{x201c}} }
\newcommand{\hint}[1]{\mbox{#1} \unicode{x201d} \\ \quad & }
\newcommand{\endcalc}{\end{align}}
\newcommand{\Ref}[1]{\text{(#1)}}
\newcommand{\then}{\Rightarrow}
\newcommand{\when}{\Leftarrow}
%$  We treat this as a problem to try and simplify the equality, and to try and reduce it to its essentials.
We calculate, for every $\;f \in \mathbb R \to \mathbb R\;$,
$$\calc
   \tag{0}
   \langle \forall x :: f(1-x) = f(x)+1-2x \rangle
\op{\tag{*}\equiv}\hint{arithmetic -- to introduce symmetry}
   \langle \forall x :: f(1-x)-(1-x) = f(x)-x \rangle
\op\equiv\hint{abbreviate $\;g(x) = f(x)-x\;$}
   \langle \forall x :: g(1-x) = g(x) \rangle
\op\equiv\hint{substitute $\;x := \tfrac 1 2 +x\;$ -- to introduce symmetry}
   \langle \forall x :: g(\tfrac 1 2 -x) = g(\tfrac 1 2 +x) \rangle
\op\equiv\hint{abbreviate $\;h(x) = g(x+ \tfrac 1 2)\;$}
   \langle \forall x :: h(-x) = h(x) \rangle
\op\equiv\hint{definition of even}
   h\text{ is even}
\endcalc$$
Therefore, if $\;h\;$ is an even function, then (and only then) $\;f(x) = g(x)+x = h(x-\tfrac 1 2)+x\;$ satisfies $\Ref{0}$.
One example of such an even function is $\;h(x) = ax^2 + c\;$, which gives $\;f(x) = ax^2 + (1-a)x + c + \tfrac a 4\;$, essentially lab bhattacharjee's answer.  And $\;f(x) = \cos(x- \tfrac 1 2) + x\;$ is another valid answer.
Note how the very first step $\Ref{*}$ is really the most creative one, and the others are more or less forced by the desire to find symmetry.
$%
\endgroup
%$