56.4.72 problem 69

Internal problem ID [8961]
Book : Own collection of miscellaneous problems
Section : section 4.0
Problem number : 69
Date solved : Wednesday, March 05, 2025 at 07:11:06 AM
CAS classification : [[_2nd_order, _with_linear_symmetries], [_2nd_order, _linear, `_with_symmetry_[0,F(x)]`]]

\begin{align*} y^{\prime \prime } \sin \left (2 x \right )^{2}+y^{\prime } \sin \left (4 x \right )-4 y&=0 \end{align*}

Maple. Time used: 0.162 (sec). Leaf size: 17
ode:=diff(diff(y(x),x),x)*sin(2*x)^2+diff(y(x),x)*sin(4*x)-4*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_{1} \csc \left (2 x \right )+\cot \left (2 x \right ) c_{2} \]
Mathematica. Time used: 0.054 (sec). Leaf size: 29
ode=D[y[x],{x,2}]*Sin[2*x]^2+D[y[x],x]*Sin[4*x]-4*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {c_1-i c_2 \cos (2 x)}{\sqrt {\sin ^2(2 x)}} \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-4*y(x) + sin(2*x)**2*Derivative(y(x), (x, 2)) + sin(4*x)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE -(4*y(x) - sin(2*x)**2*Derivative(y(x), (x, 2)))/sin(4*x) + Derivative(y(x), x) cannot be solved by the factorable group method