import sympy as sp
sp.__version__
'1.6.2'
dsolve
in sympy
to solve differential equations¶from sympy.solvers.ode import dsolve
t = sp.var('t')
f = sp.Function('f')
f_ = sp.Derivative(f(t), t)
f_
f__ = sp.Derivative(f(t),t,t)
f__
ode = f__ - 4*f_ + 4
ode
dsolve(ode,f(t))
dsolve(ode,f(t), ics={f(0):sp.E, f(4):sp.E})