Rearranging the equation:
dxdy−xy=e2x2
This is a first-order linear differential equation of the form dxdy+P(x)y=Q(x), where P(x)=−x and Q(x)=e2x2.
The integrating factor is:
I.F.=e∫P(x)dx=e∫(−x)dx=e−2x2
Using the standard solution formula:
y⋅I.F.=∫Q(x)⋅I.F.dx+C
y⋅e−2x2=∫e2x2⋅e−2x2dx+C
Since e2x2⋅e−2x2=e0=1, this simplifies to:
y⋅e−2x2=∫1dx+C
y⋅e−2x2=x+C
Multiplying both sides by e2x2:
y=(x+C)e2x2
where C is an arbitrary constant.