MATLAB: Second order differential eq. solution ode45 i have 2 eq. i am trying to find a solution for x,y,y',y'' without any success. the derivative with respect to t (' = d/dt): ) x'=1-x*y'/a1 ) y''=[a3 + a4*log(y') + a5*log(x)]*a6 + a7*y ode is not working. any suggestions? thanks! Best Answer You can transform your equation like:%x1=y%x2=dy%x3=xYour system becomesdx1=x2dx2=[a3 + a4*log(x2) + a5*log(x3)]*a6 + a7*x1dx3=1-x3*x2/a1Apply ode45 to resolve this system%x1 represent y and x3 represent x Related SolutionsMATLAB: How to draw the graph of three species ratio-dependent predator prey model More precise equations after non-dimensionlisation are dX1dT= (X1.*(1-m1.*X1)-A1.*X1.*X2-C1.*X1.*Y./(Y+X1)); dX2dT=(K.*X2.*(1-A2.*X2)-B.*X1.*X2-C2.*X2.*Y./(Y+X2)); dYdT=(-D.*Y+B1.*X2.*Y./(Y+X2)+B2.*X2.*Y./(Y+X1)); MATLAB: Coupled Second order differential eq. solution %Supposex1=xx2=x'x3=y%we get the systemdx1=x2dx2=x2/a*(f/c - b*(1-x2*x3/d)/x3) % You have to check your brackets dx3=1-x2*x3/d Related QuestionSolve many independent equation in a runDifferential equation with mixed linear and log derivatives – proper settingHow to solve system of 3 differential equationsHow i can solve the infinit loopIsqnonlin command: not enough input parameters errorHow to animate two functions at the same time
Best Answer