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):
  1. ) x'=1-x*y'/a1
  2. ) 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=x
Your system becomes
dx1=x2
dx2=[a3 + a4*log(x2) + a5*log(x3)]*a6 + a7*x1
dx3=1-x3*x2/a1
Apply ode45 to resolve this system
%x1 represent y and x3 represent x