12.2.2 problem 2

Internal problem ID [1538]
Book : Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section : Chapter 2, First order equations. Linear first order. Section 2.1 Page 41
Problem number : 2
Date solved : Saturday, March 29, 2025 at 10:58:06 PM
CAS classification : [_separable]

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

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