Results 1 to 2 of 2

Math Help - initial value problem

  1. #1
    Member
    Joined
    Nov 2006
    Posts
    142

    initial value problem

    I'm in a numerical analysis class and I'm trying to approximate an initial value problem. I get the approximation using Forward Euler and other methods, but I'm not sure what the true answer is. I haven't done ODE's in a while.

    Does anyone know how to solve the problem?
    y'(t) = y - t^2 + 1, t in [0,2]
    y(0) = 2

    Thanks for any help in advance.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Rhymes with Orange Chris L T521's Avatar
    Joined
    May 2008
    From
    Chicago, IL
    Posts
    2,844
    Thanks
    3
    Quote Originally Posted by PvtBillPilgrim View Post
    I'm in a numerical analysis class and I'm trying to approximate an initial value problem. I get the approximation using Forward Euler and other methods, but I'm not sure what the true answer is. I haven't done ODE's in a while.

    Does anyone know how to solve the problem?
    y'(t) = y - t^2 + 1, t in [0,2]
    y(0) = 2

    Thanks for any help in advance.
    This is the same thing as \frac{\,dy}{\,dt}-y=1-t^2

    Now apply the method of the integrating factor, since this equation is linear.

    Thus, our integrating factor is \varrho=e^{-\int\,dt}=e^{-t}

    Thus, we now have \frac{d}{\,dt}\left[e^{-t}y\right]=e^{-t}-t^{2}e^{-t}

    Now, integrate both sides:

    e^{-t}y=-e^{-t}-\int e^{-t}t^2\,dt

    [I leave you to evaluate the integral on the right side of the equation. You will need to apply integration by parts twice.]

    Thus, y=-e^t\cdot\left[\int e^{-t}t^2\,dt\right]+C

    Then apply the initial condition y(0)=2 to find C.

    Can you take it from here?

    --Chris
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. DE Initial Value Problem
    Posted in the Differential Equations Forum
    Replies: 4
    Last Post: March 3rd 2011, 10:21 PM
  2. initial value problem
    Posted in the Differential Equations Forum
    Replies: 4
    Last Post: January 1st 2011, 02:49 AM
  3. Initial value problem
    Posted in the Differential Equations Forum
    Replies: 4
    Last Post: November 11th 2010, 12:33 PM
  4. Initial Value Problem?
    Posted in the Calculus Forum
    Replies: 4
    Last Post: May 21st 2009, 04:30 PM
  5. Initial Value Problem
    Posted in the Calculus Forum
    Replies: 2
    Last Post: April 30th 2009, 01:57 AM

Search Tags


/mathhelpforum @mathhelpforum