73.3.5 problem 4.3 (e)

Internal problem ID [14960]
Book : Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section : Chapter 4. SEPARABLE FIRST ORDER EQUATIONS. Additional exercises. page 90
Problem number : 4.3 (e)
Date solved : Thursday, March 13, 2025 at 05:24:03 AM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }+4 y&=8 \end{align*}

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