I'm new to Mathematica and I'm trying to use it to solve some equation like:
NDSolve[x'[t]+NIntegrate[x[tau],{tau,0,t}]==20,x,{t,0,10}]
But it keeps giving me some errors like:
tau = t is not a valid limit of integration.
The actual problem is much more complicated and bigger. I would like to prefer not to take derivative on both sides.
Can anyone help? Thank you all in advance!
NDSolvedoesn't solve integro-differential equations. Try taking the derivative of your equation and treating the differential equation as a second-order differential equation intau, perhaps. – march Aug 06 '15 at 19:59NIntegrateis a numerical integration routine. It needs its input to be explicitly a number; see this FAQ for more details on this point. – MarcoB Aug 06 '15 at 20:02NIntegratethat only evaluates when given a numerical value oft. I don't know how to make that work withinNDSolvethough. A few examples of integro - differential problems have cropped up on the site already; you might get some inspiration by browsing theintegral-equationtag, if you haven't yet. – MarcoB Aug 06 '15 at 20:11