73.4.26 problem 5.3 (f)

Internal problem ID [15029]
Book : Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section : Chapter 5. LINEAR FIRST ORDER EQUATIONS. Additional exercises. page 103
Problem number : 5.3 (f)
Date solved : Thursday, March 13, 2025 at 05:27:54 AM
CAS classification : [_linear]

\begin{align*} \left (x^{2}+1\right ) y^{\prime }&=x \left (3+3 x^{2}-y\right ) \end{align*}

With initial conditions

\begin{align*} y \left (2\right )&=8 \end{align*}

Maple. Time used: 0.030 (sec). Leaf size: 21
ode:=(x^2+1)*diff(y(x),x) = x*(3+3*x^2-y(x)); 
ic:=y(2) = 8; 
dsolve([ode,ic],y(x), singsol=all);
 
\[ y = x^{2}+1+\frac {3 \sqrt {5}}{\sqrt {x^{2}+1}} \]
Mathematica. Time used: 0.041 (sec). Leaf size: 26
ode=(1+x^2)*D[y[x],x]==x*(3+3*x^2-y[x]); 
ic={y[2]==8}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to x^2+\frac {3 \sqrt {5}}{\sqrt {x^2+1}}+1 \]
Sympy. Time used: 0.461 (sec). Leaf size: 22
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*(3*x**2 - y(x) + 3) + (x**2 + 1)*Derivative(y(x), x),0) 
ics = {y(2): 8} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = x^{2} + 1 + \frac {3 \sqrt {5}}{\sqrt {x^{2} + 1}} \]