Find interval and root of polynomial with absolute error less than 1/8

  • #1
songoku
2,384
351
Homework Statement
Find an interval of length ##\frac{1}{4}## which contains root of ##x^3+2x+1=0##. Then using that interval, give approximate value of the root with absolute error less than ##\frac{1}{8}##
Relevant Equations
Intermediate Value Theorem (IVT)

Limit (maybe)
By IVT and trial and error, I get the interval to be ##(-\frac{1}{2},-\frac{1}{4})##

I don't know how to do the next part.

Let the actual root of the polynomial be ##x_{0}## and the approximate value is ##p##, we have ##|p-x_{0}|<\frac{1}{8}##

I am not sure how to continue.

Thanks
 
Physics news on Phys.org
  • #2
https://www.wolframalpha.com/input?i=plot+y=x^3+2x+1&lang=en
1729769732212.png


[tex]f(x)=x^3+2x+1[/tex]
Say [a,b] is the range we choose, linear line between, i.e.,
[tex]y-f(a)=\frac{f(b)-f(a)}{b-a}(x-a)[/tex]
cross the x axis at
[tex]x=-\frac{(b-a)f(a)}{f(b)-f(a)}+a[/tex]
This is a candidate of approximate solution which should be investigated to be within the cited error.

[EDIT]
f(a)<0, f(b)>0
If f(##\frac{a+b}{2}##)<0 we can halve the size of the section [##\frac{a+b}{2}##,b].
If f(##\frac{a+b}{2}##)>0 we can halve the size of the section [a,##\frac{a+b}{2}##].
 
Last edited:
  • Like
Likes songoku and SammyS
  • #3
anuttarasammyak said:
https://www.wolframalpha.com/input?i=plot+y=x^3+2x+1&lang=en
View attachment 352641

[tex]f(x)=x^3+2x+1[/tex]
Say [a,b] is the range we choose, linear line between, i.e.,
[tex]y-f(a)=\frac{f(b)-f(a)}{b-a}(x-a)[/tex]
cross the x axis at
[tex]x=-\frac{(b-a)f(a)}{f(b)-f(a)}+a[/tex]
This is a candidate of approximate solution which should be investigated to be within the cited error.

[EDIT]
f(a)<0, f(b)>0
If f(##\frac{a+b}{2}##)<0 we can halve the size of the section [##\frac{a+b}{2}##,b].
If f(##\frac{a+b}{2}##)>0 we can halve the size of the section [a,##\frac{a+b}{2}##].
So the idea is to use linearization and then change the interval based on the value of ##x## obtained from linearization until the interval length is < ##\frac{1}{8}##?

Thanks
 
  • #4
anuttarasammyak said:
f(a)<0, f(b)>0
If f((a+b)/2)<0 we can halve the size of the section [(a+b)/2,b].
If f((a+b)/2)>0 we can halve the size of the section [a,(a+b)/2].
Please forget the part before [EDIT]. Bisection method https://en.wikipedia.org/wiki/Bisection_method applies here. We can get better convergence by Newton method.
 
Last edited:
  • Like
Likes songoku
  • #5
Thank you very much for the help and explanation anuttarasammyak
 

FAQ: Find interval and root of polynomial with absolute error less than 1/8

What is the definition of a polynomial?

A polynomial is a mathematical expression that consists of variables (also called indeterminates) raised to non-negative integer powers and multiplied by coefficients. A polynomial can be expressed in the form: P(x) = a_n * x^n + a_(n-1) * x^(n-1) + ... + a_1 * x + a_0, where a_n, a_(n-1), ..., a_0 are constants, and n is a non-negative integer representing the degree of the polynomial.

How do you find the roots of a polynomial?

To find the roots of a polynomial, you need to determine the values of the variable (usually x) that make the polynomial equal to zero (P(x) = 0). This can be done using various methods, including factoring, using the quadratic formula for second-degree polynomials, synthetic division, or numerical methods such as the Newton-Raphson method or bisection method for higher-degree polynomials.

What does it mean to find an interval for a root?

Finding an interval for a root means identifying a range of values within which at least one root of the polynomial exists. This is often done using the Intermediate Value Theorem, which states that if a continuous function changes signs over an interval [a, b], then there is at least one root in that interval.

How do you ensure the absolute error is less than 1/8?

To ensure that the absolute error of the root approximation is less than 1/8, you can apply numerical methods such as the bisection method or Newton's method iteratively until the difference between successive approximations is less than 1/8. Additionally, you can calculate the value of the polynomial at the approximated root and check that it is sufficiently close to zero.

What are some common numerical methods for finding roots of polynomials?

Common numerical methods for finding roots of polynomials include the bisection method, Newton-Raphson method, secant method, and fixed-point iteration. Each method has its advantages and is suitable for different types of polynomials and initial guesses. The choice of method can affect the speed and accuracy of finding the root.

Back
Top