81.4.12 problem 5-13

Internal problem ID [21526]
Book : The Differential Equations Problem Solver. VOL. I. M. Fogiel director. REA, NY. 1978. ISBN 78-63609
Section : Chapter 5. Integrating factors. Page 72.
Problem number : 5-13
Date solved : Thursday, October 02, 2025 at 07:46:50 PM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }-3 y&=6 \end{align*}
Maple. Time used: 0.001 (sec). Leaf size: 12
ode:=diff(y(x),x)-3*y(x) = 6; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -2+{\mathrm e}^{3 x} c_1 \]
Mathematica. Time used: 0.019 (sec). Leaf size: 20
ode=D[y[x],x]-3*y[x]==6; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -2+c_1 e^{3 x}\\ y(x)&\to -2 \end{align*}
Sympy. Time used: 0.069 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-3*y(x) + Derivative(y(x), x) - 6,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{3 x} - 2 \]