Solution:
Key idea: After dividing by 1+x2, the equation is linear in y: dxdy+Py=Q. Its integrating factor is e∫Pdx.
Step 1 — Write the equation in standard form.
We move −2xy to the left and divide every term by 1+x2.
dxdy+1+x22xy=1+x24x2
So P=1+x22x and Q=1+x24x2.
Step 2 — Find the integrating factor.
The numerator 2x is the derivative of 1+x2, so the integral of P is a logarithm.
∫1+x22xdx=ln(1+x2)
I.F.=1+x2
Step 3 — Write and evaluate the solution.
We use y×I.F.=∫Q×I.F.dx+C. The factor 1+x2 cancels inside the integral.
y(1+x2)=∫1+x24x2(1+x2)dx
y(1+x2)=∫4x2dx
y(1+x2)=34x3+C
Therefore, the general solution is y(1+x2)=34x3+C, where C is an arbitrary constant.