1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Second Order Differential Equation

  1. Oct 17, 2008 #1
    This is the question word for word:

    a) Solve the initial value problem: [tex] x'' + x = 2cos(\omega t) ; x(0) = 0 ; x'(0) = 0 ; \omega != 1 [/tex]

    b) repeat but with \omega = 1
    c) use the trigonometric identity: [tex] cos(\alpha) - cos(\beta) = -2sin(\frac{\alpha + \beta}{2})sin(\frac{\alpha - \beta}{2}) [/tex]

    i.e. as a sinusoidal function oscillating inside an envelope A(t).
    Determine the function A(t). Show that it is a slowly oscillating function if ! is close
    to 1.

    3. The attempt at a solution

    a) [tex] \lambda^2 + 1 = 0 [/tex] Solving for general inhomogeneous.

    [tex] \lambda = \frac{+}{} i [/tex]

    Therefore: [tex] x_{gi} = Ae^{it} + Be^{-it} [/tex] Where A and B are arbitrary constants.

    Now solving for homogeneous solution, take form: [tex] x_p = asin(\omega t) + bcos(\omega t) [/tex]

    where a and b are arbitrary constants, therefore, [tex] x'_p = a\omega cos(\omega t) - b\omega sin(\omega t) [/tex]

    therefore [tex] x''_p = -a\omega^2 sin(\omega t) - b\omega^2 cos(\omega t) [/tex]

    Subbing these values in for the IVP yields:

    [tex] -a\omega^2 sin(\omega t) - b\omega^2 cos(\omega t) + x_p = asin(\omega t) + bcos(\omega t) = 2cos(\omega t) [/tex]

    By equating co-efficients; [tex] b - b\omega^2 = 2 [/tex]

    and [tex] a - a\omega^2 = 0 [/tex]

    Therefore the homogeneous solution = [tex] \frac{2cos(\omega t)}{1-\omega^2} - \frac{2\omega^2 cos(\omega t)}{1-\omega^2} [/tex]

    Common factor taken out [tex] \frac{2cos(\omega t)}{1-\omega^2}(1-\omega^2) = 2cos(\omega t) [/tex]

    General homogeneous solution = [tex] Ae^{it} + Be^{-it} + 2cos(\omega t) [/tex] By using the initial conditions:

    [tex] A + B + 2 = 0 [/tex]

    and [tex] Ai - Bi = 0 [/tex]

    This implies: [tex] A = B = -1 [/tex]

    Therefore particular homogeneous solution = [tex] x(t) = -e^{it} - e^{-it} + 2cos(\omega t) [/tex]

    b) This is the first part that confuses me, before I factored out [tex] 1 - \omega^2 [/tex] and cancelled, I could not have omega = 1 because it would be dividing by zero, but since I cancelled it allows me to. Did I make an error in cancelling? It would seem logically that I did due to the nature of the question. So I know my answer is going to either be undefined, or:

    [tex] -e^{-it} - e^{it} [/tex]

    c) Once again I'm not entirely sure how to approach this, I can see that my solution:

    [tex] \frac{2cos(\omega t)}{1-\omega^2} - \frac{2\omega^2 cos(\omega t)}{1-\omega^2} [/tex]

    loosely fits the trig identity given, but it has constant coefficients and I'm not sure what to do with them. Also the terms inside the cosine function are identical, so it's not really:

    [tex] cos(\alpha) + cos(\beta) [/tex] unless alpha = beta which is possible, but I am doubting it due to the way the question is worded.



    So I assume that either it's correct, and I just need someone to read over it so that I know if I'm on the right track, or waaay off, or it's full of mistakes.

    Thanks in advance,
     
  2. jcsd
  3. Oct 17, 2008 #2

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    It might be better to use the real solutions [itex]C_1 sin(\omega t)+ C_2 cos(\omega t)[/tex] rather than the complex exponentials as you have. That, at least would make it clear why the solution that works for (a) will not work for [itex]\omega= 1[/itex]. Have you learned anything about what to do if the "right hand side" of a non-homogeneous equation is already a solution to the related homogeneous equation?

    For example, the general solution to dy/dx- y= 0 is y= Cex. What would you do with dy/dx- y= ex?
     
  4. Oct 17, 2008 #3
    Thanks for the quick response,

    I'm not sure if I am interpreting what you said about the complex exponential correctly, but I think you're saying to ignore the imaginary parts of the solution,

    So it looks like: [tex] x(t) = -e^{-it} - e^{-it} + 2cos(\omega t) [/tex]

    and then this becomes [tex] -cos(t) - isin(t) - cos(t) + isin(t) + 2cos(\omega t) [/tex]
    The imaginary parts cancel, and as omega = 1, so do the real parts so we're left with x(t) = 0

    Also, I just skimmed over my lecture notes again and can't see or recall anything showing what to do if the RHS is related to the solution. Is using this knowledge the only way to solve this question?
    Cheers,
     
  5. Oct 17, 2008 #4
    So I thought a bit harder about the complex exponential and re-wrote it like this before I solved for A and B:

    [tex] Ae^{it} + Be^{-it} + 2cos(\omega t) = 0 [/tex] Therefore:

    [tex] A[cos(t) + isin(t)] + B[cos(t) - isin(t)] + 2cos(\omega t) = 0 [/tex]

    [tex] (A + B)cos(t) + (Ai - Bi)sin(t) + 2cos(\omega t) = 0 [/tex]

    [tex] Let A + B = C_1 and Ai - Bi = C_2 [/tex]

    Therefore:

    [tex] C_1cos(t) + C_2sin(t) + 2cos(\omega t) = 0 [/tex]

    and from the other initial condition:

    [tex] -C_1sin(t) + C_2cos(t) - 2\omega sin(\omega t) = 0 [/tex]

    Therefore: [tex] C_1 = -2 and C_2 = 0 [/tex]

    So: [tex] x(t) = -2cos(t) + 2cos(\omega t) [/tex] and if omega = 1, x(t) = 0.

    Is this more correct than my previous post? Or does it look like I've made mistakes?
    Thanks,

    EDIT: Oh my! I just realised that it's taken the form required for part c) (pardon my slowness). Thanks so much for all the help so far, if someone would be so kind to let me know if what I've done is right so far (whenever they have time) it would be greatly appreciated.
     
  6. Oct 18, 2008 #5
    Okay, so everything seems to be coming along ok so far, now I need to take a limit of [tex] x(t) = -2cos(t) + 2cos(\omega t) [/tex] as omega approaches 1, using l'hopital's rule.

    That despite the fact that t is the variable that x is dependent upon, in order to take a limit of omega, I have to differentiate x(t) with respect to omega.

    I'm probably doing this wrong because I can't recall having done it before (it may not have been taught thoroughly as it is a bonus question) but this is what I've got:

    [tex] \frac{d}{d\omega} [-2cos(t) + 2cos(\omega t)] = -2tsin(\omega t) [/tex]
    and as omega approaches 1, x approaches zero. Despite the fact that this is the correct answer, I'm not sure if I went about the correct method.

    Thanks
     
  7. Oct 18, 2008 #6
    Although math professor may not agree but I think the problem is perfectly set up to be solved by Laplace transform. The differential equation describes the response of an undamped 2nd order system with [tex]\omega_{n}=1[/tex], excited by a steady sinusoid at t>0 while it's completely at rest for t<0, which are classical engineering phenomenons -- beat and resonance.

    When [tex]\omega \neq \omega_{n}[/tex], it beats, or amplitude modulated. The solution is in form of [tex]A \sin \dfrac{(\omega-\omega_{n})t}{2}sin \dfrac{(\omega+\omega_{n})t}{2}[/tex].

    When [tex]\omega = \omega_{n}[/tex], it resonates, the solution is unbounded, something like [tex]B*t \sin(\omega t) [/tex]

    Let me find out the A and B tomorrow.
     
  8. Oct 18, 2008 #7
    Hmmm okay thanks for that, but I don't really see how it helps sorry.
    I'm pretty sure that I've got everything up until the limit correct, if anyone has spare time in the next day or two to check that I would greatly appreciate it. As for the limit I have a big feeling that I've done it wrong, but I don't know how else I would do it, I could possibly differentiate implicitly instead of letting t remain constant. However it could get messier than necessary.

    As for all of the spring stuff and laplace transformations, we have not been taught laplace yet and there is nothing in the question defining spring systems, so is what you posted earlier an assumption klondike? Or is it a rule?

    Thanks
     
  9. Oct 18, 2008 #8

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    Ahh, you know me don't you!:devil:

    Rake MC, one thing most people learn early in an introductory differential equations course is, "if the right hand side of a non-homogeneous equation contains one of the solutions to the corresponding homogeneous equation, then you multiply the that function by the independent variable to get the specific solution.

    In other words, if the differential equation is x"+ x= cos(t) you know that the solution to x"+ x= 0 involves sin(t) and cos(t) so just "Acos(t)" itself will not work as a solution to the entire equation: it will give 0 no matter what A is.

    So mutiply the general solution, A cos(t)+ B sin(t), by t to try a solution of the form At cos(t)+ Bt sin(t). If x= At cos(t), then x'= A cos(t)- A t sin(t)+ B sin(t)+ Bt cos(t) and x"= -2A sin(t)- At cos(t)+ 2B cos(t)- B t sin(t). x"+ x'= -2A sin(t)- At cos(t))+ 2B cos(t)- Bt sin(t)+ At cos(t)+ Bt sin(t)= -2Asin(t)+ 2B cos(t) and that must be equal to cos(t). Take A= 0, B= 1/2 so the general solution is x(t)= C cos(t)+ D sin(t)+ (1/2)t sin(t).

    Notice that while the sine and cosine solutions you get for [itex]\omega\ne 1[/itex] are bounded, this solution is not. This is referred to as "resonance".
     
  10. Oct 18, 2008 #9
    Thanks a heap for that HallsofIvy and Klondike.

    I do vaguely recollect that you had to multiply through if you have the same term in your solution.

    you said that -2Asin(t) + 2Bcos(t) has to equal cos(t), but in the question it says [tex] x'' + x = 2cos(\omega t) [/tex]

    Is that what you meant, or if not why would it only equal 2cos(t)?

    Also, you say that my general form would be Atcos(t) + Btsin(t), I can accept this. But do I have to do anything with the omega? I acknowledge that it's a constant, but it's an unknown constant nonetheless.

    With my previous mistakes aside, was I on the right track with what you said about the complex exponential?
    Cheers.
     
  11. Oct 18, 2008 #10
    b-bw^2 = 2
    a-aw^2 = 0

    these don't make sense though. If you solve the equation, dont you get w = +/- 1 ? meaning to say b - b(1) = 2? << shouldn that be b- b(1) = 0? That doesnt match.

    I doubt something went wrong in your particular solution. x(p) = asin(wt) + bcos(wt) . As far as i could remember, the lecturer said to find the particular solution, differentiate R(t) = 2cos(wt) to get the terms required. In this case, you will need cos(wt), w(sin(wt), w^2(cos(wt)) . Please correct me if I am wrong. Cheers.
     
  12. Oct 20, 2008 #11
    Rake, I think you got the particular integral wrong. Once you sort the complete solution out for w!=1, you can take the limit as w approaches 1 to solve the second problem.

    The other way to solve it is write the excitation in complex form 2e^(jwt), recall that y_p=(te^(jwt))/P'(jw) if jw is a simple pole where P(D) is D^2+1 in your case. because the excitation is cos, you take the real part of y_p and throw the imaginary part away.

    You could also use convolution if you have been taught the concept of system transfer function.

    Lastly, doing it with Laplace transform takes 1 minute by looking up my collection of LT table:)

    By the way, I'm having big problem with Latex after switching to the new server. If I do a preview post, all my latex typing show stale image which I posted to other threads. Am I the only one having the problem?


     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Second Order Differential Equation
Loading...