Can Constant Velocity be Solved with Separable ODEs?

  • Thread starter whozum
  • Start date
  • Tags
    Diff eq
In summary, the conversation covers a student's attempt at solving a differential equation using integrating factors. They discuss their progress and ask for advice on their approach. The conversation also includes a suggestion to practice solving problems in an orderly progression to gain a better understanding of the subject. The final part of the conversation includes corrections to the student's solution and a recommendation to plot solutions for visual confirmation.
  • #1
whozum
2,221
1
This is probably too hard to be the first problem I try for diff eq. I'm trying to learn this stuff. Question, what's the difference between a homogenous and nonhomogenous one? What problem does this pose in solving the problem?

I want to try this one (jacked from Naeem's post, but I posted separately to avoid hijacking), but I know itll be wrong so here goes:

[tex]y \ dx + (2x - ye^y) \ dy = 0[/tex]

[tex] M(x)dx + N(y)dy = 0 [/tex]

[tex] M(x) = y \mbox{ and } N(y) = 2x - ye^y [/tex]

So then [itex] M_y = 1 \mbox{ and } N_x = 2 [/tex]

We need them to be the same ( why? ) so we need some factor [itex] \mu[/tex] that will make the partial derivatives [itex] M_y = N_x[/itex].

So I'm going on a limb here:

[tex] M(x)_y\mu = N(y)_x\mu [/tex]

[tex] \int{M(x)_y\mu}{dy} = \int{N(y)_x\mu}{dx} [/tex]

[tex] \int{y\mu}{dy} = \int{(2x-ye^y)\mu}{dx} [/tex]

Im stuck here, but I thought of this, will it work?

[tex]y \ dx + (2x - ye^y) \ dy = 0[/tex]

[tex](2x - ye^y) \ dy = -ydx[/tex]

[tex] \ dy = \frac{-ydx}{(2x - ye^y)}[/tex]

[tex] \int dy = \int \frac{y}{2x-ye^y}dx [/tex]

[tex] y = y\int{\frac{1}{2x-ye^y}dx[/tex]

[tex] u = 2x-ye^y \mbox{ and } du = 2 dx [/tex]

[tex] y = \frac{y}{2}\int{1/u}{du} [/tex]

[tex]y = \frac{ln(2x-ye^y)}{2} [/tex]

I messed something up pretty bad, obviously my second idea didnt work. Can someone look over my first attempt and tell me how to continue? Do I treat mu as a function of x? y? both? cosntant?
 
Physics news on Phys.org
  • #2
Nope,u can't integrate the way you did.I believe i solved this equation thrugh other method than finding an integating factor...


Daniel.
 
  • #3
Well I don't know ANY methods, can you tell me its name?
What exactly is the reason I can't integrate like that? Did I make amistake, or is the whole setup bad?

I tried the integrating factor because of what Data said in the post, and because I read an overview of it yesterday (as you know).
 
  • #4
U cannot integrate like u did,because the variables are not completely separated.In the RHS,u should integrate wrt "x" a function depending only of x .

Daniel.
 
  • #5
Is it possible in this problem to satisfy that requirement?

Also, What do I do to find mu in my first attempt?
 
  • #6
Whozum,

Please, allow me to make a kind suggestion: Get a good differential equations book and start doing the problems starting from the first page. Don't jump to equations since the theory is build up. Start with the easy ones, the techniques you learn there are the foundations for the more involved ones. Personally, I feel one needs to work all the problems in one section before going to the next section. Don't jump around in the problem set. If you want to work on #10, do the first 9 first. I used Rainville and Bedient in school and found it easy to follow. We can help you here too.
 
  • #7
Well I read the first two pages of the Diff Eq guide stickied here, and the first page seemed like cake, and they introduce integrating factors in the second. I agree with you, but I want to do this more on the side than commit to it (thats just the way I am, I know its a terrible idea).

Is this that far into diff eq theory? Should I step back a bit?
 
  • #8
whozum said:
Well I read the first two pages of the Diff Eq guide stickied here, and the first page seemed like cake, and they introduce integrating factors in the second. I agree with you, but I want to do this more on the side than commit to it (thats just the way I am, I know its a terrible idea).

Is this that far into diff eq theory? Should I step back a bit?

No. It's not far but it takes lots (usually) of practice to get good with math and that practice is most effectively performed in an orderly progression from simple to advanced: Solving one or two problems of a specific type is not enough. Techniques are learned working with other problems of the same type. You'll miss out on this valuable resource if you just do a few problems like this and a few like that.
 
  • #9
Alright then. i stepped back.

successfully completed:

[tex]y' + 2y = 3[/tex]

[tex]y' + (1/2)y = 2 + t[/tex]

did this one, but I'm not sure if its right:

[tex] 1.) y' + 3y = t + e^{-2t} [/tex] from ExtravagantDream's guide to diff eq.

Here goes:

[tex] p(t) = 3, g(t) = t+e^{-2t}, \mu(t) = e^{\int p(t)dt} = e^{3t} [/tex]

[tex] e^{3t}y' + 3ye^{3t} = (t+e^{-2t})(e^{3t}) [/tex]
Left is the derivative of [itex]y(t)e^{3t}[/tex]. When we integrate both sides we'll get:

[tex] y(t)e^{3t} = e^t + \int{te^{3t}dt [/tex]

I did this by parts with [itex]u = t, du = dt, v = e^{3t}/3, dv = e^{3t}[/itex] and got:

[tex] e^{3t}y(t) = e^t+\frac{e^{3t}}{3} ( t-\frac{1}{3} )[/tex]

Dividing through

[tex] y(t) = e^{-2t} - (1/9) + \frac{t}{3} + ce^{-3t} [/tex]
 
  • #10
#3) Same thing

[tex] t^3\frac{dy}{dt} + 4t^2y = e^{-t} [/tex]

[tex] \frac{dy}{dt} + \frac{4y}{t} = e^{-t}t^{-3} [/tex]

[tex] \mu(t) = e^{\int p(t) dt} = e^{\int{\frac{4}{t}}dt} = e^{4ln(t)} = t^4 [/tex]

[tex] t^4\frac{dy}{dt} + 4t^3y = te^{-t} [/tex]

LHS is the derivative of [itex] y(t)t^4 [/itex] so aftre integrating:

[tex] y(t)t^4 = \int{te^{-t}}{dt} [/tex]

[tex] u = t, du = dt, v = -e^{-t}, dv = e^{-t}dt [/tex]

[tex] y(t)t^4 = \frac{-t}{e^t} - \int{-e^{-t}}{dt} [/tex]

[tex] y(t)t^4 = \frac{-t}{e^t} - e^{-t}[/tex]

[tex] y(t) = \frac{-1}{e^tt^3} - \frac{1}{e^tt^4} = \frac{-1}{e^tt^3}(1+\frac{1}{t})[/tex]
 
  • #11
The last integration, you didn't include a constant of integration. That changes the results. After the last integration, it should be:

[tex]y(t)t^4=\frac{-t}{e^4}-e^{-t}+K[/tex]

or:

[tex]y(t)=-\frac{1}{t^3e^t}-\frac{1}{t^4e^t}+Ke^{-4}[/tex]

Sometimes it's a good idea to back-substitute the solution into the ODE to check it (I didn't above) but if you have a math package, that's easy.

Everything else looks ok to me. Also, there's something about dividing by zero above, or [itex]x^3[/itex]. The solution has a singularity there. I think it's a good idea to routinely plot the solutions to obtain a visual result that you can check against the ODE. The solution will often support assumptions, suspicions, other conclusions drawn during the analysis.
 
  • #12
Did you mean

[tex]y(t)=-\frac{1}{t^3e^t}-\frac{1}{t^4e^t}+Kt^{-4}[/tex] ? the last term.

Since I am dividing by t^4, there would be a singularity at t=0, how do I go about this? Avoid it? Separate the intervals?
 
  • #13
whozum said:
Did you mean

[tex]y(t)=-\frac{1}{t^3e^t}-\frac{1}{t^4e^t}+Kt^{-4}[/tex] ? the last term.

Since I am dividing by t^4, there would be a singularity at t=0, how do I go about this? Avoid it? Separate the intervals?


Yes, I'm sorry. I do like to be as precise as possible with my math. Anyway, the singularity is exhibited as an asymptote at x=0. See attached plot. Don't avoid the singularities; it's part of the overall behavior of the solution. Learn to become comfortable with things like this.

Oh yea, for the plot I just let K=1. It's a good idea, if you want to study the solutions, just let the various constants be 0 or 1 or something else that's simple.
 

Attachments

  • ptemp.JPG
    ptemp.JPG
    3.8 KB · Views: 434
Last edited:
  • #14
I understand, but I'm not sure how to interpret you telling me there was a singularity. Is there anything wrong with this? Or is my solution to the DE correct? What does the singularity mean over all? I know what one is so I don't need that, but does it mean something as a DE solution

I'm very comfortable with singularities :D
 
  • #15
whozum said:
I understand, but I'm not sure how to interpret you telling me there was a singularity. Is there anything wrong with this? Or is my solution to the DE correct? What does the singularity mean over all? I know what one is so I don't need that, but does it mean something as a DE solution

I'm very comfortable with singularities :D

Hum . . . a singularity. I don't think I can give a rigorous definition. Perhaps someone here can. My understanding is that a "qualitative" change occurred, from continuous to discontinuous, from finite slope to infinite slope. Also, a point is called singular when the coefficient in front of the highest derivative is zero there (as in 3 above). With non-linear equations, solutions which are not part of the general solution are called "singular solutions".
 
  • #16
Ok, did a few more:

Successfully completed:

[tex] \frac{dy}{dx} = \frac{x^2}{1-y^2} \textit{ to be } y-\frac{y^3}{3} = \frac{x^3}{3}+c [/tex] Should I solve this? Does it really make a difference?

[tex] \frac{dy}{dt} = \frac{ycos(t)}{1+2y^2} \textit{ to be } lny+y^2 = sin(t)+c [/tex]

[tex]\frac{dy}{dx} = \frac{x^2}{y} \textit{ to be } y=\sqrt{2x^3/3+c} [/tex]

These I'm not sure:

[tex] xdx + ye^{-x}dy = 0, y(0) = 1 [/tex]

[tex] x+ye^{-x}\frac{dy}{dx} = 0 [/tex]

[tex] ydy = -xe^xdx [/tex]

[tex] \frac{y^2}{2} = -\int{xe^x}dx [/tex]

[tex] u = x, du = dx, v = e^x, dv = e^xdx[/tex]

[tex]\frac{y^2}{2} = -(xe^x-e^x+c) = e^x(1-x)+c [/tex]

[tex]y = \sqrt{2e^x(1-x)+c} [/tex]

[tex] 1 = \sqrt{2e^0(1-0)+c} = \sqrt{(2(1)+c} [/tex]

[tex] 1 = c+2, c=-1 [/tex]

[tex] y=\sqrt{2e^x(1-x)-1} [/tex]

And last one

[tex] y^2(1+x^2)^{\frac{1}{2}} +arcsin(x)dx [/tex]

I assumed it was equal to 0, so I solved as well as I could:

[tex] y^2 = \frac{-arcsin(x)dx}{(1+x^2)^{\frac{1}{2}}} [/tex]

Theres a dy missing, I don't think I can just drop one in there from nowhere, and I couldn't see any ways to induce one into the equation. If I multiplied through by dy, I could integrate both sides, the RHS with an iterated integral by Fubini's thm, but I thought that was a stretch for this kind of problem.

Either way, the integration of the RHS doesn't look easy. Can someone give me some feedback? Thanks alot.
 
Last edited:
  • #17
Can anyone look at these? I showed the last one to a friend of mine and he said that it isn't even a DE.
 
  • #18
In case it was a typo and the "dy" was missing,then u can be sure that

[tex] \int \frac{\arcsin x}{\sqrt{1+x^{2}}} \ dx [/tex] is given by the following picture

Daniel.
 

Attachments

  • Integrate.gif
    Integrate.gif
    7.1 KB · Views: 484
  • #19
Is it then safe to assume that that wasnt the intended problem? I don't think a textbook would assign a problem with that solution when introducing DE.
 
  • #21
So I got stumped on this, we all know this equation:

[tex] x(t) = vt + x_0 [/tex]

[tex] x(t) = \frac{dx}{dt} t + x_0 [/tex] is the differential equation right? I got my ass kicked trying to solve this one. Can someone tell me the integrating factor?
 
  • #22
Whozum, you should get a better textbook. The reason you got your ass kicked is that you are far off in math nonsense land. The formula x = vt is not a differential equation; it is the solution to one. Speciffically this equation only applies to constant velocity, so v in this case represents a constant (number) and not the derivative of an unknown function.
 
  • #23
It's not nonsense!

[tex]x(t) = Ct + x_0[/tex]

is the solution to the differential equation

[tex]x(t) = tx^\prime(t) + x_0,[/tex]

as I hope whozum meant with his post.

Rearrange the DE,

[tex]x = x^\prime t + x_0 \Longrightarrow x^\prime t - x = -x_0 \Longrightarrow x^\prime - \frac{x}{t} = -\frac{x_0}{t},[/tex]

to see that the integrating factor necessary is

[tex]I(t) = e^{\int -1/t \ dt} = \frac{k}{t}[/tex]

where [itex]k \neq 0[/itex] is a constant of integration.
 
  • #24
Crosson was right.

[tex] x(t)=vt+x_{0} [/tex] is a solution to a I-st order separable ODE.To prove it,differentiate both sides wrt to 't'...

[tex] \frac{dx(t)}{dt}=\frac{dv(t)}{dt}t+v(t) [/tex]

assume constant velocity and u'll see that the ODE is actually the definition for the "x" component of a constant velocity vector which is integrated as i said,viz.separating variables...

Daniel.
 

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 one or more independent variables, a dependent variable, and its derivatives. It is used to model many real-world phenomena in fields such as physics, engineering, and economics.

2. Why is it important to study differential equations?

Differential equations are important because they provide a powerful tool for understanding and predicting the behavior of dynamic systems. They are used to model and analyze complex phenomena in various scientific and engineering fields. They also have practical applications in areas such as medicine, finance, and climate science.

3. What is the difference between ordinary and partial differential equations?

Ordinary differential equations (ODEs) involve only one independent variable, while partial differential equations (PDEs) involve more than one independent variable. ODEs are used to model systems that change over time, while PDEs are used to model systems that change over both time and space.

4. What are some common techniques for solving differential equations?

Some common techniques for solving differential equations include separation of variables, substitution, and using integrating factors. Other methods, such as Laplace transforms, power series, and numerical methods, may also be used depending on the type of differential equation and its complexity.

5. How are differential equations used in real life?

Differential equations are used in many real-life applications, such as predicting population growth, modeling the spread of diseases, analyzing the behavior of electrical circuits, and optimizing chemical reactions. They are also used in fields like economics and finance to model stock prices and interest rates. Additionally, differential equations are used in designing and controlling complex systems, such as spacecraft and industrial processes.

Similar threads

Replies
2
Views
1K
  • Differential Equations
Replies
1
Views
1K
  • Differential Equations
Replies
4
Views
2K
  • Differential Equations
Replies
2
Views
1K
  • Differential Equations
Replies
14
Views
2K
  • Differential Equations
Replies
1
Views
5K
  • Differential Equations
Replies
4
Views
2K
  • Special and General Relativity
Replies
10
Views
1K
  • Differential Equations
Replies
8
Views
2K
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top