Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Linear (I think?) First Order Diff EQ

  1. Mar 27, 2008 #1
    So this equation came up:

    xy' + y = cos x

    Now I was just wondering how to solve this, all I've learned how to do is separation of variables, which cannot be used in this case.

    Basically I ask this because a solution for y is an infinite series, so basically I'm just wondering if the infinite series converges to some function of x, and if it does which function is it?
     
  2. jcsd
  3. Mar 27, 2008 #2
    well, i think that deriving an integration factor would work. Like deviding through by x:

    [tex] y'+\frac{1}{x}y=\frac{cosx}{x}[/tex]


    then [tex]r=e^{\int\frac{dx}{x}}=e^{ln|x|}=|x|[/tex] Now multiplying throught we get

    [tex]|x|y'+\frac{1}{x}|x|y=\frac{cosx}{x}|x|=>sgn(x)xy'+\frac{1}{x}sgn(x)xy=\frac{cosx}{x}sgn(x)x=>xy'+y=cosx[/tex]

    Now we notice that on the left side
    [tex]xy'+y=(xy)'[/tex] this way

    [tex](xy)'=cosx=>\int(xy)'dx=\int cosxdx =>xy=sinx+C=>y=\frac{sinx}{x}+x^{-1}C[/tex]
     
    Last edited: Mar 27, 2008
  4. Mar 27, 2008 #3
    What did you need the "integration factor" for?
     
  5. Mar 27, 2008 #4
    Well, i guess i did not need it at all, because it was already in a nice form. I don't know why i did it. Maybe just to show the OP another way of solving diff. eq. since he said that he has learned so far only the method of separation of variables.
     
  6. Mar 27, 2008 #5

    epenguin

    User Avatar
    Homework Helper
    Gold Member

    xy' + x = (xy)' help? :smile:
     
  7. Mar 27, 2008 #6
    well what u did here isn't true..lol....
     
  8. Mar 27, 2008 #7

    epenguin

    User Avatar
    Homework Helper
    Gold Member

    It's true if you saw I obviously meant to write xy' + y = (xy)' stupidmath :biggrin:
     
  9. Mar 27, 2008 #8
    Well first, it is not stupidmath, but rather sutupidmath!

    Well, if you are asking as why xy'+y=(xy)', it is simply the product rule.
    (fg)'=fg'+gf'.
     
  10. Mar 27, 2008 #9
    I'd guess, penguin was not asking this:smile:
     
  11. Mar 27, 2008 #10
    I don't know, why would he write this then? I also was surprised..lol..
     
  12. Mar 27, 2008 #11
    I woudl interpret this as adressing the OP

    xy' + y = (xy)'
    Does this help?

    The mathematical error was most probably just a typo.
     
  13. Mar 27, 2008 #12
    Yeah, that makes sens.
     
  14. Mar 28, 2008 #13

    epenguin

    User Avatar
    Homework Helper
    Gold Member

    Yes I realised it is not stupidmath, but rather sutupidmath. I didn't realise you did! :biggrin: As you saw even I o:) can make a typo!

    I am saying that that formula makes it easy to solve your d.e. Warning, I think it will be paticularly important not to forget the constant of integration.
     
  15. Mar 28, 2008 #14
    HAHAHA....Very funny!!!!!!:rofl:


    Isn't this the same thing, in more details ,what i just wrote above??
     
    Last edited: Mar 28, 2008
  16. Mar 28, 2008 #15

    epenguin

    User Avatar
    Homework Helper
    Gold Member

    Yes it is the formula (fg)'=fg'+gf' applied to xy . Using it can you now solve the problem you asked about?
     
  17. Mar 28, 2008 #16

    I did not ask about anything body! Have you at least read the thread at all, or you are just throwing words here without knowing who you are addressing to????? It was i who actually solved the problem for the OP!!
     
    Last edited: Mar 28, 2008
  18. Mar 28, 2008 #17

    epenguin

    User Avatar
    Homework Helper
    Gold Member

    :redface:Sorry I had not noticed who was posting and assumed I was replying to the OP who I now see never came back!

    :tongue2:And I confess I had not noticed you had solved it as I didn't read beyond the first line or two of your post and immediately thought 'that is unnecessarily complicated'. However congratulations on getting the same right answer as me! :biggrin:
     
  19. Mar 28, 2008 #18
    Sorry, about two minutes after I posted it I realized it was the product rule and slapped myself in the face for not seeing it earlier.
     
  20. Mar 28, 2008 #19
    Yeah, i complicated a lill bit my answer, but i just wanted to show another perspective from the beggining on that problem.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Linear (I think?) First Order Diff EQ
  1. First order PDE (Replies: 4)

Loading...