66.8.19 problem 32

Internal problem ID [16070]
Book : DIFFERENTIAL EQUATIONS by Paul Blanchard, Robert L. Devaney, Glen R. Hall. 4th edition. Brooks/Cole. Boston, USA. 2012
Section : Chapter 1. First-Order Differential Equations. Review Exercises for chapter 1. page 136
Problem number : 32
Date solved : Thursday, October 02, 2025 at 10:40:43 AM
CAS classification : [[_linear, `class A`]]

\begin{align*} y^{\prime }&=3 y+2 \,{\mathrm e}^{3 t} \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=-1 \\ \end{align*}
Maple. Time used: 0.028 (sec). Leaf size: 14
ode:=diff(y(t),t) = 3*y(t)+2*exp(3*t); 
ic:=[y(0) = -1]; 
dsolve([ode,op(ic)],y(t), singsol=all);
 
\[ y = \left (2 t -1\right ) {\mathrm e}^{3 t} \]
Mathematica. Time used: 0.026 (sec). Leaf size: 16
ode=D[y[t],t]==3*y[t]+2*Exp[3*t]; 
ic={y[0]==-1}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\begin{align*} y(t)&\to e^{3 t} (2 t-1) \end{align*}
Sympy. Time used: 0.085 (sec). Leaf size: 12
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(-3*y(t) - 2*exp(3*t) + Derivative(y(t), t),0) 
ics = {y(0): -1} 
dsolve(ode,func=y(t),ics=ics)
 
\[ y{\left (t \right )} = \left (2 t - 1\right ) e^{3 t} \]