I need to solve an integral into an ordinary differential equation like this:
NDSolve[{y'[x] == x + NIntegrate[y[r], {r, 1,x}], y[0] == 1}, y, {x, 0, 1}]
Note that now the variable in the integrand is not constant. How can I solve it?
I need to solve an integral into an ordinary differential equation like this:
NDSolve[{y'[x] == x + NIntegrate[y[r], {r, 1,x}], y[0] == 1}, y, {x, 0, 1}]
Note that now the variable in the integrand is not constant. How can I solve it?
Comments
Post a Comment