48.2.1 problem Example 3.17

Internal problem ID [7517]
Book : THEORY OF DIFFERENTIAL EQUATIONS IN ENGINEERING AND MECHANICS. K.T. CHAU, CRC Press. Boca Raton, FL. 2018
Section : Chapter 3. Ordinary Differential Equations. Section 3.3 SECOND ORDER ODE. Page 147
Problem number : Example 3.17
Date solved : Wednesday, March 05, 2025 at 04:43:46 AM
CAS classification : [[_2nd_order, _missing_x]]

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

Maple. Time used: 0.003 (sec). Leaf size: 17
ode:=diff(diff(y(x),x),x)-2*diff(y(x),x)-3*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_{1} {\mathrm e}^{-x}+{\mathrm e}^{3 x} c_{2} \]
Mathematica. Time used: 0.014 (sec). Leaf size: 22
ode=D[y[x],{x,2}]-2*D[y[x],x]-3*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to e^{-x} \left (c_2 e^{4 x}+c_1\right ) \]
Sympy. Time used: 0.208 (sec). Leaf size: 14
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-3*y(x) - 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} e^{- x} + C_{2} e^{3 x} \]