ODE - interpretation of solution.

In summary, Benny is seeking help with understanding a substitution used in an example problem involving a higher order differential equation. The substitution used is y = vx and the equation is transformed into a new form by substituting x = exp(t) and using the chain rule. The book states that this substitution leads to an equation in which the new independent variable t is absent except in the form d/dt. Benny is seeking clarification on how this is achieved and what specific technique is being used in the example problem.
  • #1
Benny
584
0
Can someone please help me out with the following question?

Q. A simple harmonic oscillator, of mass m and natural frequency w_0, experiences an oscillating driving force f(t) = macos(wt). Therefore its equation of motion is:

[tex]\frac{{d^2 x}}{{dt^2 }} + \omega _0 ^2 x = a\cos \left( {\omega t} \right)[/tex]

Given that at t = 0 we have x = dx/dt = 0, find the function x(t). Describe the solution if w is approximately, but not exactly, equal to w_0.

I got:

[tex]y\left( t \right) = \frac{a}{{\left( {\omega _0 ^2 - \omega ^2 } \right)}}\left( {\cos \left( {\omega t} \right) - \cos \left( {\omega _0 t} \right)} \right)[/tex]

The answer says a couple of things about the behaviour of the solution for w ~ w_0 but I can't figure out how they got it. For instance "for large t it shows beats of maximum amplitude 2((w_0)^2 - w^2)^-1." How is that deduced and how would I determine which are the main characterstics of motion that I need to note. Any help would be appreciated.
 
Last edited:
Physics news on Phys.org
  • #2
Benny. If you saw my earlier post, sorry. I worked the wrong problem (your answer is correct after all). Just cleaner to delete my post which I did.

How about some plots with the solution getting closer and closer to resonance?

Salty
 
Last edited:
  • #3
Alright Benny, I'm hesitant to open my mouth now since I tripped you up. Let me attempt to save some face:

Beating occurrs when the natural response and forced response have approximately the same frequency. You can see this by plotting them separately:

[tex]y1(t)=\frac{a}{\omega_0^2-\omega^2} Cos(\omega t)[/tex]

[tex]y2(t)=\frac{a}{\omega_0^2-\omega^2} Cos(\omega_0 t)[/tex]

The first plot shows this. They gradually go out of phase and then back again. Thus the difference of the cosines will go from 0 to 2 right. Thus the beating amplitude will be:

[tex]\frac{2 a}{\omega_0^2-\omega^2}[/tex]

This is seen with the second plot. Ok, I think I better quit while I'm somewhat ahead. :smile:

Edit: plotting parameters were:
a=2
[tex]\omega_0=1[/tex]
[tex]\omega=0.95[/tex]
 

Attachments

  • near resonance beats.JPG
    near resonance beats.JPG
    14.3 KB · Views: 377
  • combined forced resonance.JPG
    combined forced resonance.JPG
    10.7 KB · Views: 427
Last edited:
  • #4
Thanks for the help Saltydog. Don't worry about your first post, I didn't see it anyway. :biggrin:

I've got another question but I don't really want to start a new thread so I'll post it here. It's an example from my book that I don't understand part of.

[tex]
x^3 \frac{{d^2 y}}{{dx^2 }} - \left( {x^2 + xy} \right)\frac{{dy}}{{dx}} + \left( {y^2 + xy} \right) = 0
[/tex]

The equation is homogeneous so substitute y = vx. The equation then becomes:

[tex]
x\frac{{d^2 v}}{{dx^2 }} - \left( {1 - v} \right)\frac{{dv}}{{dx}} = 0
[/tex]

I understand how to determine the substitution, the next substitution is what I don't understand the workings of. "Now substitute x = exp(t) into the above equation and we obtain (after some working)"

[tex]
\frac{{d^2 v}}{{dt^2 }} - v\frac{{dv}}{{dt}} = 0
[/tex]

My book says that "the change in independent variable x = exp(t) leads to an equation in which the new indepedent variable t is absent except in the form d/dt." Can someone please explain how this is so? I can't see which manipulations to the equation are required to get to what the book says.
 
  • #5
Benny said:
Thanks for the help Saltydog. Don't worry about your first post, I didn't see it anyway. :biggrin:

I've got another question but I don't really want to start a new thread so I'll post it here. It's an example from my book that I don't understand part of.

[tex]
x^3 \frac{{d^2 y}}{{dx^2 }} - \left( {x^2 + xy} \right)\frac{{dy}}{{dx}} + \left( {y^2 + xy} \right) = 0
[/tex]

The equation is homogeneous so substitute y = vx. The equation then becomes:

[tex]
x\frac{{d^2 v}}{{dx^2 }} - \left( {1 - v} \right)\frac{{dv}}{{dx}} = 0
[/tex]

I understand how to determine the substitution, the next substitution is what I don't understand the workings of. "Now substitute x = exp(t) into the above equation and we obtain (after some working)"

[tex]
\frac{{d^2 v}}{{dt^2 }} - v\frac{{dv}}{{dt}} = 0
[/tex]

My book says that "the change in independent variable x = exp(t) leads to an equation in which the new indepedent variable t is absent except in the form d/dt." Can someone please explain how this is so? I can't see which manipulations to the equation are required to get to what the book says.

Hello Benny. Let's start with:

[tex]xv^{''}+(1-v)v^{'}=0[/tex]

and:

[tex]x(t)=e^t[/tex]

Now:

[tex]\frac{dv}{dt}=e^t\frac{dv}{dx}[/tex]

and:

[tex]\frac{d^2v}{dt^2}=e^t\frac{dv}{dx}+e^t\frac{d^2v}{dx^2}e^t[/tex]

Did you remember to differentiate [itex]\frac{dv}{dx}[/itex] with respect to t?

You can finish it now I bet. :smile:

Edit: Oh yea, I got a plus up there too. See it?
 
Last edited:
  • #6
benny, can you explain what you did here (what method you used, what chapter are you on, reduction of order?)

[tex]
x^3 \frac{{d^2 y}}{{dx^2 }} - \left( {x^2 + xy} \right)\frac{{dy}}{{dx}} + \left( {y^2 + xy} \right) = 0
[/tex]

The equation is homogeneous so substitute y = vx. The equation then becomes:
[tex]
x\frac{{d^2 v}}{{dx^2 }} - \left( {1 - v} \right)\frac{{dv}}{{dx}} = 0
[/tex]
 
Last edited:
  • #7
actually seems that you've used the [tex]y=vx,~y'=v'x+v[/tex], I've seen this for first order differential equations, never applied it to second order. I suppose one can extend it to

[tex]y''=v''x+2v'[/tex]

(just finished up with differential course, summer, short session...which I aced by the way, nevertheless didn't cover everything adequately I imagine-1 month course)
 
  • #8
Thanks for the help Saltydog. The first part with the chain rule was what I didn't think about doing, didn't even realize that I needed to use the chain rule in some way.

GCT - I'm using "mathematical methods for physics and engineering" which I got mainly because it gives a rather extensive 'overview' of a lot of topics that I need to know about. The section that I'm on is higher order differential equations - more specifically I'm looking at the part on "isobaric equations" where substitutions of the form y = v(x^m) are made. In the case of m = 1 they call it a homogeneous equation.

Pretty much all of the standard techniques are covered in the chapter so I'm not completely sure about which specific technique is being examined in the example. I used the chain rule in my own attempt to covert the original equation to the next although I probably made algebraic errors as I rushed through it as a quick verification.

I've only started DEs, a bit of preparation for next semester. Good work with your summer course I guess. I don't think I could ever do well in such a short amount of time. Well I never do particularly well but I do worse over short periods of time.:D
 
  • #9
Benny said:
Thanks for the help Saltydog. Don't worry about your first post, I didn't see it anyway. :biggrin:

I've got another question but I don't really want to start a new thread so I'll post it here. It's an example from my book that I don't understand part of.

[tex]
x^3 \frac{{d^2 y}}{{dx^2 }} - \left( {x^2 + xy} \right)\frac{{dy}}{{dx}} + \left( {y^2 + xy} \right) = 0
[/tex]

The equation is homogeneous so substitute y = vx. The equation then becomes:

[tex]
x\frac{{d^2 v}}{{dx^2 }} - \left( {1 - v} \right)\frac{{dv}}{{dx}} = 0
[/tex]

I understand how to determine the substitution, the next substitution is what I don't understand the workings of. "Now substitute x = exp(t) into the above equation and we obtain (after some working)"

[tex]
\frac{{d^2 v}}{{dt^2 }} - v\frac{{dv}}{{dt}} = 0
[/tex]

My book says that "the change in independent variable x = exp(t) leads to an equation in which the new indepedent variable t is absent except in the form d/dt." Can someone please explain how this is so? I can't see which manipulations to the equation are required to get to what the book says.

By the way Benny, can you take this one a step further? That is, solve for v(t)? Or even better, solve the original problem through to completion? Say for initial conditions:

[tex]y(0.1)=0[/tex]

[tex]y'(0.1)=1[/tex]

Or whatever initial conditions make sense. Note that it's singular at x=0. We can let:

[tex]v'=p[/tex]

Thus:

[tex]v''=\frac{dp}{dt}=\frac{dv}{dt}\frac{dp}{dv}=p\frac{dp}{dv}[/tex]

Can you solve for v(t) and then get some expression for y(x)? I'll work on it too.
 
  • #10
Well I've got the general solution seeing as it's an example from my book. You've suggested to me a few times to try using some initial conditions. I'm just wondering if the ones you've given me were arbitrarily chosen or if you knew that they would satisfy the general solution if I found it correctly. I mean, if I had a general solution for some DE then it's not all that difficult to choose 'nice' ICs which would suit the equation well. Is there a particular reason why ICs should be used? Is it a good check?
 
  • #11
Benny said:
Well I've got the general solution seeing as it's an example from my book. You've suggested to me a few times to try using some initial conditions. I'm just wondering if the ones you've given me were arbitrarily chosen or if you knew that they would satisfy the general solution if I found it correctly. I mean, if I had a general solution for some DE then it's not all that difficult to choose 'nice' ICs which would suit the equation well. Is there a particular reason why ICs should be used? Is it a good check?

These are just arbitrarily chosen away from the singularity x=0. This is just to check the results. Another way is to back-substitute the solution into the ODE. You know, just getting the answer is often not good enough. Applying it to a real example (IVP problem) allows one to obtain an intutitive understanding of what's going on with the ODE. :smile:
 
  • #12
Yeah ok, I see what you mean. I'll try it with some other problems that I'll be doing when 2nd semester starts next week. In the mean time I'll just be brushing up on integration and some DEs to prepare. :biggrin:
 
  • #13
Just a summary:


Starting with:

[tex]x^3 \frac{{d^2 y}}{{dx^2 }} - \left( {x^2 + xy} \right)\frac{{dy}}{{dx}} + \left( {y^2 + xy} \right) = 0[/tex]

make the substitution y=xv(x) we obtain:

[tex]x\frac{{d^2 v}}{{dx^2 }} - \left( {1 - v} \right)\frac{{dv}}{{dx}} = 0[/tex]

Making the substitution:

[tex]x=e^t[/tex]

give us:

[tex]\frac{{d^2 v}}{{dt^2 }} - v\frac{{dv}}{{dt}} = 0[/tex]

Letting:

[tex]v^{'}=p[/tex]

[tex]v^{''}=p\frac{dp}{dv}[/tex]

gives us:

[tex]\frac{dp}{dv}-v=0[/tex]

and so:

[tex]p=\frac{v^2}{2}+c_1[/tex]

Thus:

[tex]\frac{dv}{dt}=\frac{v^2}{2}+c_1[/tex]

Separating variables and solving:

[tex]v(t)=\sqrt{c_1}Tan\left[\sqrt{c_1}(t/2+c_2)\right][/tex]

Since:

[tex]x=e^t[/tex]

We obtain for y:

[tex]y(x)=x\left(\sqrt{c_1}Tan\left[\sqrt{c_1}(\frac{ln(x)}{2}+c_2)\right]\right)[/tex]

I back-substituted this into the ODE and obtained the desired result, 0.

I then solved the initial value problem:

[tex]x^3 \frac{{d^2 y}}{{dx^2 }} - \left( {x^2 + xy} \right)\frac{{dy}}{{dx}} + \left( {y^2 + xy} \right) = 0;\quad y(0.1)=0 \quad y^{'}(0.1)=1[/tex]

solving for [itex]c_1[/itex] and [itex]c_2[/itex], I get:

[tex]y(x)\approx x\left(\sqrt{0.2}Tan\left[\sqrt{0.2}(\frac{ln(x)}{2}+1.1513)\right]\right)[/tex]

The first plot is a numerical analysis of the ODE. The second plot is y(x) as defined above.

I believe this is correct. Benny, I assume you obtained this answer?
 

Attachments

  • numerical results.JPG
    numerical results.JPG
    4.4 KB · Views: 414
  • analytical results.JPG
    analytical results.JPG
    4.4 KB · Views: 420
Last edited:
  • #14
I haven't tried doing this question since it is an example but the answer provided agrees with yours apart from a few constants but it's clearly only because they've replaced constants after each integrations(thing like c = 2c_1 etc). Thanks for posting a full solution(my book skips steps in almost all examples), I'll analyse it later on.
 

1. What is an ODE?

An ODE, or ordinary differential equation, is a mathematical equation that describes the relationship between a function and its derivatives. It is used to model various real-world phenomena, such as growth, decay, and oscillations.

2. How do you interpret the solution to an ODE?

The solution to an ODE is a function or set of functions that satisfy the given equation. It represents the behavior of the system being modeled and can be used to make predictions or analyze the system's behavior over time.

3. What does the general solution of an ODE mean?

The general solution of an ODE is the most general form of the solution that satisfies the equation. It includes all possible solutions and may contain arbitrary constants that can be determined by applying initial or boundary conditions.

4. What is the difference between an explicit and implicit solution to an ODE?

An explicit solution expresses the dependent variable explicitly in terms of the independent variable, while an implicit solution does not. Implicit solutions may involve both the dependent and independent variables or may be expressed as an equation rather than a function.

5. How do you solve an ODE?

There is no single method for solving ODEs, and the approach may vary depending on the type of equation and its complexity. Some common methods include separation of variables, using integrating factors, and using power series or numerical methods.

Similar threads

  • Introductory Physics Homework Help
Replies
10
Views
250
  • Introductory Physics Homework Help
Replies
4
Views
215
  • Introductory Physics Homework Help
Replies
6
Views
221
  • Introductory Physics Homework Help
Replies
2
Views
617
  • Introductory Physics Homework Help
Replies
2
Views
444
Replies
31
Views
655
Replies
1
Views
137
  • Introductory Physics Homework Help
Replies
17
Views
360
  • Introductory Physics Homework Help
2
Replies
64
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
1K
Back
Top