Let f be a real valued function on $\mathbb{R}$. If for all real $x$,it satisfies $$ f(x) + 3f(1-x) = 5$$ Then show that f is a constant function.
I tried it like this but not sure whether it is true or not.
$$ f(x) + 3f(1-x) = 5\tag 1$$
replace $x$ with $1-x$, $$f(1-x) + 3f(x) = 5\tag 2$$
Then solving (1) and (2) we get $f(x) = \frac{5}{4}$ for all $x\in \mathbb{R}$. Hence $f$ is a constant function.