Solving an ODE- I don't freaking know how

  • Thread starter Yann
  • Start date
  • Tags
    Ode
In summary: I would be very pleased to have a letter of recommendation from you- but I am a 70 year old retired math professor. Who would I send that letter to?
  • #1
Yann
48
0
I missed a course and now I have to solve an ODE, I don't freaking know how :)

[tex](ax+by)dx+(kx+ly)dy=0[/tex]

So, I have to know on what condition this equation is exact (1), and I have to find the exact equation (2). Well if a, b, k and l = 0 then it's certainly over but i guess it's not really the point.

Let's say M(x,y) = ax+by and N(x,y) = kx+ly, IF I'm right, the ODE is exact when;

[tex]\frac{\partial M(x,y)}{\partial y}=\frac{\partial N(x,y)}{\partial x}[/tex]

Then;

[tex]\frac{\partial (ax+by)}{\partial y}=\frac{\partial (kx+ly)}{\partial x}[/tex]

[tex]b=k[/tex]

So my answer to the first question is; is it exact when b = k. And to show how sure I am (not...) I'll say c = b = k for the next part of this question. However, intuitively, i'd say the winning condition is when a and l = 0, and b = -k, (b=c,k=-c) then by integrating you'll got bxy+kxy = 0, so cxy-cxy=0, 0=0.

And then, I don't know what method to use to find the exact ODE.
 
Last edited:
Physics news on Phys.org
  • #2
Yes, it is true that the differential M(x,y)dx+ N(x,y)dy is "exact" when there exist some function f(x,y) such that
[tex]\frac{\partial f}{\partial x}= M(x,y)[/tex]
and
[tex]\fract{\partial f}{\partial y}= N(x,y)[/tex]
and that requires, in order that
[tex]\frac{\partial^2f}{\partial x\partial y}= \frac{\partial^2f}{\partial y\partial x}[/tex]
that
[tex]\frac{\partial M(x,y)}{\partial y}=\frac{\partial N(x,y)}{\partial x}[/tex]

So your differential equation (ax+by)dx+(kx+ly)dy=0
will be an exact equation if and only if b= k. But I don't know what you mean by "find the exact equation"! Obviously, the exact equation is
(ax+ by)dx+ (bx+ ly)dy when b= k. Is it possible that you mean "find the general solution to the exact equation"??

An equation is exact if and only if the left hand side is an exact differential: For some f(x,y), df= M(x,y)dx+ N(x,y)dy which means that we must have [tex]\frac{\partial f}{\partial x}= M(x,y)[/tex] and that [tex]\frac{\partial f}{\partial y}= N(x,y)[/tex].

In particular, if df= (ax+ by)dx+ (bx+ ly)dy we must have
fx= ax+ by and fy= bx+ ly. Since the partial derivative wrt x is taken by treating y as a constant, we can "back out" by taking the anti-derivative treating y as a constant: f(x,y)= (1/2)ax2+ bxy+ g(y). "g(y)" is the constant of integration". Since we are treating y as a constant, it could be any function of y. Now differentiate that with respect to y: fy= bx+ g'(y)= by+ ly. Precisely because we set k= b, the x terms cancel and we have g'(y)= ly. Integrating that, g(y)= (1/2)ly+ C (since g is a function of y only, that C really is a constant). Putting that into the equation of f(x,y),
f(x,y)= (1/2)ax2+ bxy+ (1/2)ly. Since df= 0 according to the equation, f(x,y) must equal a constant:
(1/2)ax2+ bxy+ (1/2)ly= C is the general solution to the equation.
 
  • #3
wow. Thanks, you really took time to answer and it's appreciated.

So...

[tex](ax+by)dx + (kx+ly)dy = 0[/tex]

To be exact, b must be equal to k

And the general answer is;

[tex]f(x,y) = \frac{ax^2}{2}+byx+\frac{ly^2}{2}[/tex]

f(x,y) is equal to a constant because df = 0 (but it could still be written, f(x,y) = ... + C no ?)

[tex]C = \frac{ax^2}{2}+byx+\frac{ly^2}{2}[/tex]

That's clear. However you wrote at the general answer "ly/2" and I got "ly^2/2". It doesn't make more sense ? If "ly/2", then how can you get "ly" when you derive f(x,y) ? And another thing, is there a way to test that answer numerically with Maple (don't know MatLab or Mathematica yet...) ?

Thanks a lot for your time. If you ever need a letter of recommendation from an unknown "non-math major" non-american undegraduate student with a lot of trouble writting in english, I'm your man.
 
Last edited:
  • #4
"f(x,y) is equal to a constant because df = 0 (but it could still be written, f(x,y) = ... + C no ?"

No. f(x,y)= (1/2)ax2+ bxy+ (1/2)cy2+C is simply a function in two variables and does not define y, even implicitly, as a function of x. Either (1/2)ax2+ bxy+ (1/2)cy2+C= 0 or, same thing, (1/2)ax2+ bxy+ (1/2)cy2= C does.

"However you wrote at the general answer "ly/2" and I got "ly^2/2". It doesn't make more sense ? "

Yes! I messed up the superscripts in "(1/2)ax2+ bxy+ (1/2)ly= C"!

By the way, your English is far better than my (put practically any language here!).
 

FAQ: Solving an ODE- I don't freaking know how

How do I solve an ODE?

Solving an ODE (ordinary differential equation) involves finding the function that satisfies the given differential equation. This can be done using various methods such as separation of variables, substitution, or using an integrating factor.

What are the steps for solving an ODE?

The general steps for solving an ODE are as follows:

  • Step 1: Identify the type of ODE (linear, separable, exact, etc.)
  • Step 2: Rewrite the ODE in its standard form
  • Step 3: Solve the ODE using the appropriate method
  • Step 4: Check your solution by plugging it back into the original equation

How do I choose the appropriate method for solving an ODE?

The method for solving an ODE depends on its type and characteristics. For example, if the ODE is separable, then the method of separation of variables can be used. If the ODE is linear, then the method of integrating factor can be used. It is important to first identify the type of ODE before choosing a method.

Can software be used to solve an ODE?

Yes, there are various software programs and online tools available that can solve ODEs. These tools use numerical methods to approximate the solution of the ODE. However, it is still important to understand the steps and methods involved in solving an ODE manually.

What are some common mistakes when solving an ODE?

Some common mistakes when solving an ODE include not correctly identifying the type of ODE, making algebraic errors during the solving process, and forgetting to check the solution by plugging it back into the original equation. It is important to be careful and double-check the steps and solutions to avoid these mistakes.

Back
Top