83.35.2 problem 2

Internal problem ID [19343]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter VII. Exact differential equations and certain particular forms of equations. Misc. Exercise on chapter VII. Page 118
Problem number : 2
Date solved : Thursday, March 13, 2025 at 02:16:33 PM
CAS classification : [[_2nd_order, _missing_x]]

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

Maple. Time used: 0.007 (sec). Leaf size: 17
ode:=diff(diff(y(x),x),x)+a^2*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y \left (x \right ) = c_{1} \sin \left (a x \right )+c_{2} \cos \left (a x \right ) \]
Mathematica. Time used: 0.018 (sec). Leaf size: 20
ode=D[y[x],{x,2}]+a^2*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to c_1 \cos (a x)+c_2 \sin (a x) \]
Sympy. Time used: 0.084 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
a = symbols("a") 
y = Function("y") 
ode = Eq(a**2*y(x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{- i a x} + C_{2} e^{i a x} \]