MATLAB: Solving a non linear ODE with Matlab ode functions

higher degree differential equationnonlinearode

I need to solve a non linear ODE. I want to use one of the ODE matlab functions if possible. However the problem is that it is not possible for me to convert it to a first order differential equation. The differential equation that I want to solve contains terms of this type: (y")^2*x^2+2*y*y"+(y')^2. As you can see the higher exponential is in the higher order term of the equation. Any way to solve this type of equations?

Best Answer

Try using 'ode15i' which can use implicit differential equations. In your example you would presumably have the two components in your function handle:
(y'(2))^2*t^2+2*y(1)*y'(2)+(y(2))^2 = 0
y'(1)-y(2) = 0
Related Question