HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A student runs a bisection program on two functions without looking at their graphs…
AdvancedMathematicsHigh School (11–12)Numerical MethodsproofNumericalOlympiad
+1 more exams
A-Level
OlympiadA-Level

A student runs a bisection program on two functions without looking at their graphs…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A student runs a bisection program on two functions without looking at their graphs.

  1. For f(x)=tan⁡xf(x) = \tan xf(x)=tanx on [1,2][1, 2][1,2] (radians), show that f(1)f(1)f(1) and f(2)f(2)f(2) have opposite signs. Prove that tan⁡x\tan xtanx has no root in (1,2)(1, 2)(1,2). The program still narrows the interval down to one number. Which number, and why?
  1. For h(x)=x2−4x+3.99h(x) = x^2 - 4x + 3.99h(x)=x2−4x+3.99 on [1,3][1, 3][1,3], show that h(1)h(1)h(1) and h(3)h(3)h(3) have the same sign. Then find both roots of hhh, and say why the program refuses to start.
  1. Write one sentence on what a change of sign does and does not prove.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. Part (a), the signs. tan⁡1≈1.557>0\tan 1 \approx 1.557 > 0tan1≈1.557>0 and tan⁡2≈−2.185<0\tan 2 \approx -2.185 < 0tan2≈−2.185<0.

Step 2. No root. On (1,π2)\left(1, \tfrac{\pi}{2}\right)(1,2π​), both sin⁡x\sin xsinx and cos⁡x\cos xcosx are positive, so tan⁡x>0\tan x > 0tanx>0. On (π2,2)\left(\tfrac{\pi}{2}, 2\right)(2π​,2), sin⁡x>0\sin x > 0sinx>0 and cos⁡x<0\cos x < 0cosx<0, so tan⁡x<0\tan x < 0tanx<0. It is never 000: there are 000 roots in (1,2)(1, 2)(1,2).

Step 3. Where the program goes. Every interval it keeps contains the sign change, which is at the break x=π2≈1.571x = \tfrac{\pi}{2} \approx 1.571x=2π​≈1.571. So it closes in on 1.5711.5711.571, where tan⁡x\tan xtanx has no value at all.

Step 4. Part (b). h(1)=0.99h(1) = 0.99h(1)=0.99 and h(3)=0.99h(3) = 0.99h(3)=0.99, the same sign. But h(x)=(x−2)2−0.01h(x) = (x - 2)^2 - 0.01h(x)=(x−2)2−0.01, with roots 2±0.12 \pm 0.12±0.1: that is 1.91.91.9 and 2.12.12.1. Two roots in one interval give no change of sign at its ends, so the program has nothing to start from.

Step 5. Part (c). A change of sign proves a root only for a continuous function, and no change of sign proves nothing.

Answer: (a) it closes in on π2≈1.571\tfrac{\pi}{2} \approx 1.5712π​≈1.571, where there is a break and no root; (b) the roots 1.91.91.9 and 2.12.12.1 are hidden. Proof complete.

Log in to save this for later
← All Problems
← A designer needs the points where the curve y = x³ - 6x + 2 crosses the x-axis…The equation e⁻ˣ = x has one root, near 0.57… →
More onNumerical Methods

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Locating roots and interval bisectionNumerical Solution of Equations

More on this topic

  1. The integral ∫₀¹ 4/(1 + x²) dx is exactly π, because d/dx tan⁻¹ x = 1/(1 + x²)…Advanced
  2. Prove that Simpson's rule with 2 strips is exact for every cubic f(x) = A + Bx + Cx² + Dx³ on [-h…Advanced
  3. A hydrologist measures the depth of a river at points 2 m apart across a channel 12 m wide: Use…Hard

A continuous fff with f(a)f(b)<0f(a)f(b) < 0f(a)f(b)<0 has a root in (a,b)(a, b)(a,b). Bisection keeps the half with the sign change. After nnn steps the width is

b−a2n.\displaystyle \dfrac{b - a}{2^n}.2nb−a​.

To show a root is correct to some decimal places, test the signs at the ends of the rounding interval.

An engineer must find ∫₁³ ln x dx with an error of less than 0.0005, and wants to know how much…Hard
  • Let f'' > 0 on [a, b]. Prove that on one strip, M₁ < ∫aᵇ f dx < T₁…Advanced
  • All problems on this topic →