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

Second derivative - wolfram giving one answer, professor giving another

  1. Aug 28, 2011 #1
    Hi everybody.

    I have a question regarding an example problem at about 22min on this lecture http://ocw.mit.edu/courses/mathemat...ecture-2-eulers-numerical-method-for-y-f-x-y/

    The equation in question is y'=x[itex]^{2}[/itex]-y[itex]^{2}[/itex].

    In an example regarding the Euler method, Prof. Mattuck describes the second derivative of the above function as

    y'' = 2x - 2yy'

    specifically mentioning the chain rule. Now, as I understand it (working backwards of course), the only way to this solution would be to consider y[itex]^{2}[/itex] as the function y(y(x)), giving the solution

    yy' + y'y = 2yy'.

    Now, assuming I correctly understand how the 2yy' portion of the solution was derived, my question is: how exactly was the second derivative determined to be

    y""= 2x - 2yy' ?

    If we take the derivative with respect to y (which presumably give us the 2yy' term we're looking for), wouldn't the "x" term (x[itex]^{2}[/itex]) be zero, as shown:

    d/dy (y')= d/dy (x[itex]^{2}[/itex])- d/dy (y[itex]^{2}[/itex]) [itex]\Rightarrow[/itex] y''= 0 - 2yy'

    Wolfram Alpha also seems to agree with me, but I'm afraid I'm more muddled than I'd like to believe
     
  2. jcsd
  3. Aug 28, 2011 #2

    gb7nash

    User Avatar
    Homework Helper

    If we know that y is a function of x, then your prof. is correct. This is an application of implicit differentiation.

    This is wrong. y2 is just what it looks like. y(x)*y(x)

    This isn't right. On both sides, you're taking the derivative with respect to x, not y. Think about it. y'' is the derivative of y' with respect to x, not y. Following this methodology, you get:

    [tex]\frac{d}{dx} y' = \frac{d}{dx}x^2 - \frac{d}{dx}y^2[/tex]

    With the application of the chain rule on y^2, you obtain the answer.
     
    Last edited: Aug 28, 2011
  4. Aug 28, 2011 #3

    SteamKing

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    The value of the second derivative of y' = x^2 - y^2 depends on which variable is used as the independent variable. In this case, y is understood to represent y(x). When taking the derivative with respect to x, the function becomes y" = 2x - 2yy'. Your Mathematica calculation is not based on taking the derivative with respect to x, and the result is of course different.
     
  5. Aug 28, 2011 #4
    Now I understand. Thanks!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Second derivative - wolfram giving one answer, professor giving another
  1. Pls give me an example (Replies: 1)

  2. The second derivative (Replies: 5)

Loading...