68.5.42 problem 49

Internal problem ID [17293]
Book : INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section : Chapter 2. First Order Equations. Exercises 2.3, page 49
Problem number : 49
Date solved : Thursday, October 02, 2025 at 02:01:02 PM
CAS classification : [[_linear, `class A`]]

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