1.17 problem 4(b)

Internal problem ID [2536]

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

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

\[ y \left (x \right ) = \frac {-2 \sin \left (x \right )-2 \ln \left (\sin \left (x \right )-1\right )+c_{1}}{\sec \left (x \right )+\tan \left (x \right )} \]

Solution by Mathematica

Time used: 0.085 (sec). Leaf size: 42

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

\begin{align*} y(x)\to e^{-2 \text {arctanh}\left (\tan \left (\frac {x}{2}\right )\right )} \left (-2 \sin (x)-4 \log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )+c_1\right ) \\ \end{align*}