1.18 problem 4(c)

Internal problem ID [2537]

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

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime }+\sin \relax (x ) y-\sin \left (2 x \right )=0} \end {gather*}

Solution by Maple

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

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

\[ y \relax (x ) = 2 \cos \relax (x )+2+{\mathrm e}^{\cos \relax (x )} c_{1} \]

Solution by Mathematica

Time used: 0.081 (sec). Leaf size: 18

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

\begin{align*} y(x)\to 2 \cos (x)+c_1 e^{\cos (x)}+2 \\ \end{align*}