68.1.24 problem 31

Internal problem ID [17091]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 1. Introduction to Differential Equations. Exercises 1.1, page 10
Problem number : 31
Date solved : Thursday, October 02, 2025 at 01:43:00 PM
CAS classification : [_linear]

\begin{align*} y^{\prime }&=-\frac {2 y}{x}-3 \end{align*}
Maple. Time used: 0.000 (sec). Leaf size: 13
ode:=diff(y(x),x) = -2*y(x)/x-3; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -x +\frac {c_1}{x^{2}} \]
Mathematica. Time used: 0.015 (sec). Leaf size: 15
ode=D[y[x],x]==-2*y[x]/x-3; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -x+\frac {c_1}{x^2} \end{align*}
Sympy. Time used: 0.088 (sec). Leaf size: 8
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), x) + 3 + 2*y(x)/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1}}{x^{2}} - x \]