6.23 problem 156

Internal problem ID [15049]

Book: A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section: Section 6. Linear equations of the first order. The Bernoulli equation. Exercises page 54
Problem number: 156.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {\cos \left (x \right ) y^{\prime }-\sin \left (x \right ) y=-\sin \left (2 x \right )} \] With initial conditions \begin {align*} \left [y \left (\frac {\pi }{2}\right ) = 0\right ] \end {align*}

Solution by Maple

Time used: 0.062 (sec). Leaf size: 6

dsolve([cos(x)*diff(y(x),x)-y(x)*sin(x)=-sin(2*x),y(1/2*Pi) = 0],y(x), singsol=all)
 

\[ y \left (x \right ) = \cos \left (x \right ) \]

Solution by Mathematica

Time used: 0.133 (sec). Leaf size: 7

DSolve[{Cos[x]*y'[x]-y[x]*Sin[x]==-Sin[2*x],{y[Pi/2]==0}},y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \cos (x) \]