9.6.5 problem 5

Internal problem ID [2962]
Book : Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section : Exercise 10, page 41
Problem number : 5
Date solved : Tuesday, September 30, 2025 at 06:12:43 AM
CAS classification : [[_linear, `class A`]]

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