78.1.19 problem 11.c

Internal problem ID [20945]
Book : A FIRST COURSE IN DIFFERENTIAL EQUATIONS FOR SCIENTISTS AND ENGINEERS. By Russell Herman. University of North Carolina Wilmington. LibreText. compiled on 06/09/2025
Section : Chapter 1, First order ODEs. Problems section 1.5
Problem number : 11.c
Date solved : Thursday, October 02, 2025 at 06:49:55 PM
CAS classification : [_separable]

\begin{align*} y^{\prime }+2 y x&=2 x y^{2} \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 14
ode:=diff(y(x),x)+2*x*y(x) = 2*x*y(x)^2; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {1}{1+{\mathrm e}^{x^{2}} c_1} \]
Mathematica. Time used: 0.157 (sec). Leaf size: 27
ode=D[y[x],x]+2*x*y[x]==2*x*y[x]^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {1}{1+e^{x^2+c_1}}\\ y(x)&\to 0\\ y(x)&\to 1 \end{align*}
Sympy. Time used: 0.228 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-2*x*y(x)**2 + 2*x*y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {1}{C_{1} e^{x^{2}} + 1} \]