20.2.1 problem Problem 1

Internal problem ID [3593]
Book : Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section : Chapter 1, First-Order Differential Equations. Section 1.4, Separable Differential Equations. page 43
Problem number : Problem 1
Date solved : Sunday, March 30, 2025 at 01:53:42 AM
CAS classification : [_separable]

\begin{align*} y^{\prime }&=2 x y \end{align*}

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