2.6.12.7 Sympy. Time used: 0.295 (sec). Leaf size: 10
from sympy import * 
u = symbols("u") 
v = Function("v") 
ode = Eq(2*u*v(u) - 2*u + Derivative(v(u), u),0) 
ics = {} 
dsolve(ode,func=v(u),ics=ics)
 
\begin{gather*} \begin {aligned} v{\left (u \right )} = C_{1} e^{- u^{2}} + 1 \end {aligned} \end{gather*}
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=v(u)) 
 
('factorable', 'separable', '1st_exact', '1st_linear', 'Bernoulli', 'almost_linear', '1st_power_series', 'lie_group', 'separable_Integral', '1st_exact_Integral', '1st_linear_Integral', 'Bernoulli_Integral', 'almost_linear_Integral')