58.23.5 problem 7

Internal problem ID [14963]
Book : Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section : Chapter 12, Sturm-Liouville problems. Section 12.1, Exercises page 596
Problem number : 7
Date solved : Thursday, October 02, 2025 at 09:57:06 AM
CAS classification : [[_Emden, _Fowler], [_2nd_order, _linear, `_with_symmetry_[0,F(x)]`]]

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

With initial conditions

\begin{align*} y \left (1\right )&=0 \\ y \left ({\mathrm e}^{\pi }\right )&=0 \\ \end{align*}
Maple. Time used: 0.033 (sec). Leaf size: 5
ode:=diff(y(x),x)+x*diff(diff(y(x),x),x)+lambda/x*y(x) = 0; 
ic:=[y(1) = 0, y(exp(Pi)) = 0]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ y = 0 \]
Mathematica. Time used: 0.023 (sec). Leaf size: 70
ode=D[x*D[y[x],x],x]+\[Lambda]/x*y[x]==0; 
ic={y[1]==0,y[Exp[Pi]]==0}; 
DSolve[{ode,ic},{y[x]},x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \begin {array}{cc} \{ & \begin {array}{cc} c_1 \sin \left (\sqrt {\lambda } \log (x)\right ) & \unicode {f80d}\in \mathbb {Z}\land \left (\left (\sqrt {\unicode {f80d}^2}=\unicode {f80d}\land 4 \unicode {f80d}^2=\lambda \right )\lor \left (\sqrt {(2 \unicode {f80d}+1)^2}=2 \unicode {f80d}+1\land (2 \unicode {f80d}+1)^2=\lambda \right )\right ) \\ 0 & \text {True} \\ \end {array} \\ \end {array} \end{align*}
Sympy. Time used: 0.206 (sec). Leaf size: 391
from sympy import * 
x = symbols("x") 
lambda_ = symbols("lambda_") 
y = Function("y") 
ode = Eq(lambda_*y(x)/x + x*Derivative(y(x), (x, 2)) + Derivative(y(x), x),0) 
ics = {y(1): 0, y(exp(pi)): 0} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \text {Solution too large to show} \]