58.2.1 problem 1

Internal problem ID [14542]
Book : Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section : Chapter 1, section 1.3. Exercises page 22
Problem number : 1
Date solved : Thursday, October 02, 2025 at 09:38:26 AM
CAS classification : [[_2nd_order, _missing_x]]

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

With initial conditions

\begin{align*} y \left (0\right )&=6 \\ y^{\prime }\left (0\right )&=2 \\ \end{align*}
Maple. Time used: 0.051 (sec). Leaf size: 17
ode:=diff(diff(y(x),x),x)+diff(y(x),x)-6*y(x) = 0; 
ic:=[y(0) = 6, D(y)(0) = 2]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ y = 4 \,{\mathrm e}^{2 x}+2 \,{\mathrm e}^{-3 x} \]
Mathematica. Time used: 0.009 (sec). Leaf size: 20
ode=D[y[x],{x,2}]+D[y[x],x]-6*y[x]==0; 
ic={y[0]==6,Derivative[1][y][0] ==2}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to e^{-3 x} \left (4 e^{5 x}+2\right ) \end{align*}
Sympy. Time used: 0.085 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-6*y(x) + Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {y(0): 6, Subs(Derivative(y(x), x), x, 0): 2} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = 4 e^{2 x} + 2 e^{- 3 x} \]