Given $\displaystyle u(x)=x-\int_0^x(x-t)(u(t))\mathrm dt$
Here is my attempt - taking derivative both sides w.r.t. $x$ we find $$\frac{\mathrm du}{\mathrm dx}=1-\frac{\mathrm d}{\mathrm dx}\left(\int_0^x(x-t)u(t)\mathrm dt\right)$$ which is equal to $\frac{\mathrm du}{\mathrm dx}=1$ then $u=x+c$ but this is incorrect. Please solve it. Thank you
$$u(x)=x-\int _0^x(x-t) u(t)dt$$ Taking Laplace Transfrom on both sides of the equation:
$$\mathcal{L}_x[u(x)](s)=\frac{1}{s^2}-\frac{\mathcal{L}_x[u(x)](s)}{s^2}$$
solving for: $\mathcal{L}_x[u(x)](s)$ We have:
$$\mathcal{L}_x[u(x)](s)=\frac{1}{s^2+1}$$
inverse:
$$u(x)=\mathcal{L}_s^{-1}\left[\frac{1}{1+s^2}\right](x)=\sin (x)$$
EDITED:
Note: The integral
is the convolution of the functions $x$ and $u(t)$ and we used the fact: The same example:
A similar example on YouTube: