73.4.22 problem 5.3 (b)

Internal problem ID [15025]
Book : Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section : Chapter 5. LINEAR FIRST ORDER EQUATIONS. Additional exercises. page 103
Problem number : 5.3 (b)
Date solved : Thursday, March 13, 2025 at 05:27:44 AM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }-3 y&=6 \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=-2 \end{align*}

Maple. Time used: 0.006 (sec). Leaf size: 5
ode:=diff(y(x),x)-3*y(x) = 6; 
ic:=y(0) = -2; 
dsolve([ode,ic],y(x), singsol=all);
 
\[ y = -2 \]
Mathematica. Time used: 0.001 (sec). Leaf size: 6
ode=D[y[x],x]-3*y[x]==6; 
ic={y[0]==-2}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -2 \]
Sympy. Time used: 0.140 (sec). Leaf size: 5
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-3*y(x) + Derivative(y(x), x) - 6,0) 
ics = {y(0): -2} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = -2 \]