73.1.3 problem 2.2 (c)

Internal problem ID [14902]
Book : Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section : Chapter 2. Integration and differential equations. Additional exercises. page 32
Problem number : 2.2 (c)
Date solved : Thursday, March 13, 2025 at 05:19:43 AM
CAS classification : [[_linear, `class A`]]

\begin{align*} y^{\prime }+4 y&={\mathrm e}^{2 x} \end{align*}

Maple. Time used: 0.002 (sec). Leaf size: 18
ode:=diff(y(x),x)+4*y(x) = exp(2*x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {\left ({\mathrm e}^{6 x}+6 c_{1} \right ) {\mathrm e}^{-4 x}}{6} \]
Mathematica. Time used: 0.047 (sec). Leaf size: 23
ode=D[y[x],x]+4*y[x]==Exp[2*x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {e^{2 x}}{6}+c_1 e^{-4 x} \]
Sympy. Time used: 0.134 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(4*y(x) - exp(2*x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{- 4 x} + \frac {e^{2 x}}{6} \]