4.8.40 x2ny(x)=nxn1+xny(x)(x2ny(x)23xny(x)+1)+1

ODE
x2ny(x)=nxn1+xny(x)(x2ny(x)23xny(x)+1)+1 ODE Classification

[_Abel]

Book solution method
Abel ODE, First kind

Mathematica
cpu = 0.250927 (sec), leaf count = 254

{{y(x)xne2x1nn1c12x(4n+1n1x(x1n1n)2n1Γ(2n1,4x1nn1)n1+e4x1nn1xn)n+1},{y(x)e2x1nn1c12x(4n+1n1x(x1n1n)2n1Γ(2n1,4x1nn1)n1+e4x1nn1xn)n+1+xn}}

Maple
cpu = 0.095 (sec), leaf count = 962

{y(x)1e2x(n1)xn1_C1211n22n1n2(1n)1((1n)1)n1n(1n)1((n1)(1n)(n+1)(n3)23+2n1n+2(1n)1+2(n1)1xn21n+(1n)11+n((1n)1)n1n+(1n)1(4x1nn21n+8x1nn1n4x1n1n+2n2)(x1n1n)(n1)1e2x1nn1Mnn1,(n1)1+1/2(4x1nn1)+(n1)(1n)(n+1)(n3)21+2n1n+2(1n)1+2(n1)1xn21n+(1n)11+n((1n)1)n1n+(1n)1(x1n1n)(n1)1e2x1nn1M(n1)1,(n1)1+1/2(4x1nn1))(xn)1=0,y(x)+1e2x(n1)xn1_C1211n22n1n2(1n)1((1n)1)n1n(1n)1((n1)(1n)(n+1)(n3)23+2n1n+2(1n)1+2(n1)1xn21n+(1n)11+n((1n)1)n1n+(1n)1(4x1nn21n+8x1nn1n4x1n1n+2n2)(x1n1n)(n1)1e2x1nn1Mnn1,(n1)1+1/2(4x1nn1)+(n1)(1n)(n+1)(n3)21+2n1n+2(1n)1+2(n1)1xn21n+(1n)11+n((1n)1)n1n+(1n)1(x1n1n)(n1)1e2x1nn1M(n1)1,(n1)1+1/2(4x1nn1))(xn)1=0} Mathematica raw input

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

Mathematica raw output

{{y[x] -> x^(-n) - E^((2*x^(1 - n))/(-1 + n))/Sqrt[C[1] - (2*x*(E^((4*x^(1 - n))
/(-1 + n))*x^n + (4^((1 + n)/(-1 + n))*x*(x^(1 - n)/(1 - n))^(2/(-1 + n))*Gamma[
-2/(-1 + n), (-4*x^(1 - n))/(-1 + n)])/(-1 + n)))/(1 + n)]}, {y[x] -> x^(-n) + E
^((2*x^(1 - n))/(-1 + n))/Sqrt[C[1] - (2*x*(E^((4*x^(1 - n))/(-1 + n))*x^n + (4^
((1 + n)/(-1 + n))*x*(x^(1 - n)/(1 - n))^(2/(-1 + n))*Gamma[-2/(-1 + n), (-4*x^(
1 - n))/(-1 + n)])/(-1 + n)))/(1 + n)]}}

Maple raw input

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

Maple raw output

y(x)+exp(2*x/(n-1)/(x^n))/(_C1-2*2^(-2*n/(1-n)-2/(1-n))*(1/(1-n))^(-n/(1-n)-1/(1
-n))/(1-n)*(-2^(-3+2*n/(1-n)+2/(1-n)+2/(n-1))*(n-1)/(n+1)*x^(-n^2/(1-n)+1/(1-n)-
1+n)*(1/(1-n))^(n/(1-n)+1/(1-n))*(-4*x^(1-n)/(1-n)*n^2+8*n*x^(1-n)/(1-n)-4*x^(1-
n)/(1-n)+2*n-2)/(n-3)*(1-n)*(x^(1-n)/(1-n))^(1/(n-1))*exp(2*x^(1-n)/(n-1))*Whitt
akerM(-1/(n-1)*n,-1/(n-1)+1/2,-4*x^(1-n)/(n-1))+2^(-1+2*n/(1-n)+2/(1-n)+2/(n-1))
*(n-1)/(n+1)*x^(-n^2/(1-n)+1/(1-n)-1+n)*(1/(1-n))^(n/(1-n)+1/(1-n))/(n-3)*(1-n)*
(x^(1-n)/(1-n))^(1/(n-1))*exp(2*x^(1-n)/(n-1))*WhittakerM(-1/(n-1),-1/(n-1)+1/2,
-4*x^(1-n)/(n-1))))^(1/2)-1/(x^n) = 0, y(x)-exp(2*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