3.173 problem 1177

Internal problem ID [9507]

Book: Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section: Chapter 2, linear second order
Problem number: 1177.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]

\[ \boxed {x^{2} y^{\prime \prime }-2 y^{\prime } x +\left (x^{2}+2\right ) y=\frac {x^{2}}{\cos \left (x \right )}} \]

Solution by Maple

Time used: 0.016 (sec). Leaf size: 30

dsolve(x^2*diff(diff(y(x),x),x)-2*x*diff(y(x),x)+(x^2+2)*y(x)-x^2/cos(x)=0,y(x), singsol=all)
 

\[ y \left (x \right ) = \left (-\left (\int \frac {\tan \left (x \right )}{x}d x \right ) \cos \left (x \right )+\cos \left (x \right ) c_{1} +\sin \left (x \right ) \left (c_{2} +\ln \left (x \right )\right )\right ) x \]

Solution by Mathematica

Time used: 1.008 (sec). Leaf size: 116

DSolve[-(x^2*Sec[x]) - 2*x*y'[x] + (2 + x^2)*y'[x] + x^2*y''[x] == 0,y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

\[ y(x)\to \int _1^x-\frac {e^{K[2]-\frac {2}{K[2]}} \sec (K[2]) \int _1^{K[2]}e^{\frac {2}{K[1]}-K[1]} K[1]^2dK[1]}{K[2]^2}dK[2]+\int _1^xe^{\frac {2}{K[1]}-K[1]} K[1]^2dK[1] \left (\int _1^x\frac {e^{K[3]-\frac {2}{K[3]}} \sec (K[3])}{K[3]^2}dK[3]+c_2\right )+c_1 \]