54.3.65 problem 1070

Internal problem ID [12360]
Book : Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section : Chapter 2, linear second order
Problem number : 1070
Date solved : Friday, October 03, 2025 at 03:18:37 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }+a y^{\prime } \tan \left (x \right )+b y&=0 \end{align*}
Maple. Time used: 0.075 (sec). Leaf size: 60
ode:=diff(diff(y(x),x),x)+a*diff(y(x),x)*tan(x)+b*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \cos \left (x \right )^{\frac {1}{2}+\frac {a}{2}} \left (c_1 \operatorname {LegendreP}\left (\frac {\sqrt {a^{2}+4 b}}{2}-\frac {1}{2}, \frac {1}{2}+\frac {a}{2}, \sin \left (x \right )\right )+c_2 \operatorname {LegendreQ}\left (\frac {\sqrt {a^{2}+4 b}}{2}-\frac {1}{2}, \frac {1}{2}+\frac {a}{2}, \sin \left (x \right )\right )\right ) \]
Mathematica. Time used: 0.243 (sec). Leaf size: 129
ode=b*y[x] + a*Tan[x]*D[y[x],x] + D[y[x],{x,2}] == 0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to c_1 \operatorname {Hypergeometric2F1}\left (\frac {1}{4} \left (-a-\sqrt {a^2+4 b}\right ),\frac {1}{4} \left (\sqrt {a^2+4 b}-a\right ),\frac {1-a}{2},\cos ^2(x)\right )+i^{a+1} c_2 \cos ^{a+1}(x) \operatorname {Hypergeometric2F1}\left (\frac {1}{4} \left (a-\sqrt {a^2+4 b}+2\right ),\frac {1}{4} \left (a+\sqrt {a^2+4 b}+2\right ),\frac {a+3}{2},\cos ^2(x)\right ) \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq(a*tan(x)*Derivative(y(x), x) + b*y(x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False