7.7 problem 7

Internal problem ID [12372]

Book: Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section: Chapter 2. The Initial Value Problem. Exercises 2.3.3, page 71
Problem number: 7.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

\[ y \left (x \right ) = \left (x -\frac {\pi }{2}\right ) \sin \left (x \right ) \]

Solution by Mathematica

Time used: 0.088 (sec). Leaf size: 16

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

\[ y(x)\to -\frac {1}{2} (\pi -2 x) \sin (x) \]