Solution:
Key idea: The right side depends only on x+y. Putting v=x+y turns the equation into one in v and x whose variables separate.
Step 1 — Substitute v = x + y.
We put v=x+y; then dxdv=1+dxdy, so dxdy=dxdv−1.
dxdv−1=2v−1v+2
We add 1 to both sides and use a common denominator.
dxdv=2v−1v+2+2v−1
dxdv=2v−13v+1
Step 2 — Separate the variables.
We bring every v to the left.
3v+12v−1dv=dx
Step 3 — Rewrite the integrand.
We divide 2v−1 by 3v+1. Since 32(3v+1)=2v+32, the remainder is −35.
3v+12v−1=32−3(3v+1)5
Step 4 — Integrate both sides.
We use ∫3v+1dv=31ln∣3v+1∣.
32v−95ln∣3v+1∣=x+C
We multiply every term by 9 and call the new constant C1.
6v−5ln∣3v+1∣=9x+C1
Step 5 — Return to x and y.
We put back v=x+y.
6(x+y)−5ln∣3x+3y+1∣=9x+C1
We move 9x to the left and collect terms.
6y−3x−5ln∣3x+3y+1∣=C1
Watch out: Dividing by 3v+1 in Step 2 sets aside the line y=−x−31, where 3x+3y+1 is zero. On this line the slope is −1. The right side of the given equation there is −5/35/3. This also equals −1, so the line is a solution too. It is not given by any value of C (the logarithm is undefined there).
Therefore, the general solution is 6y−3x−5ln∣3x+3y+1∣=C, where C is an arbitrary constant.