34.6.3 problem 3

Internal problem ID [6077]
Book : A treatise on ordinary and partial differential equations by William Woolsey Johnson. 1913
Section : Chapter IX, Special forms of differential equations. Examples XVII. page 247
Problem number : 3
Date solved : Monday, January 27, 2025 at 01:34:59 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} u^{\prime \prime }-\frac {2 u^{\prime }}{x}-a^{2} u&=0 \end{align*}

Solution by Maple

Time used: 0.005 (sec). Leaf size: 28

dsolve(diff(u(x),x$2)-2/x*diff(u(x),x)-a^2*u(x)=0,u(x), singsol=all)
 
\[ u = c_1 \,{\mathrm e}^{a x} \left (a x -1\right )+c_2 \,{\mathrm e}^{-a x} \left (a x +1\right ) \]

Solution by Mathematica

Time used: 0.082 (sec). Leaf size: 68

DSolve[D[u[x],{x,2}]-2/x*D[u[x],x]-a^2*u[x]==0,u[x],x,IncludeSingularSolutions -> True]
 
\[ u(x)\to \frac {\sqrt {\frac {2}{\pi }} \sqrt {x} ((i a c_2 x+c_1) \sinh (a x)-(a c_1 x+i c_2) \cosh (a x))}{a \sqrt {-i a x}} \]