I want solve a differential equation for varying parameter and then I wish to create a list which contains the parameter and corresponding value of differential equation. So that I can make a List Density plot.
differential equation is
f = y'[x] == a*Cos[x] + b*Sin[x];
Table[{a,b,NDSolve[{f,y[0]==1},y,{x,1,10}]},{a,1,5},{b,1,5}]
I want to have a list with parameter and its corresponding differential equation solution, like {{a,b,value},{a',b',value},{}}. So I can use ListDensity Plot . Any suggestions are welcome
a,b
and???
ory[a,b][x]
? $\endgroup$