Intersecting circles using Newton's Method

2 replies · 2K views · last reply
Robb
Messages
225
Reaction score
8

Homework Statement


Printed homework problem 2, Newton's Method in R^2: part (a) plot circles (x-2)^2+(y-1)^2=2 and (x-2.5)^2+y^2=3.5 in MATLAB; part (b) derive the Newton iteration for their intersection; part (c) MATLAB program using anonymous functions and the Jacobian.


Homework Equations

The Attempt at a Solution


My initial thought was to set the two equations equal to each other but the resulting equation is linear which gives a constant for a Newton iteration. I thought about Taylor's theorem in 2-d but I'm not so sure about that as far as deriving the iterating function. Please help!
 
Attachments
  • Printed homework problem 2, Newton's Method in R^2: part (a) plot circles (x-2)^2+(y-1)^2=2 and (x-2.5)^2+y^2=3.5 in MATLAB; part (b) derive the Newton iteration for their intersection; part (c) MATLAB program using anonymous functions and the Jacobian.
    upload_2017-11-8_20-33-41.png
    52.3 KB · Views: 1,096
Robb said:

Homework Statement


View attachment 214649

Homework Equations

The Attempt at a Solution


My initial thought was to set the two equations equal to each other but the resulting equation is linear which gives a constant for a Newton iteration. I thought about Taylor's theorem in 2-d but I'm not so sure about that as far as deriving the iterating function. Please help!
Technically, you don't "set equations equal to each other." If you have one equation in the form f(x) = b and another equation in the form g(x) = b, then you can set f(x) equal to g(x). However, it makes no sense to write ##(x - 2)^2 + (y - 1)^2 = 2 = 3.5 = (x - 2.5)^2 + y^2##.

For the equations in your problem, what you said amounts to setting 2 = 3.5, which is obviouly untrue.

What was the work that you did? You need to show us what you did, rather than just loosely describe your work, so that we can steer you in the right direction.
 
Handwritten derivation of Newton's method for two equations: F(x) is the vector of (x1-2)^2+(x2-1)^2-2 and (x1-2.5)^2+x2^2-3.5, expanded, with the Jacobian matrix of partial derivatives, leading to -F(x) = J(x) times the step vector (h1, h2).


I have not chosen an initial condition yet so I can get F(X).
 
Attachments
  • Handwritten derivation of Newton's method for two equations: F(x) is the vector of (x1-2)^2+(x2-1)^2-2 and (x1-2.5)^2+x2^2-3.5, expanded, with the Jacobian matrix of partial derivatives, leading to -F(x) = J(x) times the step vector (h1, h2).
    upload_2017-11-9_6-16-48.png
    51.2 KB · Views: 650