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 = ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1727826/image.png)
-----------code using ODE45-------------------
[x,y]=ode45(@twofirstorder,[0 2],[1 -2]);
function dydx = twofirstorder(x,y)