76.48.16 problem Ex. 16

Internal problem ID [20282]
Book : Introductory Course On Differential Equations by Daniel A Murray. Longmans Green and Co. NY. 1924
Section : Chapter VIII. End of chapter problems at page 107
Problem number : Ex. 16
Date solved : Thursday, October 02, 2025 at 05:40:57 PM
CAS classification : [[_3rd_order, _fully, _exact, _linear]]

\begin{align*} y^{\prime \prime \prime }+\cos \left (x \right ) y^{\prime \prime }-2 \sin \left (x \right ) y^{\prime }-y \cos \left (x \right )&=\sin \left (2 x \right ) \end{align*}
Maple. Time used: 0.002 (sec). Leaf size: 32
ode:=diff(diff(diff(y(x),x),x),x)+cos(x)*diff(diff(y(x),x),x)-2*sin(x)*diff(y(x),x)-cos(x)*y(x) = sin(2*x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \left (c_3 -\frac {\int \left (-8 c_1 x -4 c_2 +\sin \left (2 x \right )\right ) {\mathrm e}^{\sin \left (x \right )}d x}{4}\right ) {\mathrm e}^{-\sin \left (x \right )} \]
Mathematica. Time used: 4.452 (sec). Leaf size: 47
ode=D[y[x],{x,3}]+Cos[x]*D[y[x],{x,2}]-2*Sin[x]*D[y[x],x]-y[x]*Cos[x]==Sin[2*x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to e^{-\sin (x)} \left (\int _1^x-\frac {1}{4} e^{\sin (K[1])} (\sin (2 K[1])-4 (c_2+c_1 K[1]))dK[1]+c_3\right ) \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-y(x)*cos(x) - 2*sin(x)*Derivative(y(x), x) - sin(2*x) + cos(x)*Derivative(y(x), (x, 2)) + Derivative(y(x), (x, 3)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE -(-y(x)*cos(x) - sin(2*x) + cos(x)*Derivative(y(x), (x, 2)) + Derivative(y(x), (x, 3)))/(2*sin(x)) + Derivative(y(x), x) cannot be solved by the factorable group method