Skip to main content

Solve (x+y+1)dy/dx=1

Short answer

Treat x as the dependent variable. The equation becomes dx/dy - x = y+1, a linear equation with integrating factor e^{-y}. Solving yields x + y + 2 = c e^y.

Solve the differential equation (x + y + 1) dy/dx = 1.

(x + y + 1) dy/dx = 1

Take x as the dependent variable

dx/dy = x + y + 1 → dx/dy − x = y + 1

This is linear in x with P = −1, Q = y + 1.

Integrating factor

IF = e^(∫(−1)dy) = e^(−y)

Solution

x e^(−y) = ∫ (y + 1)e^(−y) dy

By parts: ∫ (y + 1)e^(−y) dy = −(y + 1)e^(−y) + ∫ e^(−y) dy = −(y + 1)e^(−y) − e^(−y) = −(y + 2)e^(−y)

x e^(−y) = −(y + 2)e^(−y) + c

x = −y − 2 + c eʸ

x + y + 2 = c eʸ

✓ Answer checked by Claude Opus 5.5 (high effort)

All Mathematics I chapter 4 questions →