Differential Equation ODE Solution help.

Physics345
Messages
250
Reaction score
23
Homework Statement
y(x+y+1)dx+(x+2y)dy=0
Relevant Equations
(My-Nx)/n
dM/dY = x+2y+1 dN/dx = 1

(My-Nx)/n = 1 Integrating Factor => e^∫1dx= e^x

(xye^x+ye^x+ye^x)dx + (xe^x+2ye^x)dy = 0

dM/dY =xye^x+e^x+2ye^x dN/dx = xye^x+e^x+2ye^x Exact

∫dF/dy * dy = ∫ (xe^x+2ye^x)dy

F = xy*e^x + y^2*e^x + c(x)

dF/dx = xy*e^x + y*e^x + y^2 * e^x + c'(x)

c'(x) = 0

c(x) = c

Therefore, the general solution to the ODE is xye^x + y^2 * e^x + c = 0

Did I miss something here? The doubt stems from c'(x) = 0

Is there any way I can confirm the answers to my ODE solutions?

Thanks for the help everyone.
 
Physics news on Phys.org
Physics345 said:
Problem Statement: y(x+y+1)dx+(x+2y)dy=0
Relevant Equations: (My-Nx)/n

dM/dY = x+2y+1 dN/dx = 1

(My-Nx)/n = 1 Integrating Factor => e^∫1dx= e^x

(xye^x+ye^x+ye^x)dx + (xe^x+2ye^x)dy = 0

dM/dY =xye^x+e^x+2ye^x dN/dx = xye^x+e^x+2ye^x Exact

∫dF/dy * dy = ∫ (xe^x+2ye^x)dy

F = xy*e^x + y^2*e^x + c(x)

dF/dx = xy*e^x + y*e^x + y^2 * e^x + c'(x)

c'(x) = 0

c(x) = c

Therefore, the general solution to the ODE is xye^x + y^2 * e^x + c = 0

Did I miss something here? The doubt stems from c'(x) = 0

Is there any way I can confirm the answers to my ODE solutions?

Thanks for the help everyone.
Differentiate your solution with respect to x, using implicit differentiation. Doing this, you're assuming that y is implicitly a function of x alone. When I did that, I was able to get back to your original differential equation.
 
  • Like
Likes Physics345
Mark44 said:
Differentiate your solution with respect to x, using implicit differentiation. Doing this, you're assuming that y is implicitly a function of x alone. When I did that, I was able to get back to your original differential equation.

xy*e^x + ye^x + xe^x * dy/dx + y^2 * e^x + 2ye^x * dy/dx = 0 divide by e^x

xy + y + x * dy/dx + y^2 + 2y * dy/dx = 0

y(y+x+1)dx + (x+2y)dy = 0

Genius! You're a lifesaver, thanks.
 
Even people who are not geniuses can do this and always should!
 
  • Like
  • Haha
Likes Mark44, Physics345 and DrClaude
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top