49.4.3 problem 1(c)

Internal problem ID [7614]
Book : An introduction to Ordinary Differential Equations. Earl A. Coddington. Dover. NY 1961
Section : Chapter 2. Linear equations with constant coefficients. Page 52
Problem number : 1(c)
Date solved : Wednesday, March 05, 2025 at 04:48:07 AM
CAS classification : [[_2nd_order, _missing_x]]

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

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