1.24 problem 2(j)

Internal problem ID [5375]

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.2 THE NATURE OF SOLUTIONS. Page 9
Problem number: 2(j).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

Solve \begin {gather*} \boxed {\left (x^{2}-3 x +2\right ) y^{\prime }-x=0} \end {gather*}

Solution by Maple

Time used: 0.002 (sec). Leaf size: 18

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

\[ y \relax (x ) = -\ln \left (x -1\right )+2 \ln \left (x -2\right )+c_{1} \]

Solution by Mathematica

Time used: 0.005 (sec). Leaf size: 24

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

\begin{align*} y(x)\to -\log (1-x)+2 \log (2-x)+c_1 \\ \end{align*}