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

Linear First Order D.E

  1. May 11, 2005 #1
    Solve y’ – y*tan[x] = 2sin[x].

    I keep arriving at the answer: y = 2ln(sec[x]) / sec[x] - c/sec[x]
    for this question.

    According to my textbook the correct answer is: y = (c - cos[x]) * sec[x]. Can anyone explain how to obtain this answer?

    Thanks :)
  2. jcsd
  3. May 11, 2005 #2


    User Avatar
    Science Advisor
    Homework Helper

    Show us your work.Because of that natural logarithm,the two answers are not equivalent (equal for some value of the integration constant),therefore at least one of them is wrong.

  4. May 11, 2005 #3


    User Avatar
    Staff Emeritus
    Science Advisor

    The text answer is correct. I suspect you overlooked the fact that integrating will give you a ln(y) as well as "ln(sec(x))".

    Since this is a linear equation, you can do the homogeneous and non-homogeneous parts separately. The associated homogeneous equation is just y'- y tan x= 0 or
    y'= y tan x so dy/y= tan x dx= (sin x dx)/cos x.
    To find a solution to the non-homogeneous part you could use "variation of parameters": try a solutution of the form y(x)= u(x) sec(x) (I'm giving away part of the answer there!), differentiate and plug into the equation to find a simple equation for u(x).
    Or just guess a simple solution!
  5. May 11, 2005 #4
    Ah right. Thanks a lot for your help HallsofIvy! I've got it now.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Linear First Order D.E
  1. First order Linear DE (Replies: 2)

  2. First order linear PDE (Replies: 8)