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]
Solve \begin {gather*} \boxed {y^{\prime } \cos \relax (x )+y-\sin \left (2 x \right )=0} \end {gather*}
✓ 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 \relax (x ) = \frac {-2 \sin \relax (x )-2 \ln \left (\sin \relax (x )-1\right )+c_{1}}{\sec \relax (x )+\tan \relax (x )} \]
✓ Solution by Mathematica
Time used: 0.092 (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 \tanh ^{-1}\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*}