83.47.14 problem Ex 14 page 91

Internal problem ID [19512]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Book Solved Excercises. Chapter VI. Homogeneous linear equations with variable coefficients
Problem number : Ex 14 page 91
Date solved : Thursday, March 13, 2025 at 02:43:13 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} x^{2} y^{\prime \prime }-\left (2 m -1\right ) x y^{\prime }+\left (m^{2}+n^{2}\right ) y&=n^{2} x^{m} \ln \left (x \right ) \end{align*}

Maple. Time used: 0.008 (sec). Leaf size: 35
ode:=x^2*diff(diff(y(x),x),x)-(2*m-1)*x*diff(y(x),x)+(m^2+n^2)*y(x) = n^2*x^m*ln(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y \left (x \right ) = \frac {\left (\left (c_{2} n -1\right ) \sin \left (n \ln \left (x \right )\right )+n \left (\cos \left (n \ln \left (x \right )\right ) c_{1} +\ln \left (x \right )\right )\right ) x^{m}}{n} \]
Mathematica. Time used: 0.356 (sec). Leaf size: 79
ode=x^2*D[y[x],{x,2}]-(2*m-1)*x*D[y[x],x]+(m^2+n^2)*y[x]==n^2*x^m*Log[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to x^m \left (c_1 x^{-\frac {n \sqrt {m^2+n^2}}{\sqrt {-m^2-n^2}}}+c_2 x^{\frac {n \sqrt {m^2+n^2}}{\sqrt {-m^2-n^2}}}+\log (x)\right ) \]
Sympy. Time used: 172.436 (sec). Leaf size: 393
from sympy import * 
x = symbols("x") 
m = symbols("m") 
n = symbols("n") 
y = Function("y") 
ode = Eq(-n**2*x**m*log(x) + x**2*Derivative(y(x), (x, 2)) - x*(2*m - 1)*Derivative(y(x), x) + (m**2 + n**2)*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \text {Solution too large to show} \]