15.18.23 problem 23

Internal problem ID [3266]
Book : Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section : Exercise 35, page 157
Problem number : 23
Date solved : Sunday, March 30, 2025 at 01:25:43 AM
CAS classification : [[_2nd_order, _missing_x]]

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

Maple. Time used: 0.003 (sec). Leaf size: 15
ode:=diff(diff(y(x),x),x) = y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_1 \,{\mathrm e}^{-x}+c_2 \,{\mathrm e}^{x} \]
Mathematica. Time used: 0.013 (sec). Leaf size: 20
ode=D[y[x],{x,2}]==y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to c_1 e^x+c_2 e^{-x} \]
Sympy. Time used: 0.045 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-y(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^{x} \]