82.12.17 problem Ex. 19

Internal problem ID [18782]
Book : Introductory Course On Differential Equations by Daniel A Murray. Longmans Green and Co. NY. 1924
Section : Chapter II. Equations of the first order and of the first degree. Examples on chapter II at page 29
Problem number : Ex. 19
Date solved : Tuesday, January 28, 2025 at 12:17:12 PM
CAS classification : [_Bernoulli]

\begin{align*} y^{\prime }+y \cos \left (x \right )&=y^{n} \sin \left (2 x \right ) \end{align*}

Solution by Maple

Time used: 0.042 (sec). Leaf size: 49

dsolve(diff(y(x),x)+y(x)*cos(x)=y(x)^n*sin(2*x),y(x), singsol=all)
 
\[ y \left (x \right ) = \left (\frac {{\mathrm e}^{\sin \left (x \right ) \left (n -1\right )} c_{1} n -{\mathrm e}^{\sin \left (x \right ) \left (n -1\right )} c_{1} +2 n \sin \left (x \right )-2 \sin \left (x \right )+2}{n -1}\right )^{-\frac {1}{n -1}} \]

Solution by Mathematica

Time used: 6.288 (sec). Leaf size: 36

DSolve[D[y[x],x]+y[x]*Cos[x]==y[x]^n*Sin[2*x],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \left (c_1 e^{(n-1) \sin (x)}+\frac {2}{n-1}+2 \sin (x)\right ){}^{\frac {1}{1-n}} \]