3.9 problem 1(i)

Internal problem ID [5411]

Book: Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section: Chapter 1. What is a differential equation. Section 1.4 First Order Linear Equations. Page 15
Problem number: 1(i).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime }+y \cot \left (x \right )-2 x \csc \left (x \right )=0} \]

Solution by Maple

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

dsolve(diff(y(x),x)+y(x)*cot(x)=2*x*csc(x),y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {x^{2}+c_{1}}{\sin \left (x \right )} \]

Solution by Mathematica

Time used: 0.037 (sec). Leaf size: 14

DSolve[y'[x]+y[x]*Cot[x]==2*x*Csc[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \left (x^2+c_1\right ) \csc (x) \\ \end{align*}