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

Set
y1=f, y2=f',y3=f'',
rewrite your system as
y1'=y2
y2'=y3
y3'=-0.5*y1*y3,
set oo to a sufficiently large value and use MATLAB's bvp4c to solve.
Best wishes
Torsten.