Question
Question: The solution of the differential equation $\frac{dy}{dx}+x(2x+y)=x^{2}(2x+y)^{3}-2$ is (C being an a...
The solution of the differential equation dxdy+x(2x+y)=x2(2x+y)3−2 is (C being an arbitrary constant)

(2x+y)2e−x2−xe−x2+∫e−x2dx=C
Solution
Let the given differential equation be dxdy+x(2x+y)=x2(2x+y)3−2 Rearrange the terms: dxdy+2+x(2x+y)=x2(2x+y)3 Let v=2x+y. Then dxdv=dxd(2x+y)=2+dxdy. Substituting v and dxdv into the equation: (dxdv−2)+2+xv=x2v3 dxdv+xv=x2v3 This is a Bernoulli differential equation of the form dxdv+P(x)v=Q(x)vn, with P(x)=x, Q(x)=x2, and n=3. To solve this, divide by v3: v−3dxdv+xv−2=x2 Let z=v1−n=v1−3=v−2. Then dxdz=−2v−3dxdv. So, v−3dxdv=−21dxdz. Substitute this into the equation: −21dxdz+xz=x2 Multiply by -2 to get the standard linear form: dxdz−2xz=−2x2 This is a first-order linear differential equation of the form dxdz+P′(x)z=Q′(x), with P′(x)=−2x and Q′(x)=−2x2. The integrating factor (I.F.) is e∫P′(x)dx=e∫−2xdx=e−x2. Multiply the linear equation by the integrating factor: e−x2dxdz−2xe−x2z=−2x2e−x2 The left side is the derivative of the product ze−x2: dxd(ze−x2)=−2x2e−x2 Integrate both sides with respect to x: ∫dxd(ze−x2)dx=∫−2x2e−x2dx ze−x2=∫−2x2e−x2dx To evaluate the integral on the right side, we use integration by parts. Let I=∫−2x2e−x2dx. Let u=x and dv=−2xe−x2dx. Then du=dx. To find v, integrate dv: v=∫−2xe−x2dx. Let w=−x2, so dw=−2xdx. v=∫ewdw=ew=e−x2. Using the integration by parts formula ∫udv=uv−∫vdu: I=x(e−x2)−∫e−x2dx So, the equation becomes: ze−x2=xe−x2−∫e−x2dx+C where C is the arbitrary constant of integration. Substitute back z=v−2=(2x+y)−2: (2x+y)−2e−x2=xe−x2−∫e−x2dx+C Multiply by ex2: (2x+y)−2=x+Cex2−ex2∫e−x2dx This does not seem to match standard forms or lead to a simple solution without the integral of e−x2.
Let's re-examine the integral ∫−2x2e−x2dx. Consider the derivative of xe−x2: dxd(xe−x2)=1⋅e−x2+x⋅(−2xe−x2)=e−x2−2x2e−x2. So, −2x2e−x2=dxd(xe−x2)−e−x2. Integrating both sides: ∫−2x2e−x2dx=∫(dxd(xe−x2)−e−x2)dx=xe−x2−∫e−x2dx. This is the same result.
Let's go back to ze−x2=xe−x2−∫e−x2dx+C. Divide by e−x2: z=x−ex2∫e−x2dx+Cex2. Substitute z=(2x+y)−2: (2x+y)−2=x−ex2∫e−x2dx+Cex2. (2x+y)21=x+ex2(C−∫e−x2dx).
Let's rewrite the solution as e−x2(2x+y)−2−xe−x2+∫e−x2dx=C. This is a valid general solution. The integral ∫e−x2dx is a non-elementary function. So the solution can be written as: (2x+y)2e−x2−xe−x2+∫e−x2dx=C.