49.21.1 problem 1(a)

Internal problem ID [7731]
Book : An introduction to Ordinary Differential Equations. Earl A. Coddington. Dover. NY 1961
Section : Chapter 5. Existence and uniqueness of solutions to first order equations. Page 190
Problem number : 1(a)
Date solved : Wednesday, March 05, 2025 at 04:51:34 AM
CAS classification : [_separable]

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

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