What is the solution for $u(x)=x+\int_0^x (t-x)u(t)dt$ So I am studying for the GRE right now and came across the problem from one of the UCLA's workshops online. 
The problem is stated as,
Which of the following is the solution of
$u(x)=x+\int_0^x (t-x)u(t)dt$
(a) $\sin(x)$
(b) $x\cos(x)$
(c) $\ln(1+x)$
(d) $xe^{-x}$
(e) $xe^x$
The answer is (a). My intial appraoch was to take derivatives of both sides, apply FTC and then solve the DE. But my problem is that I am not sure how to take the derivative of the integral since it contains an $x$ term in it. Can someone work out the problem, or offer a hint? Thanks in advanced.

Hint : 
$$\int_0^x (t-x)u(t)\text{d}t = \int_0^x tu(t)\text{d}t-\int_0^x xu(t)\text{d}t= \int_0^x tu(t)\text{d}t-x\int_0^x u(t)\text{d}t $$
and then differentiate.
