MATLAB: 3rd order non linear differential equation differential equations 2f'''+f.f''=0 The boundary conditions are given as f(0)=r, f'(0)=0, f'(∞)=1 , where r is a constant . How can I solve this differential equation using Matlab or Mathematica ?? Best Answer Sety1=f, y2=f',y3=f'',rewrite your system asy1'=y2y2'=y3y3'=-0.5*y1*y3,set oo to a sufficiently large value and use MATLAB's bvp4c to solve.Best wishesTorsten. Related SolutionsMATLAB: Help in using bvp4c second order ODE. If the above code works (for y^2), why not just taking the square root of the solution to get y ?Best wishesTorsten. MATLAB: I’m trying to solve a fourth order ordinary differential equation using the bvp4c function. However, I am getting a few errors in the code. function main options = bvpset('stats','off', 'RelTol', 1e-6); solinit = bvpinit(linspace(0,1,500),[1,0,0,0,0,0]); sol = bvp4c (@OdeBVP, @OdeBC, solinit, options); plot (sol.x, sol.y(1,:));end% Define ODEfunction f = OdeBVP(x,y) f=[y(2);y(3);y(4);5*(y(1)*y(4)+4*y(5)*y(6));y(6);-5*(y(2)*y(5)-y(1)*y(6))];end% Define Boundary conditionsfunction res = OdeBC (ya,yb) res = [ya(5)-0.5;yb(5)-1.0;ya(1);ya(2);yb(1);yb(2)]end Related QuestionHow do i correct this error in command bvp4cThird Order Coupled ODE’sHow to draw Fig. 4BVP4C: Error: Unable to solve the collocation equations — a singular Jacobian encountered
Best Answer