I was doing a calculus problem and got to this point where I neededed to obtain $f(x)$ for later integration. $f(x)$ is continuous and satisfies the equation $xf(x) = x^4 + 2x^2 + C,$ for some constant $C$ and for all $x \in \mathbb{R}$. Here's my argument:
Since the equation holds for all $x \in \mathbb{R},$ it must hold for $x = 0 \implies C = 0 \implies xf(x) = x^4 + 2x^2.$
If $x \neq 0,$ $f(x) = x^3 + 2x = g(x)$
For $f(x)$ to be continuous at $x = 0$, $f(0) = lim_{x\to0} f(x) = 0^3 + 2.0 = 0 = g(0)$
$\implies f(x) = g(x) = x^3 + 2x, \forall x \in \mathbb{R}.$
I'm not sure if I was overthinking here, but I found this argument fairly bulky. Please advise! Thank you.
https://math.stackexchange.com/questions/1104782/integral-of-thomaes-function
– nickalh Apr 13 '24 at 16:19