84.3.5 problem 2.5

Internal problem ID [22082]
Book : Schaums outline series. Differential Equations By Richard Bronson. 1973. McGraw-Hill Inc. ISBN 0-07-008009-7
Section : Chapter 2. Solutions. Solved problems page 5
Problem number : 2.5
Date solved : Thursday, October 02, 2025 at 08:23:39 PM
CAS classification : [_quadrature]

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

With initial conditions

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