82.4.4 problem 28-4

Internal problem ID [21822]
Book : The Differential Equations Problem Solver. VOL. II. M. Fogiel director. REA, NY. 1978. ISBN 78-63609
Section : Chapter 28. Laplace transforms. Page 850
Problem number : 28-4
Date solved : Thursday, October 02, 2025 at 08:02:36 PM
CAS classification : [[_linear, `class A`]]

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

Using Laplace method With initial conditions

\begin{align*} y \left (0\right )&=1 \\ \end{align*}
Maple. Time used: 0.037 (sec). Leaf size: 13
ode:=diff(y(t),t)+y(t) = t; 
ic:=[y(0) = 1]; 
dsolve([ode,op(ic)],y(t),method='laplace');
 
\[ y = t -1+2 \,{\mathrm e}^{-t} \]
Mathematica. Time used: 0.017 (sec). Leaf size: 15
ode=D[y[t],t]+y[t]==t; 
ic={y[0]==1}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\begin{align*} y(t)&\to t+2 e^{-t}-1 \end{align*}
Sympy. Time used: 0.069 (sec). Leaf size: 10
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(-t + y(t) + Derivative(y(t), t),0) 
ics = {y(0): 1} 
dsolve(ode,func=y(t),ics=ics)
 
\[ y{\left (t \right )} = t - 1 + 2 e^{- t} \]