Question
Question: The general solution of the differential equation $(x+y)dx + xdy = 0$ is...
The general solution of the differential equation (x+y)dx+xdy=0 is

x2+y2=c
2x2−y2=c
x2+2xy=c
y2+2xy=c
C
Solution
The given differential equation is (x+y)dx+xdy=0. This can be solved using two methods: as a linear differential equation or as an exact differential equation.
Method 1: Linear Differential Equation
-
Rearrange the equation: dxdy+x1y=−1
-
Identify P(x) and Q(x): P(x)=x1 and Q(x)=−1.
-
Calculate the Integrating Factor (IF): IF=e∫P(x)dx=e∫x1dx=x
-
Apply the general solution formula: y⋅IF=∫Q(x)⋅IF dx+C xy=∫−x dx+C xy=−2x2+C
-
Rearrange the solution: x2+2xy=2C x2+2xy=c
Method 2: Exact Differential Equation
-
Identify M(x,y) and N(x,y): M(x,y)=x+y and N(x,y)=x.
-
Check for exactness: ∂y∂M=1 and ∂x∂N=1. Since ∂y∂M=∂x∂N, the equation is exact.
-
Find the potential function f(x,y): f(x,y)=∫(x+y)dx+g(y)=2x2+xy+g(y)
-
Differentiate f(x,y) with respect to y: ∂y∂f=x+g′(y)=x, so g′(y)=0.
-
Integrate g′(y): g(y)=C1
-
Substitute back into f(x,y): f(x,y)=2x2+xy=c x2+2xy=c
Both methods yield the same solution: x2+2xy=c.