from sympy import * x = symbols("x") y = Function("y") ode = Eq(2*x*tan(y(x)) + (-x**2*tan(y(x)) + x)*Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)
TypeError : NoneType object is not subscriptable
Python version: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] Sympy version 1.14.0
classify_ode(ode,func=y(x)) ('factorable', '1st_power_series', 'lie_group')