4.9.47 \((-y(x)-x+3) y'(x)=-3 y(x)+x+1\)

ODE
\[ (-y(x)-x+3) y'(x)=-3 y(x)+x+1 \] ODE Classification

[[_homogeneous, `class C`], _rational, [_Abel, `2nd type`, `class A`]]

Book solution method
Equation linear in the variables, \(y'(x)=f\left ( \frac {X_1}{X_2} \right ) \)

Mathematica
cpu = 1.12665 (sec), leaf count = 159

\[\text {Solve}\left [\frac {2^{2/3} \left (x \left (-\log \left (-\frac {3\ 2^{2/3} (-y(x)+x-1)}{y(x)+x-3}\right )\right )+(x-1) \log \left (\frac {6\ 2^{2/3} (x-2)}{y(x)+x-3}\right )+\log \left (-\frac {3\ 2^{2/3} (-y(x)+x-1)}{y(x)+x-3}\right )+y(x) \left (-\log \left (\frac {6\ 2^{2/3} (x-2)}{y(x)+x-3}\right )+\log \left (-\frac {3\ 2^{2/3} (-y(x)+x-1)}{y(x)+x-3}\right )-1\right )-x+3\right )}{9 (-y(x)+x-1)}=c_1+\frac {1}{9} 2^{2/3} \log (x-2),y(x)\right ]\]

Maple
cpu = 0.023 (sec), leaf count = 61

\[ \left \{ {\frac {1}{x-y \left ( x \right ) -1} \left ( \left ( x-y \left ( x \right ) -1 \right ) \ln \left ( {\frac {x-y \left ( x \right ) -1}{x-2}} \right ) + \left ( x-y \left ( x \right ) -1 \right ) \ln \left ( x-2 \right ) +{\it \_C1}\,y \left ( x \right ) + \left ( -{\it \_C1}+2 \right ) x+{\it \_C1}-4 \right ) }=0 \right \} \] Mathematica raw input

DSolve[(3 - x - y[x])*y'[x] == 1 + x - 3*y[x],y[x],x]

Mathematica raw output

Solve[(2^(2/3)*(3 - x + (-1 + x)*Log[(6*2^(2/3)*(-2 + x))/(-3 + x + y[x])] + Log
[(-3*2^(2/3)*(-1 + x - y[x]))/(-3 + x + y[x])] - x*Log[(-3*2^(2/3)*(-1 + x - y[x
]))/(-3 + x + y[x])] + (-1 - Log[(6*2^(2/3)*(-2 + x))/(-3 + x + y[x])] + Log[(-3
*2^(2/3)*(-1 + x - y[x]))/(-3 + x + y[x])])*y[x]))/(9*(-1 + x - y[x])) == C[1] +
 (2^(2/3)*Log[-2 + x])/9, y[x]]

Maple raw input

dsolve((3-x-y(x))*diff(y(x),x) = 1+x-3*y(x), y(x),'implicit')

Maple raw output

((x-y(x)-1)*ln((x-y(x)-1)/(x-2))+(x-y(x)-1)*ln(x-2)+_C1*y(x)+(-_C1+2)*x+_C1-4)/(
x-y(x)-1) = 0