70.4.10 problem 10

Internal problem ID [18691]
Book : Differential equations. An introduction to modern methods and applications. James Brannan, William E. Boyce. Third edition. Wiley 2015
Section : Chapter 2. First order differential equations. Section 2.6 (Exact equations and integrating factors). Problems at page 100
Problem number : 10
Date solved : Thursday, October 02, 2025 at 03:21:24 PM
CAS classification : [_linear]

\begin{align*} \frac {y}{x}+6 x +\left (\ln \left (x \right )-2\right ) y^{\prime }&=0 \end{align*}
Maple. Time used: 0.002 (sec). Leaf size: 18
ode:=y(x)/x+6*x+(-2+ln(x))*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {-3 x^{2}+c_1}{\ln \left (x \right )-2} \]
Mathematica. Time used: 0.082 (sec). Leaf size: 20
ode=(y[x]/x+6*x)+(Log[x]-2)*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {-3 x^2+c_1}{\log (x)-2} \end{align*}
Sympy. Time used: 0.189 (sec). Leaf size: 14
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(6*x + (log(x) - 2)*Derivative(y(x), x) + y(x)/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1} - 3 x^{2}}{\log {\left (x \right )} - 2} \]