Consider the functional equation $$x \, f'(x) + a \, f(-x) = x.$$ It can be quickly determined that for $a = 0$ that $f(x) = x + c_{0}$ which yields a class of lines. When $a \neq 0$ an expansion of the form $$f(x) = \sum_{n=0}^{\infty} \alpha_{n} \, x^{n}$$ leads to $$f(x) = \frac{x}{1-a}.$$ This solution is not valid when $a=1$.
The question of this problem is: What are some methods to determine the solution of the functional equation $$x \, f'(x) + f(-x) = x \hspace{5mm}? $$
This isn't general but you can rule out polynomial solutions apart from those that you found.
Let $P(x) = \sum c_j x^j$. Then $x P'(x) = \sum j c_j x^j$ and $a P(-x) = \sum a c_j (-1)^j x^j$.
Then the requirement $x P'(x) + a f(-x) = x$ gives the requirement $j c_j + ac_j (-1)^j = 1$ for $j = 1$ and $j c_j + ac_j (-1)^j = 0$ otherwise.
Solving for $j = 0$ gives $c_0$ in general. Solving for $j = 1$ gives $c_1 = \frac{1}{1-a}$. For the remaining $j$, we require either $c_j = 0$ or $j = -a(-1)^j$. Since this must hold for all $j$, we must have $c_j = 0$.
EDIT: Sorry, didn't notice your question at the end was slightly different.
Note that $f$ can not be analytic. If it is, then the $x$ term in the series representation of $x f'(x) + f(-x)$ is $f'(0) - f'(0) = 0$. But we must have $x f'(x) + f(-x) = x$.
I can glean very little information about this function, apart from $f(0) =0$. If the derivative is continuous at $0$ we have
$$f'(0) = \lim_{h \to 0} \frac{f(h) - f(-h)}{2h} = \lim_{h \to 0} \frac{-h(1-f'(-h)) + h(1-f'(h))}{2h} = \lim_{h \to 0} \frac{1}{2}(f'(-h)-f'(h))-1$$
so that $f'(0) = -1$. I'll update as I find a little more.