Interval Halving - Solve f(x)=x^3+2x^2+pi(x)-(square root of 2)

  • Thread starter ranger1716
  • Start date
  • Tags
    Interval
In summary, the interval halving method is used to find a root of a function within a given interval. The process involves narrowing the interval by finding the midpoint and determining whether the root is in the left or right half of the interval. In this particular problem, the root is approximated to be 0.25 with an error of at most 1/8. The error is determined by taking the difference between the endpoints of the interval and dividing it by 2.
  • #1
ranger1716
18
0
could someone give me a hand with this please?

i need to use the interval halving method to show that the function f has a root in the interval [a,b]. I need to approximate that root and determine a bound on the error of my estimate.

f(x)=x^3+2x^2+pi(x)-(square root of 2)

I have determined that f(-1)= -3.55581 and that

f(1)= 4.72738

therefore

(-3.55581)x(4.72738)<0

the actual answer to the problem in the back of the book is: root is approx=0.25 and error at most 1/8

I'm getting confused because wouldn't the error be (-1+1)/2? This would equal zero.

Any help would be great.
 
Physics news on Phys.org
  • #2
The interval halving method requires you to keep narrowing an interval to find a smaller and smaller interval that contains a desired root. In this case, the intervale halving method goes like this:

-1) -3.55581
+1) +4.72738

So there must be a root between -1 and +1. Try the midpoint of the interval, i.e the midpoint of [-1,+1] or zero. This gives:

-1) -3.55581
0) -1.414
+1) +4.72738

So now you know that the solution is in the interval [0,+1]. You begin the problem again with:

0) -1.414
+1) +4.72738

So there must be a root somewhere between 0 and 1. Try 0.5
etc.

Carl
 

FAQ: Interval Halving - Solve f(x)=x^3+2x^2+pi(x)-(square root of 2)

What is interval halving?

Interval halving is a method used to find the root of a function by repeatedly dividing the interval in which the root lies in half and checking which half the root is located in. This process is continued until the interval becomes small enough to approximate the root.

How does interval halving work?

Interval halving works by initially choosing two points, a and b, that lie on opposite sides of the root. The midpoint between a and b is calculated and the function value at this point is compared to the function values at a and b. Depending on the function values, the interval is either halved on the left or right side of the midpoint and the process is repeated until the interval becomes small enough to approximate the root.

What is the purpose of using interval halving?

The purpose of using interval halving is to find the root of a function when it is not possible to solve for it algebraically. It is a numerical method that can be used to approximate the root to a desired level of accuracy.

How accurate is interval halving in finding the root of a function?

The accuracy of interval halving depends on the initial interval chosen and the number of iterations performed. The more iterations, the smaller the interval becomes and the more accurate the approximation of the root will be. However, if the initial interval does not contain the root, this method will not be accurate.

Can interval halving be used to find complex roots?

No, interval halving can only be used to find real roots. It relies on the intermediate value theorem, which only applies to real numbers. Complex roots can be found using other numerical methods such as Newton's method.

Back
Top