I have to find solution of followong volterra equation
$y(x)= x - \int_{0}^{x}(x-t) y(t) dt$ with $y(0) = 0$.
My attempt:
I differentiated the above and got
$y^\prime = 1 - \int_{0}^{x} y(t) dt \tag 1$
Again differentiating I get
$y^{\prime \prime} = 0 - y(x)$. $~~~~~$Now we get its solution as :
$y = c_1 \cos x +c_2 \sin x$ and using the condition $y(0) = 0$ we get
$y = c_2 \sin x$. Now when we differentiate this $y$ and compare with equation (1) at $x = 0$, we get $c_2 = 1$ and this gives $y = \sin x $ as the answer. Is my solution correct? Kindly rectify if I am wrong. Thanks.