4.25.17 \(y(x) (a+b \cos (2 x))+y''(x)=0\)

ODE
\[ y(x) (a+b \cos (2 x))+y''(x)=0 \] ODE Classification

[_ellipsoidal]

Book solution method
TO DO

Mathematica
cpu = 0.182977 (sec), leaf count = 28

\[\left \{\left \{y(x)\to c_1 \text {MathieuC}\left [a,-\frac {b}{2},x\right ]+c_2 \text {MathieuS}\left [a,-\frac {b}{2},x\right ]\right \}\right \}\]

Maple
cpu = 1.836 (sec), leaf count = 21

\[\left [y \left (x \right ) = \textit {\_C1} \MathieuC \left (a , -\frac {b}{2}, x\right )+\textit {\_C2} \MathieuS \left (a , -\frac {b}{2}, x\right )\right ]\] Mathematica raw input

DSolve[(a + b*Cos[2*x])*y[x] + y''[x] == 0,y[x],x]

Mathematica raw output

{{y[x] -> C[1]*MathieuC[a, -1/2*b, x] + C[2]*MathieuS[a, -1/2*b, x]}}

Maple raw input

dsolve(diff(diff(y(x),x),x)+(a+b*cos(2*x))*y(x) = 0, y(x))

Maple raw output

[y(x) = _C1*MathieuC(a,-1/2*b,x)+_C2*MathieuS(a,-1/2*b,x)]