Given differential equation :
dydx+yx=x2
Given differential equation is of the form
dydx+Py=Q
By comparing both the equations, we get
P=1x and Q=x2
The general solution of the given differential equation is
y(I.F)=∫(Q×I.F.)dx+c ....(i)
Firstly, we need to find I.F.
I.F.=e∫pdx
I.F.=e∫dxx
I.F.=elog x (∵elog x=x)
I.F=x
Substituting the value of I.F in (i), we get
y×x=∫x2.xdx+c
xy=∫x3dx+c
xy=x44+c
Hence, the required general solution is xy=x44+c