Hi, i am struggling to get similar answer using ODE45 and dsolve. I dont know whats wrong? if any one can help, please.
-----------code using dsolve-------------------
Eq= diff(y,x,2)==2-2*Dy-8*x;
Sol = dsolve(Eq,conds)
Sol = -----------code using ODE45-------------------
[x,y]=ode45(@twofirstorder,[0 2],[1 -2]);
function dydx = twofirstorder(x,y)