I'm conscious this question has been already asked here:
Prove: $\int_{0}^{x} f(u)(x-u) du = \int_{0}^{x} \left(\int_{0}^{u} f(t)dt\right)du$
But I still have doubts. Let me explain. I did this in the right side:
$F(x)=\int_{0}^{x}\left ( \int_{0}^{u}f(s)ds \right )du=x\int_{0}^{x}f(u)du-\int_{0}^{x}uf(u)du$
$\implies F'(x)=xf(x)+\int_{0}^{x}f(u)du-xf(x)=\int_{0}^{x}f(u)du\tag1$
Then, by the left side we have:
$G(x)=\int_{0}^{x}\left ( \int_{0}^{u}f(s)ds \right )du=\int_{0}^{x}\mathfrak{F}(u)du $
with $\mathfrak{F}(u)=\int_{0}^{x}f(s)ds$
$\Rightarrow G'(x)=\mathfrak{F}(x)=\int_{0}^{x}f(s)ds\tag2$
So $(1)=(2)$, but that doesn't imply that $F(x)=G(x)$. An example of that are the functions $h(x)=3x^2$ and $k(x)=3x^2+5$, i.e., $h'(x)=k'(x)$ but $h(x)\neq k(x)$
So, how can I conclude that $F(x)=G(x)$?
In the other posts I saw that they argue that $(1)=(2)=0$ if $x=0$, and that's true, but I don't understand why they conclude with that. Can you help me?