1.19 problem 4(d)

Internal problem ID [2538]

Book: Elementary Differential equations, Chaundy, 1969
Section: Exercises 3, page 60
Problem number: 4(d).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

Time used: 0.0 (sec). Leaf size: 23

dsolve(sin(x)*diff(y(x),x)+y(x)=sin(2*x),y(x), singsol=all)
 

\[ y \left (x \right ) = \left (-2 \cos \left (x \right )+2 \ln \left (\cos \left (x \right )+1\right )+c_{1} \right ) \left (\csc \left (x \right )+\cot \left (x \right )\right ) \]

Solution by Mathematica

Time used: 0.051 (sec). Leaf size: 29

DSolve[Sin[x]*y'[x]+y[x]==Sin[2*x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \cot \left (\frac {x}{2}\right ) \left (-2 \cos (x)+4 \log \left (\cos \left (\frac {x}{2}\right )\right )-2+c_1\right ) \\ \end{align*}