I would like to solve a nonlinear third order differential equation using Python.
In my case it is :
d^3f/dx^3 = (1-f)/(f^3)
I wrote the following program, but I have an issue with the solver, so I don't know if the method that I used with scipy is correct.
from sympy.interactive import printing
printing.init_printing(use_latex=True)
from sympy import *
import sympy as sp
x = sp.symbols('x')
f = sp.Function('f')(x)
diffeq = Eq(f.diff(x,x,x),(1-f)/(f**3))
display(diffeq)
dsolve(diffeq,f)
I got this error :
NotImplementedError: solve: Cannot solve -(1 - f(x))/f(x)**3 + Derivative(f(x), (x, 3))
Could you help me please maybe to use a different solving strategy ?
Thank you