1.26 problem 26

Internal problem ID [2662]

Book: Differential equations for engineers by Wei-Chau XIE, Cambridge Press 2010
Section: Chapter 2. First-Order and Simple Higher-Order Differential Equations. Page 78
Problem number: 26.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_exact, [_Abel, 2nd type, class B]]

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

Solution by Maple

Time used: 0.013 (sec). Leaf size: 88

dsolve((3+y(x)+2*y(x)^2*sin(x)^2)+(x+2*x*y(x)-y(x)*sin(2*x))*diff(y(x),x)=0,y(x), singsol=all)
 

\begin{align*} y \relax (x ) = \frac {x +\sqrt {2 \sin \left (2 x \right ) c_{1}+6 \sin \left (2 x \right ) x -4 c_{1} x -11 x^{2}}}{\sin \left (2 x \right )-2 x} \\ y \relax (x ) = -\frac {-x +\sqrt {2 \sin \left (2 x \right ) c_{1}+6 \sin \left (2 x \right ) x -4 c_{1} x -11 x^{2}}}{\sin \left (2 x \right )-2 x} \\ \end{align*}

Solution by Mathematica

Time used: 0.903 (sec). Leaf size: 97

DSolve[(3+y[x]+2*y[x]^2*Sin[x]^2)+(x+2*x*y[x]-y[x]*Sin[2*x])*y'[x]==0,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {x-i \sqrt {x (11 x+2 c_1)-(6 x+c_1) \sin (2 x)}}{\sin (2 x)-2 x} \\ y(x)\to \frac {x+i \sqrt {x (11 x+2 c_1)-(6 x+c_1) \sin (2 x)}}{\sin (2 x)-2 x} \\ \end{align*}