78.1.21 problem 2 (g)

Internal problem ID [18005]
Book : DIFFERENTIAL EQUATIONS WITH APPLICATIONS AND HISTORICAL NOTES by George F. Simmons. 3rd edition. 2017. CRC press, Boca Raton FL.
Section : Chapter 1. The Nature of Differential Equations. Separable Equations. Section 2. Problems at page 9
Problem number : 2 (g)
Date solved : Monday, March 31, 2025 at 04:56:13 PM
CAS classification : [_quadrature]

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

Maple. Time used: 0.001 (sec). Leaf size: 39
ode:=(x^3+1)*diff(y(x),x) = x; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -\frac {\ln \left (x +1\right )}{3}+\frac {\ln \left (x^{2}-x +1\right )}{6}+\frac {\sqrt {3}\, \arctan \left (\frac {\left (2 x -1\right ) \sqrt {3}}{3}\right )}{3}+c_1 \]
Mathematica. Time used: 0.009 (sec). Leaf size: 48
ode=(1+x^3)*D[y[x],x]==x; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {1}{6} \left (2 \sqrt {3} \arctan \left (\frac {2 x-1}{\sqrt {3}}\right )+\log \left (x^2-x+1\right )-2 \log (x+1)+6 c_1\right ) \]
Sympy. Time used: 0.220 (sec). Leaf size: 41
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x + (x**3 + 1)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} - \frac {\log {\left (x + 1 \right )}}{3} + \frac {\log {\left (x^{2} - x + 1 \right )}}{6} + \frac {\sqrt {3} \operatorname {atan}{\left (\frac {\sqrt {3} \left (2 x - 1\right )}{3} \right )}}{3} \]