3.11 problem 11

Internal problem ID [4263]

Book: Mathematical Methods in the Physical Sciences. third edition. Mary L. Boas. John Wiley. 2006
Section: Chapter 8, Ordinary differential equations. Section 3. Linear First-Order Equations. page 403
Problem number: 11.
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.016 (sec). Leaf size: 17

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

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

Solution by Mathematica

Time used: 0.1 (sec). Leaf size: 20

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

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