We have,
dydx=x2(x−2)
dydx=x3−2x2
dy=(x3−2x2)dx
On taking integral both sides, we get
∫dy=∫(x3−2x2)dx
y=x44−2x33+c
At x=0,y=2
So,
2=0−0+c
c=2
Therefore, the general solution
y=x44−2x33+2
Hence, this is the answer.