Internal problem ID [5412]
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(j).
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_linear]
\[ \boxed {y-x +x y \cot \left (x \right )+y^{\prime } x=0} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 21
dsolve(y(x)-x+x*y(x)*cot(x)+x*diff(y(x),x)=0,y(x), singsol=all)
\[ y \left (x \right ) = \frac {\sin \left (x \right )-\cos \left (x \right ) x +c_{1}}{\sin \left (x \right ) x} \]
✓ Solution by Mathematica
Time used: 0.073 (sec). Leaf size: 21
DSolve[y[x]-x+x*y[x]*Cot[x]+x*y'[x]==0,y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to \frac {-x \cot (x)+c_1 \csc (x)+1}{x} \\ \end{align*}