82.5.3 problem 29-6

Internal problem ID [21844]
Book : The Differential Equations Problem Solver. VOL. II. M. Fogiel director. REA, NY. 1978. ISBN 78-63609
Section : Chapter 29. Second Order Boundary Value Problems. Page 959
Problem number : 29-6
Date solved : Thursday, October 02, 2025 at 08:02:47 PM
CAS classification : [[_2nd_order, _missing_x]]

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

With initial conditions

\begin{align*} y \left (0\right )&=0 \\ y \left (\frac {\pi }{4}\right )&=7 \\ \end{align*}
Maple. Time used: 0.008 (sec). Leaf size: 10
ode:=diff(diff(y(x),x),x)+4*y(x) = 0; 
ic:=[y(0) = 0, y(1/4*Pi) = 7]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ y = 7 \sin \left (2 x \right ) \]
Mathematica. Time used: 0.009 (sec). Leaf size: 11
ode=D[y[x],{x,2}]+4*y[x]==0; 
ic={y[0]==0,y[Pi/4]==7}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to 7 \sin (2 x) \end{align*}
Sympy. Time used: 0.032 (sec). Leaf size: 8
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(4*y(x) + Derivative(y(x), (x, 2)),0) 
ics = {y(0): 0, y(pi/4): 7} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = 7 \sin {\left (2 x \right )} \]