Given : $$u(x)=x+2 \int_0^x e^{x-t}u(t)dt$$
Solve the Volterra Equation numerically using Trapezoidal Rule in $(0,5)$ choosing $n=8$ and compare with the exact values.
The Exact Solution I have found is : $$u(x)=x+\dfrac{2}{9}e^{3x}[1-e^{-3x}(3x+1)]$$
Numerically solving I have got :
Both look disastrous. So can anyone show me where it is wrong or if possible provide solution.