4.7.7 \(\left (4-x^2\right ) y'(x)+4 y(x)=(x+2) y(x)^2\)

ODE
\[ \left (4-x^2\right ) y'(x)+4 y(x)=(x+2) y(x)^2 \] ODE Classification

[_rational, _Bernoulli]

Book solution method
The Bernoulli ODE

Mathematica
cpu = 0.306966 (sec), leaf count = 27

\[\left \{\left \{y(x)\to \frac {2-x}{(x+2) (-\log (x+2)+c_1)}\right \}\right \}\]

Maple
cpu = 0.033 (sec), leaf count = 29

\[\left [y \left (x \right ) = \frac {x -2}{\ln \left (2+x \right ) x +x \textit {\_C1} +2 \ln \left (2+x \right )+2 \textit {\_C1}}\right ]\] Mathematica raw input

DSolve[4*y[x] + (4 - x^2)*y'[x] == (2 + x)*y[x]^2,y[x],x]

Mathematica raw output

{{y[x] -> (2 - x)/((2 + x)*(C[1] - Log[2 + x]))}}

Maple raw input

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

Maple raw output

[y(x) = (x-2)/(ln(2+x)*x+x*_C1+2*ln(2+x)+2*_C1)]