Does the function have a zero in the given interval?

  • MHB
  • Thread starter nycmathdad
  • Start date
  • Tags
    Function
In summary, the conversation is about verifying a given function has a zero in a specific interval and using the Intermediate Value Theorem to approximate the zero. The instructions are to divide the interval into 10 subintervals and evaluate the function at the endpoints, repeating the process until the zero is approximated to three decimal places. The person asking for help has already done some questions involving the Bisection Method and finds it time-consuming, but someone else suggests having others do it for them.
  • #1
nycmathdad
74
0
Verify the given function has a zero in the indicated interval. Then use the Intermediate Value Theorem to approximate the zero correct to three decimal places by repeatedly subdividing the interval containing the zero into 10 subintervals.

f (x) = x3 − 4x + 2; interval: (1, 2)

I don't understand the instructions. How is this done?
 
Physics news on Phys.org
  • #2
Beer soaked ramblings follow.
nycmathdad said:
Verify the given function has a zero in the indicated interval. Then use the Intermediate Value Theorem to approximate the zero correct to three decimal places by repeatedly subdividing the interval containing the zero into 10 subintervals.

f (x) = x3 − 4x + 2; interval: (1, 2)

I don't understand the instructions. How is this done?
Repost from https://mathforums.com/threads/verify-given-function.356475/#post-644773 by same guy as nycmath, https://mathhelpboards.com/members/rtcntc.8471/, https://mathhelpboards.com/members/harpazo.8631/, https://mathhelpboards.com/members/mathland.19617/.
Read the relevant section of your book.
 
  • #3
nycmathdad said:
Verify the given function has a zero in the indicated interval. Then use the Intermediate Value Theorem to approximate the zero correct to three decimal places by repeatedly subdividing the interval containing the zero into 10 subintervals.

f (x) = x^3 − 4x + 2; interval: (1, 2)

I don't understand the instructions. How is this done?
Do you know what the "Intermediate Value Theorem" is?

f(1)= 1- 4+ 3= -1 and f(2)= 8- 8+ 2= 2. The Intermediate Value Theorem says that since this polynomial is continuous and positive at one end of the interval and negative at the other end there must be some point in the interval where f(x)= 0.

Now, divide (1, 2) into 10 subintervals:
(1, 1.1), (1.1, 1.2), (1.2, 1.3), (1.3, 1.4), (1.4, 1.5), (1.5, 1.6), (1.6, 1.7), (1.7, 1.8), (1.8, 1.9), and (1.9, 2.0).
Evaluate f(x) at the endpoints of those. If there is an interval where f(x) has different signs at the endpoints then, by the "Intermediate Value Theorem", f(x)= 0 somewhere in that interval. Divide that interval into 10 more subintervals and repeat. That will get you to things like 1.a0, 1.a1, 1,a2, etc, two decimal places. Repeat one more time to get three decimal places.
 
  • #4

I have a feeling that when it says to divide into subintervals, they are meaning to Bisect it ten times to close in on the point...
 
  • #5
Prove It said:
I have a feeling that when it says to divide into subintervals, they are meaning to Bisect it ten times to close in on the point...

Yes but I am beyond this topic in my studies.
 
  • #6
nycmathdad said:
Yes but I am beyond this topic in my studies.

Are you saying you've already done the Bisection Method? Good, then attempt it.
 
  • #7
Prove It said:
Are you saying you've already done the Bisection Method? Good, then attempt it.

I have done several questions involving the Bisection Method. It is very time consuming.
 
  • #8
nycmathdad said:
I have done several questions involving the Bisection Method. It is very time consuming.
Not if you have someone else do it for you!
 
  • #9
Country Boy said:
Not if you have someone else do it for you!

I did a few myself. Struggled but actually did it.
 
  • #10
Beer soaked ramblings follow.
nycmathdad said:
I did a few myself. Struggled but actually did it.
Translation: I posted actual examples on other math sites and inveigled others to do it for me.
 

FAQ: Does the function have a zero in the given interval?

What is the purpose of verifying the function?

The purpose of verifying the function is to ensure that it is working correctly and producing the expected results. This helps to identify any errors or bugs in the code and allows for necessary adjustments to be made.

How do you verify the function?

To verify the function, you can run test cases with different input values and compare the output to the expected results. You can also use debugging tools or step through the code to see how it is executing.

What happens if the function fails to verify?

If the function fails to verify, it means that there is an error in the code or the function is not producing the expected results. This could be due to incorrect logic, syntax errors, or missing components.

Why is it important to verify the function?

Verifying the function is important because it ensures the accuracy and reliability of the code. It helps to catch any mistakes or issues before the code is implemented in a larger project or system.

Can the function be verified multiple times?

Yes, the function can and should be verified multiple times throughout the development process. This helps to catch any new errors or changes that may have been introduced and ensures that the function continues to work as intended.

Back
Top