Solve differential equation with SymPy

Viewed 3901

I have the following differential equation that I would like to solve with SymPy

enter image description here

This differential equation has the implicit solution (with h(0) = [0,1) and t = [0, inf) )

enter image description here

but SymPy gives

enter image description here

which other packages such as Maxima are able to find. With SymPy I am unable, however. Is there a way to do so? My code is

import sympy as sp
sp.init_printing(use_unicode=True)
h = sp.symbols('h', function=True)
t = sp.symbols('t')
eq = sp.Eq(sp.Derivative(h(t),t), (1 - h(t))**sp.Rational(4,3) / h(t))
sp.dsolve(eq)
1 Answers
Related