MHB Solving a Non-Exact ODE: $(y-2x^2y)dx +xdy = 0$

  • Thread starter Thread starter NotaMathPerson
  • Start date Start date
  • Tags Tags
    Ode
Click For Summary
The discussion revolves around solving the non-exact ordinary differential equation (ODE) given by $(y-2x^2y)dx + xdy = 0$. Initial attempts to find an integrating factor using the formula $\frac{M_y-N_x}{N}$ led to $u(x) = -2x$, but this did not yield an exact equation. Participants noted that exponentiating the integral of $(M_y-N_x)/N$ gives a more appropriate integrating factor, specifically $u(x) = e^{-x^2}$. By applying this integrating factor, the ODE can be transformed into an exact form, allowing for a solution to be found. The conversation emphasizes the importance of correctly applying techniques for non-exact ODEs.
NotaMathPerson
Messages
82
Reaction score
0
Solve the ode

$$(y-2x^2y)dx +xdy = 0$$

The equation is in exact form $$Q(x,y)dx+ P(x,y)dy =0$$

When I test for exactness it fails. Then I used the technique $$\frac{M_y-N_x}{N}$$

I get

$u(x)=-2x$ as my integrating factor.

But I end still end up with a non-exact d.e why is that?

$$(-2xy+4x^3y)dx-2x^2dy=0$$
 
Last edited:
Physics news on Phys.org
It's separable. Factor out the $y$ on the $dx$ term.
 
Ackbach said:
It's separable. Factor out the $y$ on the $dx$ term.

Yes i did that already. What I am after is the answer as to why the method i used above did not work.
 
You need to exponentiate the integral of $(M_y-N_x)/N$. That is, in general,
$$u(x)=\exp\left[\int\left(\frac{M_y-N_x}{N}\right)dx\right].$$
I get $u(x)=e^{-x^2}$. See if you agree.
 
NotaMathPerson said:
Solve the ode

$$(y-2x^2y)dx +xdy = 0$$

The equation is in exact form $$Q(x,y)dx+ P(x,y)dy =0$$

When I test for exactness it fails. Then I used the technique $$\frac{M_y-N_x}{N}$$

I get

$u(x)=-2x$ as my integrating factor.

But I end still end up with a non-exact d.e why is that?

$$(-2xy+4x^3y)dx-2x^2dy=0$$

I agree with Ackbach that treating the given ODE as separable is the way to go here. However, if you wish to compute an integrating factor, you should use:

$$\mu(x)=\exp\left(\int -2x\,dx\right)=e^{-x^2}$$

And now, your ODE becomes:

$$\left(e^{-x^2}y\left(1-2x^2\right)\right)dx+\left(xe^{-x^2}\right)dy=0$$

And you can see by inspection this ODE is exact. :)
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K