Solution:
Concept: The equation contains x+y+1 as one block, so we put z=x+y+1; then dxdz=1+dxdy, and the new equation is separable.
Step 1 — Substitute z=x+y+1.
We differentiate z with respect to x and solve for dxdy.
dxdy=dxdz−1
Step 2 — Write the equation in z.
We replace x+y+1 by z and dxdy by dxdz−1.
z(dxdz−1)=1
dxdz=1+z1
dxdz=zz+1
Step 3 — Separate the variables.
We multiply by z+1zdx and split the fraction, since z=(z+1)−1.
z+1zdz=dx
(1−z+11)dz=dx
Step 4 — Integrate.
We integrate both sides and add one arbitrary constant c1.
z−log∣z+1∣=x+c1
Step 5 — Put back z.
We replace z by x+y+1, so z+1 is x+y+2.
x+y+1−log∣x+y+2∣=x+c1
y−log∣x+y+2∣=c1−1
The number c1−1 is still an arbitrary constant, so we call it c.
Therefore, the general solution is y−log∣x+y+2∣=c, where c is an arbitrary constant.