3.9 problem 1(i)

Internal problem ID [6165]

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 )} \]

Solution by Maple

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

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

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

Solution by Mathematica

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

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

\[ y(x)\to \left (x^2+c_1\right ) \csc (x) \]