Solveeit Logo

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(x+y)dx + xdy = 0 is

A

x2+y2=cx^2 + y^2 = c

B

2x2y2=c2x^2 - y^2 = c

C

x2+2xy=cx^2 + 2xy = c

D

y2+2xy=cy^2 + 2xy = c

Answer

C

Explanation

Solution

The given differential equation is (x+y)dx+xdy=0(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

  1. Rearrange the equation: dydx+1xy=1\frac{dy}{dx} + \frac{1}{x}y = -1

  2. Identify P(x)P(x) and Q(x)Q(x): P(x)=1xP(x) = \frac{1}{x} and Q(x)=1Q(x) = -1.

  3. Calculate the Integrating Factor (IF): IF=eP(x)dx=e1xdx=xIF = e^{\int P(x)dx} = e^{\int \frac{1}{x}dx} = x

  4. Apply the general solution formula: yIF=Q(x)IF dx+Cy \cdot IF = \int Q(x) \cdot IF \ dx + C xy=x dx+Cxy = \int -x \ dx + C xy=x22+Cxy = -\frac{x^2}{2} + C

  5. Rearrange the solution: x2+2xy=2Cx^2 + 2xy = 2C x2+2xy=cx^2 + 2xy = c

Method 2: Exact Differential Equation

  1. Identify M(x,y)M(x,y) and N(x,y)N(x,y): M(x,y)=x+yM(x,y) = x+y and N(x,y)=xN(x,y) = x.

  2. Check for exactness: My=1\frac{\partial M}{\partial y} = 1 and Nx=1\frac{\partial N}{\partial x} = 1. Since My=Nx\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}, the equation is exact.

  3. Find the potential function f(x,y)f(x,y): f(x,y)=(x+y)dx+g(y)=x22+xy+g(y)f(x,y) = \int (x+y) dx + g(y) = \frac{x^2}{2} + xy + g(y)

  4. Differentiate f(x,y)f(x,y) with respect to yy: fy=x+g(y)=x\frac{\partial f}{\partial y} = x + g'(y) = x, so g(y)=0g'(y) = 0.

  5. Integrate g(y)g'(y): g(y)=C1g(y) = C_1

  6. Substitute back into f(x,y)f(x,y): f(x,y)=x22+xy=cf(x,y) = \frac{x^2}{2} + xy = c x2+2xy=cx^2 + 2xy = c

Both methods yield the same solution: x2+2xy=cx^2 + 2xy = c.