Is there a better way to find the roots of a quadratic equation?

  • Thread starter Thread starter trap
  • Start date Start date
Click For Summary
The discussion focuses on finding the roots of the quadratic equation f(x) = x^2 - a using the Newton-Raphson method. The correct iteration formula derived is Xn+1 = (1/2)(Xn + a/Xn), which helps in approximating the square root of a positive number a. Participants clarify the application of the Newton-Raphson method, correcting earlier misstatements about the iteration formula. The conversation also highlights the challenges faced by users in applying the method effectively. Overall, the thread emphasizes the utility of the Newton-Raphson method for solving quadratic equations.
trap
Messages
51
Reaction score
0
Let f(x)=x^2 - a, where a>0. The roots of the equation f(x)=0 are +root(a), -root(a).

Show that if x1 > 0 is any initial estimate for root(a), then the Newton-Raphson method gives the iteration formula

x n-1 = 1/2( xn + a/xn ),

n>=1
 
Physics news on Phys.org
Sorry, the last post wasn't clear, the iteration formula is..

Xn-1 = (1/2)(Xn + a/Xn) , n >= 1
 
trap said:
Sorry, the last post wasn't clear, the iteration formula is..

Xn-1 = (1/2)(Xn + a/Xn) , n >= 1

Shouldn't this be:
Xn+1 = (1/2)(Xn + a/Xn) , n >= 1

Did you apply the Newton-raphson method Xn+1=Xn-f(xn)/f'(xn) ?
 
yes, it's Xn-1 instead, my fault
I tried the Newton's method, but still have trouble solving the question
 
trap said:
yes, it's Xn-1 instead, my fault
I tried the Newton's method, but still have trouble solving the question

Can you show what you did? The given formula arrives almost immediately by applying the method.
 
Newtons Method is;

x_{n+1} = x_n - \frac {f(x_n)} {f'(x_n)}

You are given

f(x)= x^2 - a

Compute f'(x) = 2x

Now apply Newtons method:
x_{n+1}= x_{n}- \frac {f(x_n)} {f'(x_n)} = x_n - \frac {x_n^2 - a } {2x_n} = \frac { 2 x^2_n - x^2_n +a} {2x_n}= \frac {x^2_n + a} {2x_n} = \frac 1 2 ( x_n + \frac a {x_n})
 
Last edited:
thx for the help guys!
 
kataKonik, hi..you must be taking the same course as i am...
 
well...I'm not even sure if i can use the web to help me with these problem sets..so i just want to keep my identity as a secret
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
22
Views
2K
Replies
24
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K