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
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top