87.12.22 problem 23

Internal problem ID [23470]
Book : Ordinary differential equations with modern applications. Ladas, G. E. and Finizio, N. Wadsworth Publishing. California. 1978. ISBN 0-534-00552-7. QA372.F56
Section : Chapter 2. Linear differential equations. Exercise at page 93
Problem number : 23
Date solved : Thursday, October 02, 2025 at 09:42:07 PM
CAS classification : [[_2nd_order, _missing_x]]

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

With initial conditions

\begin{align*} y \left (0\right )&=3 \\ y^{\prime }\left (\frac {\pi }{2}\right )&=2 \\ \end{align*}
Maple
ode:=diff(diff(y(x),x),x)+y(x) = 0; 
ic:=[y(0) = 3, D(y)(1/2*Pi) = 2]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ \text {No solution found} \]
Mathematica
ode=D[y[x],{x,2}]+y[x]==0; 
ic={y[0]==3,Derivative[1][y][Pi/2] ==2}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 

{}

Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(y(x) + Derivative(y(x), (x, 2)),0) 
ics = {y(0): 3, Subs(Derivative(y(x), x), x, pi/2): 2} 
dsolve(ode,func=y(x),ics=ics)
 
ValueError : Couldnt solve for initial conditions