4.20 problem Problem 3.33

Internal problem ID [5894]

Book: THEORY OF DIFFERENTIAL EQUATIONS IN ENGINEERING AND MECHANICS. K.T. CHAU, CRC Press. Boca Raton, FL. 2018
Section: Chapter 3. Ordinary Differential Equations. Section 3.6 Summary and Problems. Page 218
Problem number: Problem 3.33.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_homogeneous, `class D`], _rational, _Riccati]

\[ \boxed {-y+x y^{\prime }-y^{2}=x^{2}} \]

Solution by Maple

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

dsolve(x*diff(y(x),x)-y(x)=(x^2+y(x)^2),y(x), singsol=all)
 

\[ y \left (x \right ) = \tan \left (x +c_{1} \right ) x \]

Solution by Mathematica

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

DSolve[x*y'[x]-y[x]==(x^2+y[x]^2),y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to x \tan (x+c_1) \]