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

Homework Help: Newton-Raphson method with two x values

  1. Nov 6, 2005 #1
    Find the value of x1 and x2 that minimize the function f= x1^2 + x2^2 + 10x1 +20x2 +25 . This isn't that difficult of a problem if there was only 1 x value. But how do I do it when it is using x1 and x2?
     
  2. jcsd
  3. Nov 6, 2005 #2
    Okay I think I might have figured something out. I split the problem up to be f(x1)=x1^2+10x1+5 and f(x2)=x2^2+20x2+25 and then do newton-raphson for each of those functions. Is this correct?
     
  4. Nov 6, 2005 #3

    NateTG

    User Avatar
    Science Advisor
    Homework Helper

    In this case, it's going to pretty easy since there aren't any terms in the expression for [itex]f(x_1,x_2)[/itex] that involve both [itex]x_1[/itex] and [itex]x_2[/itex] so you can indeed do this one by finding the minimums with respect to [itex]x_1[/itex] and [itex]x_2[/itex].
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook