Differential Equation ODE Solution help.

In summary, y(y+x+1)dx+(x+2y)dy=0. Differentiating with respect to x, you get back to the original differential equation.
  • #1
Physics345
250
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
  • #2
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
  • #3
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.
 
  • #4
Even people who are not geniuses can do this and always should!
 
  • Like
  • Haha
Likes Mark44, Physics345 and DrClaude

1. What is a differential equation?

A differential equation is a mathematical equation that describes the relationship between a function and its derivatives. It involves the use of derivatives to model the rate of change of a system over time.

2. What is an ordinary differential equation (ODE)?

An ordinary differential equation (ODE) is a type of differential equation that involves a single independent variable and one or more derivatives of a dependent variable with respect to that independent variable. It is commonly used to model physical systems in various fields of science and engineering.

3. How do you solve a differential equation?

The method for solving a differential equation depends on its type and complexity. Some common techniques include separation of variables, substitution, and integrating factors. In some cases, numerical methods such as Euler's method or Runge-Kutta methods may be used.

4. What is an initial value problem (IVP)?

An initial value problem (IVP) is a type of differential equation that involves finding a solution that satisfies both the equation and a set of initial conditions. These initial conditions specify the values of the dependent variable and its derivatives at a given point in the independent variable.

5. How can I check if my solution to a differential equation is correct?

To check if a solution to a differential equation is correct, you can substitute the solution into the equation and see if it satisfies the equation. You can also graph the solution and compare it to the behavior of the system in real life to see if it is a reasonable representation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
765
Replies
4
Views
507
  • Calculus and Beyond Homework Help
Replies
14
Views
256
  • Calculus and Beyond Homework Help
Replies
2
Views
508
  • Calculus and Beyond Homework Help
Replies
25
Views
355
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
765
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
738
  • Calculus and Beyond Homework Help
Replies
5
Views
736
Back
Top