73.7.35 problem 35

Internal problem ID [15114]
Book : Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section : Chapter 8. Review exercises for part of part II. page 143
Problem number : 35
Date solved : Thursday, March 13, 2025 at 05:40:43 AM
CAS classification : [_linear]

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

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