The given differential equation is:
dxdy=xy+x+y+1
Factoring the right side by grouping terms:
dxdy=(xy+x)+(y+1)
dxdy=x(y+1)+1(y+1)
dxdy=(y+1)(x+1)
Separating the variables:
y+1dy=(x+1)dx
Integrating both sides:
∫y+1dy=∫(x+1)dx
For the left side:
∫y+1dy=loge∣y+1∣
For the right side:
∫(x+1)dx=2x2+x
The general solution is:
loge∣y+1∣=21x2+x+C
where C is the constant of integration.