7.20 problem 21

Internal problem ID [1080]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 2, First order equations. Exact equations. Integrating factors. Section 2.6 Page 91
Problem number: 21.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

dsolve((a*cos(x)*y(x)-y(x)*sin(x)*y(x))+(b*cos(x)*y(x)-x*sin(x)*y(x))*diff(y(x),x)=0,y(x), singsol=all)
 

\begin{align*} y \left (x \right ) = 0 \\ y \left (x \right ) = \left (\int -\frac {a \cos \left (x \right ) {\mathrm e}^{\int -\frac {\sin \left (x \right )}{-\sin \left (x \right ) x +\cos \left (x \right ) b}d x}}{-\sin \left (x \right ) x +\cos \left (x \right ) b}d x +c_{1} \right ) {\mathrm e}^{\int \frac {\sin \left (x \right )}{-\sin \left (x \right ) x +\cos \left (x \right ) b}d x} \\ \end{align*}

Solution by Mathematica

Time used: 3.479 (sec). Leaf size: 85

DSolve[(a*Cos[x]*y[x]-y[x]*Sin[x]*y[x])+(b*Cos[x]*y[x]-x*Sin[x]*y[x])*y'[x]==0,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to 0 \\ y(x)\to \exp \left (\int _1^x\frac {1}{b \cot (K[1])-K[1]}dK[1]\right ) \left (\int _1^x-\frac {a \exp \left (-\int _1^{K[2]}\frac {1}{b \cot (K[1])-K[1]}dK[1]\right )}{b-K[2] \tan (K[2])}dK[2]+c_1\right ) \\ y(x)\to 0 \\ \end{align*}