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!

Solving an ordinary differential equation.

  1. Jul 5, 2012 #1
    1. The problem statement, all variables and given/known data
    Here is an example from the book:

    https://dl.dropbox.com/u/64325990/MATH%20255/EX%204.PNG [Broken]


    Does anyone know why they chose t to be equal to 0?

    Thanks!
     
    Last edited by a moderator: May 6, 2017
  2. jcsd
  3. Jul 5, 2012 #2
    I think it's just convention. Once my DE book used the general x0 as the lower limit (where the independent variable was x).
     
  4. Jul 5, 2012 #3

    Ray Vickson

    User Avatar
    Science Advisor
    Homework Helper

    The point t=0 is special, because the initial condition was given there. However, in the integral you could choose any specific lower limit you want; that would just change the needed value of c. For example, we could choose the lower limit = 2. Then we would have
    [tex] e^{t^2/4}y= \int_2^t e^{s^2/4}\, ds + c,[/tex]
    so we would determine [itex]c[/itex] by equating [itex] e^0 y(0) = y(0) = 1[/itex] to
    [tex] \int_2^0 e^{s^2/4}\, ds + c, [/tex] to get
    [tex] c = 1 - \int_2^0 e^{s^2/4}\, ds = 1 + \int_0^2 e^{s^2/4}\, ds,[/tex] and this gives
    [tex] y = e^{-t^2/4} \left[1 + \int_0^2 e^{s^2/4}\, ds + \int_2^t e^{s^2/4}\, ds \right]\\
    \;\;\; = e^{-t^2/4}\left[1 + \int_0^t e^{s^2/4}\, ds \right].[/tex] You would have gotten this right away if you had used 0 in the lower limit right from the start.

    RGV
     
    Last edited by a moderator: May 6, 2017
  5. Jul 5, 2012 #4

    LCKurtz

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    To add to what others have said, you can write the step before you integrate as$$
    (e^{\frac {t^2} 4}y)' = e^{\frac {t^2} 4}$$
    Now by the fundamental theorem of calculus if you integrate from 0 to t you get $$
    e^{\frac {t^2} 4}y(t)-e^0y(0)=\int_0^te^{\frac {s^2} 4}ds$$The point of using 0 for the lower limit is you know ##y(0)=1##, and it is a simple step to solve for ##y(t)##.
     
  6. Jul 6, 2012 #5

    Curious3141

    User Avatar
    Homework Helper

    I find the neatest way to impose the initial conditions is by using definite integration of both LHS and RHS. The lower bounds correspond to the initial conditions, the upper are left variable. This way you never have to bother to calculate the constant of integration explicitly.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook