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!

Taylor's approximation formula for an IVP and the chain

  1. Dec 19, 2012 #1
    1. The problem statement, all variables and given/known data
    [tex]
    f(x,y) = y' = \frac{y+x^2-2}{x+1} , y(0) = 2[/tex]
    Write the formula for the 2nd order Taylor approximation

    I just want to ask a question

    2. Relevant equations
    Taylor series


    3. The attempt at a solution
    Taylor:
    [tex]
    y(x) = y(x_0) + y'(x_0)(x-x_0) + \frac{y''(x_0)(x-x_0)^2 }{2} = \\
    y(x_0) + f(x_0,y_0)(x-x_0) + \frac{f'(x_0,y_0)(x-x_0)}{2} \\


    [/tex]
    To find the derivative , since f is a function of x and y(x) , i have to apply the chain rule and calculate
    [tex] \frac{df}{dx} = \frac{df}{dy}\frac{dy}{dx} [/tex] , aka calculate the derivative with respect to y and then just multiply by y' = f ?
     
  2. jcsd
  3. Dec 19, 2012 #2

    Dick

    User Avatar
    Science Advisor
    Homework Helper

    Yes, that's the general idea. But your exact formula is wrong. f is a function of two variables. Suppose f(x,y)=x^2+y^2. Then df/dx=2x+2yy'. If you do df/dy*dy/dx you'll only get 2yy'. Just differentiate with respect to x and then use the chain rule on terms with y's in them.
     
    Last edited: Dec 19, 2012
  4. Dec 19, 2012 #3
    Ah,that's what i did at first, but it seemed very un-chainruly.
    So is this correct?
    [tex]
    \frac{df}{dx} = \frac{(y+x^2-2)'(x+1) - (y+x^2-2)}{(x+1)^2} \\
    = \frac{(f(x,y) + 2x)(x+1) - (y+x^2-2)}{(x+1)^2} = ...\\
    ... = \frac{f(x,y)}{(x+1)} + \frac{1-y}{(x+1)^2} +1

    [/tex]

    I can just substitute y' with the quantity given, right?

    Also the formula
    [tex]
    H(x,y)' = H_x + H_y \frac{dy}{dx}
    [/tex]
    works only for H in the form of H(x,y) = f(x)g(y) , from the product rule?

    Lastly, how can i add LaTeX without breaking a line from the text?
    Like text text LATEXLATEX text text
     
  5. Dec 19, 2012 #4

    Dick

    User Avatar
    Science Advisor
    Homework Helper

    Looks ok. You can substitute y' for f, sure. And df/dx is y''. Is that what you meant? Your formula using the H's should work ok. It's the total differential. It should work for any form of H. It has the term that was missing from df/dy*dy/dx. To get inline tex use 'itex' instead of 'tex'.
     
    Last edited: Dec 19, 2012
  6. Dec 20, 2012 #5
    Great.Thanks for your help.
     
  7. Dec 20, 2012 #6

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    I assume the problem specifically says "the 2nd order Taylor approximation around x= 0".

    You are given that y(0)= 2 and can easily compute that y'(0)= (2+ 0- 2)/(0+ 1)= 0.
    So, for the second order approximation you only need the second derivative. That is, of course, the first derivative of the f(x,y) with respect to x. And I see no reason to differentiate with respect to y.

    Use the quotient rule:
    y''= [(y'+ 2x)(x+1)- (1)(y+ x^2- 2)]/(x+ 1)^2

    At x= 0, y= 2 and y'= 0 so that is
    y''= [(0+ 0)(0+ 1)- (1)(0+ 0- 2)]/1= -2.

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




Similar Discussions: Taylor's approximation formula for an IVP and the chain
  1. Taylor approximation (Replies: 2)

  2. Taylor approximations (Replies: 3)

  3. Taylor approximation (Replies: 3)

  4. Taylor Approximation (Replies: 5)

Loading...