73.2.7 problem 3.4 g

Internal problem ID [14951]
Book : Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section : Chapter 3. Some basics about First order equations. Additional exercises. page 63
Problem number : 3.4 g
Date solved : Thursday, March 13, 2025 at 05:23:40 AM
CAS classification : [_separable]

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

Maple. Time used: 0.002 (sec). Leaf size: 11
ode:=(x-2)*diff(y(x),x) = 3+y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = -3+c_{1} \left (x -2\right ) \]
Mathematica. Time used: 0.026 (sec). Leaf size: 18
ode=(x-2)*D[y[x],x]==y[x]+3; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -3+c_1 (x-2) \\ y(x)\to -3 \\ \end{align*}
Sympy. Time used: 0.226 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((x - 2)*Derivative(y(x), x) - y(x) - 3,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} x - 2 C_{1} - 3 \]