52.1.8 problem 6. direct method

Internal problem ID [8225]
Book : DIFFERENTIAL EQUATIONS with Boundary Value Problems. DENNIS G. ZILL, WARREN S. WRIGHT, MICHAEL R. CULLEN. Brooks/Cole. Boston, MA. 2013. 8th edition.
Section : CHAPTER 6 SERIES SOLUTIONS OF LINEAR EQUATIONS. Section 6.2 SOLUTIONS ABOUT ORDINARY POINTS. EXERCISES 6.2. Page 246
Problem number : 6. direct method
Date solved : Sunday, March 30, 2025 at 12:49:05 PM
CAS classification : [[_2nd_order, _missing_x]]

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

Maple. Time used: 0.002 (sec). Leaf size: 12
ode:=diff(diff(y(x),x),x)+2*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_1 +c_2 \,{\mathrm e}^{-2 x} \]
Mathematica. Time used: 0.01 (sec). Leaf size: 19
ode=D[y[x],{x,2}]+2*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to c_2-\frac {1}{2} c_1 e^{-2 x} \]
Sympy. Time used: 0.152 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(2*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} + C_{2} e^{- 2 x} \]