Consider the original worked example on . First, existence: a polynomial function is a continuous function, and . The intermediate value theorem therefore supplies a zero of a function , even before its value has been calculated.
Second, uniqueness is a separate argument. The derivative is . The derivative criterion for monotonicity, obtained from the mean value theorem, makes a strictly increasing function. Two distinct zeros of a function would contradict that strict increase. Thus this root bracket contains exactly one zero of a function; indeed the same derivative argument proves uniqueness on the entire real line.
Third, localization uses the existing bisection method. Set ; after completed halvings, retain with opposite endpoint signs. Each update tests the old midpoint . The first five exact updates areEvery retained root bracket contains by the intermediate value theorem. After ten halvings, exact arithmetic givesHence . The new midpoint and its bisection error bound areThis midpoint is the estimate after the tenth update; the last tested point was . In general the retained width is , so the bisection error bound is . Nine halvings already suffice for an error at most , since . This guarantee comes from the width of the root bracket, independently of any displayed decimal approximation to the unknown zero of a function. Endpoint signs must be established reliably if evaluations use floating-point arithmetic.
Affine maps preserve affine combinations Created 2026-10-14 Updated 2026-10-31
For coefficients with sum one, the defining identity follows from linearity:The translation appears once on both sides precisely because . In particular, midpoints map to midpoints, and a parameterized line segment , , maps to . A whole line has the same formula with ; its image is a line if , and a single point otherwise.
Bisection error bound Created 2026-10-14 Updated 2026-10-31
In exact arithmetic, after completed halvings the retained root bracket has width and midpoint , whereThe absolute value bound holds for every zero of a function in the current root bracket, including the one approached by continued bisection method updates. A zero of a function discarded with an earlier half need not satisfy later bounds. Before update , the evaluated candidate is , whose corresponding guarantee is . After update , the new midpoint has the smaller guarantee , even without evaluating .
Bisection widths, midpoint error bounds, and actual square-root errors after zero to fifteen halvings
. Details. The guaranteed error halves at every step; the actual absolute value error need not decrease at every step or have successive ratio . In the square root example it increases from to , while both errors remain below their guarantees. An exact midpoint zero of a function instead gives zero error and immediate termination. For this example is an irrational number, so no finite exact halving can produce it as a midpoint.
For a brief proof outline, each retained half has half the previous width and contains a zero of a function by the intermediate value theorem. Every point in the retained root bracket is at most half its width from its midpoint. If the process does not stop at a zero of a function, the nested interval theorem gives one common point as the widths tend to zero; continuity and the opposite endpoint signs force its function value to be zero. Uniqueness in the initial root bracket is unnecessary.
Bisection method Created 2026-10-14 Updated 2026-10-20
The bisection method finds a zero of a function by repeatedly halving a root bracket. Let be a real-valued continuous function on the closed interval , with . First check for endpoint zeros of a function; otherwise require strictly opposite signs at the endpoints. Evaluate the midpoint and retain the half with strictly opposite endpoint signs, stopping immediately if the midpoint is a zero of a function. The intermediate value theorem ensures that every retained root bracket still contains a zero of a function. This is the construction in MIT's root-finding notes.[ref]
https://ocw.mit.edu/courses/18-330-introduction-to-numerical-analysis-spring-2012/5b325bfa56a599794c7196de926844b0_MIT18_330S12_Chapter4.pdf. Laurent Demanet, MIT 18.330, Chapter 4, §4.1, pp. 1–2, 2012
For a worked square root calculation, use the polynomial on . Write for the root bracket after halvings, with . The candidate evaluated during update is the old midpoint :The initial midpoint is . After four halvings the new midpoint is , and the bisection error bound is . Its actual error is approximately . The last tested candidate and the reported midpoint are different points.
The useful feature of the bisection method is that the retained width halves on every update, independently of the shape of the function graph. The bisection error bound therefore supplies an accuracy guarantee before the zero of a function is known. No derivative is needed, and a valid initial root bracket gives convergence without a close initial guess. This makes the bisection method a dependable fallback for the faster Newton root-finding iteration.
Bisection stopping criterion 2026-10-14
For a requested absolute tolerance , stop when the retained root bracket has width at most , and report its midpoint. The bisection error bound then guarantees in exact arithmetic. Using the ceiling function and the base-two logarithm, the required number of halvings isThe zero allows stopping before any update when the initial root bracket is already sufficiently narrow. For the polynomial on with , . After nine halvings,Thus the reported midpoint meets the tolerance; its actual error from the square root is approximately . After eight halvings the bound is , so eight do not give this worst-case guarantee.
Cache the endpoint values. Each update of the bisection method needs just one new function evaluation, at the old midpoint. With no early zero of a function, updates therefore cost function evaluations, including the two initial endpoints. Returning the new midpoint requires no additional function evaluation; requesting its value would add one. The nine-update example needs eleven evaluations for the guarantee.
A small function value alone does not guarantee a small position error: rescaling changes those values without changing its zeros of a function. In a practical implementation, use an explicit width test and an iteration limit. With floating-point arithmetic, also stop if the computed midpoint equals either endpoint: the root bracket can no longer shrink, so repeating the update would loop forever. Report this precision limit separately if the requested tolerance remains unmet. Reliable sign evaluations are needed to preserve the root bracket; compare signs directly rather than multiplying endpoint values, which can suffer overflow or underflow in floating-point arithmetic.
For a rounded midpoint still inside a valid root bracket, the geometric error bound is ; it need not equal because of roundoff error. A rigorous computed enclosure also needs conservative arithmetic for that bound and reliable endpoint signs. The exact-arithmetic bisection error bound should not be claimed unchanged after precision prevents further halving.
For practical tolerance conventions, SciPy's
bisect combines absolute and relative tolerances through , and provides a maximum iteration count and convergence status. These differ from the purely absolute width test above.[ref]https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.bisect.html. SciPy, scipy.optimize.bisect documentation
Bracketing method 2026-10-14
A bracketing method finds a zero of a function by maintaining a root bracket and shrinking it as new values of the function become available. The bisection method always tries the midpoint; its special attraction is a predictable bisection error bound without any derivative evaluations.
Composite Simpson's rule 2026-10-18
Composite Simpson's rule applies Simpson's rule to consecutive pairs of equal subintervals. Choose a positive even integer , put , and take quadrature nodes for . There are subintervals, two-subinterval panels, and quadrature nodes. ThenThe second sum is empty when , recovering one panel. The quadrature weights, before multiplication by , are . Every interior even-indexed quadrature node is an endpoint of two panels, so its two endpoint contributions add to two; every odd-indexed quadrature node is a midpoint with weight four. An odd cannot be covered by these pairs. The displayed formula requires equal spacing.[ref]
5.6 Numerical integration. Fundamentals of Numerical Computation by Tobin A. Driscoll and others; §5.6, equations 5.6.20–5.6.21: elementary and composite Simpson formulas
For the exponential function on the interval , the exact integral is . With , the formula gives , an overestimate of about . With , it gives , an overestimate of about . The figure shows the intermediate refinements and compares every computed absolute error with the error bound for composite Simpson's rule.
Computed composite Simpson errors for the exponential function on zero to one approach fourth-order convergence; the dashed curve is the rigorous bound e over 180 n to the fourth power
. Details. For this exponential function, a geometric series also gives a compact independent formula. With and , summing the panel contributions yieldsA Taylor series at givesThe Big O notation describes the remaining terms as tends to zero. Consequently tends to sixteen: the computed ratios increase from about to . Fourth-order truncation error is also obtained by Richardson extrapolation of the composite trapezoidal rule.[ref]
5.6 Numerical integration. Fundamentals of Numerical Computation by Tobin A. Driscoll and others; §5.6.2, equations 5.6.14–5.6.15: Simpson extrapolation and fourth-order error
Convex combinations in a triangle 2026-10-14
Every allocation in the convex feasible region for a resource budget is a convex combination of its three extreme points:The condition is exactly ; nonnegative give the other two nonnegative coefficients. Thus the half-space description and the convex hull description encode the same triangle. At all three coefficients are , and at they are , , . The green and orange points in the budget diagram therefore have two complementary interpretations: direct resource constraints and mixtures of extreme choices.
The three extreme points alone are not a convex set, because their midpoints are absent. Their convex hull fills the whole triangle. More generally, Caratheodory theorem bounds how many generating points are needed for one convex combination in a finite-dimensional real vector space; its geometric content is that a complicated collection can describe each attainable average with a short representation.
Convex feasible region for a resource budget 2026-10-14
Consider a stipulated continuous-allocation problem. Amounts of two activities use units of a common resource, with budget six. The feasible regionis a triangle with extreme points , and . It is the intersection of three closed half-spaces, hence a closed convex set. The general intersection argument is short: a line segment between two points in every constraint set belongs to every constraint set, so it belongs to their intersection.[ref]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. §2.2.1, p. 27: half-spaces; §2.3.1, p. 36: intersections preserve convexity
For an original numerical check, take and . Their resource totals are and . Every convex combination is nonnegative and has resource totalIn particular the midpoint is , using units. This verifies the full line segment, rather than just a plotted sample of it.
This is useful whenever divisible quantities share linear limits: the feasible choices remain compatible under averaging. A new linear equation also preserves this property, because averaging two identical constraint values gives the same value. The affine subspace and closed half-space viewpoints explain this without requiring a separate argument for every budget.
Convex set Created 2026-09-24 Updated 2026-10-24
A convex set permits every intermediate mixture of two of its points. If two choices meet its constraints, continuously averaging them also meets those constraints. This geometric property makes many feasible regions easier to explore: there is no forbidden gap along a straight move between feasible choices.
Formally, a subset of a real vector space is convex whenThe parameter traverses the entire line segment, including both endpoints. The definition does not require a closed subset, a bounded set, or a nonempty interior. The empty set, the whole vector space, and every affine subspace are convex; an open unit disk and a closed unit disk are both convex.[ref]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. §2.1.4, pp. 23–25: convex sets and finite convex combinations
The triangle inequality verifies the disk example directly: if , then . For the open disk, the last inequality is strict. The unit circle fails the same test: and belong to it, but their midpoint does not. A curved route along the unit circle connects the endpoints, so being path-connected is weaker than being a convex set.
The distinction between a convex set and a convex function matters. The former concerns where one may choose a point; the latter concerns how a value changes along line segments. Convex optimization combines both: averaging preserves feasibility, and a convex function obeys an upper bound by the corresponding average of endpoint values. A convex set alone does not make an arbitrary objective a convex function or eliminate its inferior local minima.
Cubic exactness of Simpson's rule Created 2026-10-18 Updated 2026-10-20
Polynomial interpolation makes Simpson's rule exact for every polynomial of polynomial degree at most two. To understand the extra polynomial degree, centre the coordinate at the midpoint: , with endpoints . For any cubic polynomial , let be its interpolating quadratic polynomial. The polynomial vanishes at all three quadrature nodes, sowhere is the coefficient of in . As a function of , this is an odd function, whose integral over the symmetric interval is zero. Hence integrating also integrates exactly. This is the symmetry mechanism in the nodal-polynomial criterion for quadrature exactness.
In the worked example, the polynomial difference factors asIts definite integrals on and are respectively and . Their cancellation concerns signed integrals, rather than pointwise accuracy of polynomial interpolation.
The degree of precision of a quadrature rule stops at three: on the same interval, the monomial gives , whereas . Their difference, exact integral minus approximation, is .
De Casteljau's algorithm 2026-10-14
De Casteljau's algorithm evaluates a Bézier curve by repeated linear interpolation between neighboring control points. Fix , start with , and computeEach new row has one fewer point. The final point is . Use the same at every stage: it describes the fraction of each line segment traversed from its first endpoint toward its second. A cubic Bézier curve needs three levels containing , , and linear interpolations, respectively.[ref]
https://graphics.stanford.edu/courses/cs164-10-spring/Handouts/handout19.pdf. Stanford CS348a, Handout 19, §2.3, pp. 10–11
For the Bézier curve with control points , , , , evaluation at takes the midpoint of every neighboring pair. The first level givesThe second level givesand the third level givesThe intermediate control polygons shrink toward the evaluated point. Each step is a convex combination, giving a geometric explanation of the convex hull property; every step also commutes with an affine map.
Cubic Bézier curve, its convex hull and bounding box, and the three levels of De Casteljau's algorithm at t = 1/2
. Details. The same construction splits the Bézier curve exactly, with no approximation. The outer edges of the triangular array give the new control points: for a cubic, specify the left piece and specify the right piece.[ref]
https://graphics.stanford.edu/courses/cs164-10-spring/Handouts/handout19.pdf. Stanford CS348a, Handout 19, §2.3, p. 11, subsegment control points
At these two lists areWrite and for the Bézier curves defined by these lists, each with its own parameter . ThenTheir images reproduce the original curve, while their derivatives account for the shorter parameter intervals. At the join,The chain rule gives ; in the original parameter, both pieces have derivative . This is the interval scaling in the parametric first-derivative join of Bézier curves.Exact midpoint subdivision with two smaller control polygons, endpoint tangent directions, and equally spaced parameter samples
. Details. Repeated midpoint splitting is useful for drawing vector graphics paths: each piece has a smaller control polygon and its own convex hull enclosure. A renderer can refine pieces until they are sufficiently close to line segments at the chosen display scale. Evaluating and splitting it are thus two results of the same short algorithm.
For a proof outline, expanding the recursion givesPascal's identity proves this by induction; at , it is precisely the Bernstein basis formula for the Bézier curve. The geometric construction remains useful even when expanding the polynomial by hand would be cumbersome.
// Target: analysis.bigb
Eccentricity of a conic Created 2026-10-07 Updated 2026-10-20
The parameter in a focus-centred polar coordinates equation for a conic section. It distinguishes an ellipse (), a parabola (), and a hyperbola ().
For a noncircular conic section, the eccentricity of a conic is the constant ratiowhere is a focus of a conic, the corresponding directrix of a conic, and a point on the curve. For an ellipse with semi-major axis and distance from the focal midpoint to either focus of a conic, . Its circle case has ; a finite directrix does not give that circle through the displayed ratio. The circle is the limit as and its directrices of a conic move arbitrarily far away.
The eccentricity of a conic is intrinsic to the cutting plane, and is not generally its slope in a chosen three-dimensional drawing. For the family in conic section, with , completing the square givesA displacement along this plane has Euclidean norm . Thus the intrinsic semiaxis ratio satisfies , givingFor , this is , rather than . This normalization separates the curve's geometry from a distorted projection of it onto the plane.
Extreme point Created 2026-09-24 Updated 2026-10-18
An extreme point of a convex set is a point that cannot be made by genuinely mixing two different points of the set. For a convex set in a real vector space, the condition on isThus lies on no open line segment between two distinct points of . It is enough to exclude midpoint representations: if lies inside a line segment, two nearby points on opposite sides have midpoint .[ref]
Convex geometry (BME course BMETE94AM22). §6, Definition 6.6, printed p. 37: extremal points of closed convex sets
The square has just four extreme points, at . In a convex combination giving a corner, each coordinate is already at its largest or smallest allowed value, forcing both input points to agree with that corner. In contrast, the boundary point is not extreme:It is the midpoint of two other points on the same edge. An interior point also admits a small line segment through it.
The unit disk has a different shape: every point on its unit circle is extreme. For a unit vector , the Cauchy-Schwarz inequality givesand equality is possible only at . If a convex combination equals , applying this linear functional forces both ingredients to attain that equality. Both must therefore be . Extremality need not look like a sharp corner.
These points help describe all allowable mixtures. Every is a convex combination of its four corners, with the weight on equal to . For the unit disk, write , with and a unit vector; at zero choose any . ThenTwo extreme points suffice for that mixture. The Krein-Milman theorem gives a much broader reconstruction: a nonempty compact convex set in a locally convex space whose topology is Hausdorff is the closed convex hull of its extreme points.
Mark Krein and David Milman published their reconstruction theorem in 1940. Milman's colleagues describe that result and its subsequent use as a method of representing convex sets through their extreme points.[ref]
David Milman (1912–1982) by Israel Gohberg and others. David Milman (1912–1982), printed p. 4: 1940 collaboration with M. G. Krein, the reconstruction theorem and subsequent method; citation 3 refers to their original paper
If the amounts in the budget example must be integers, the actual feasible region is . Both and are feasible, but their midpoint is not. Thus the continuous feasible region is a convex set while the integer-restricted choices are not. Averaging two manufacturing plans may specify half an indivisible item. Integer programming must respect that restriction; using the surrounding convex set is a relaxation, not a proof that its averages are admissible integer plans.
Interval bisection Created 2026-10-07 Updated 2026-10-14
Interval bisection solves a target equation by repeatedly halving a closed interval known to contain a solution. It is the bisection method applied to , so the target becomes a zero of a function. This reduction from an equation to root finding is described in Demanet's notes.[ref]
https://ocw.mit.edu/courses/18-330-introduction-to-numerical-analysis-spring-2012/5b325bfa56a599794c7196de926844b0_MIT18_330S12_Chapter4.pdf. Laurent Demanet, MIT 18.330, Chapter 4, §4.1, pp. 1–2, 2012
Here the emphasis is on a continuous strictly increasing function: the target identifies one input, making interval bisection a way to evaluate its inverse function without an explicit inverse formula.Let be a continuous function, with and . The intermediate value theorem guarantees existence; a strictly increasing function also guarantees uniqueness. Check endpoint equality first. Otherwise, for the current root bracket , evaluate its midpoint . If , retain ; if , retain ; if , return that exact solution. These comparisons preserve the target bracket. General bisection method needs continuity and opposite signs of at the endpoints, without requiring monotonicity or a unique zero of a function; see limitations of bisection.
An original dimensionless polynomial example isHere and the derivative , so there is exactly one solution. In fact ; knowing this lets us check the computed absolute error independently of the guarantee. The first four halvings give the following exact rational numbers:
The beauty of interval bisection is that the enclosure itself supplies the certificate: one comparison removes half the possible inputs, regardless of the steepness of the function graph. In exact arithmetic, after completed halvings without exact termination, the width and the bisection error bound for the new midpoint areThe reported midpoint after update four is , rather than the last tested point . Its certified absolute error is at most , and its actual absolute error is . For a requested position tolerance , the bisection stopping criterion requires eleven halvings: ten give , while eleven giveThe actual absolute error is . The new midpoint need not be evaluated to obtain this certificate.
The signed output residual is ; the position approximation error is . They answer different questions: how close is the output to the target, and how close is the input to the solution? Driscoll and Braun explain why a small residual needs information about the derivative to imply small position error.[ref]
https://fncbook.com/rootproblem/. Toby A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, §4.1.1, Conditioning, error, and residual
For this particular polynomial, direct factorization givesThus at the residual is , despite position absolute error . If a differentiable function satisfies throughout the bracket, the mean value theorem gives the rigorous conversionOur example permits and on . Strict increase alone supplies no positive lower derivative bound: is strictly increasing but . A small residual alone is therefore not a universal position certificate; even the target equation has residual at , a full unit from its solution.The guarantees require continuity and correct evaluations, not just narrowing endpoints. For the strictly increasing function when and when , the target lies between and but is never attained: a jump discontinuity defeats the existence argument. With floating-point arithmetic or an approximate evaluation, an incorrect comparison can discard the true solution. A certified interval enclosure of wholly below or above certifies the corresponding decision; an enclosure containing is inconclusive, rather than proof of equality. If rounding makes the midpoint equal an endpoint, report the precision limit; see bisection stopping criterion for the rounded position bound. Both figures are exact mathematical examples, not measured data.
Limitations of bisection 2026-10-14
Several zeros of a function can lie in one initial root bracket: the bisection method seeks one, rather than enumerating them. For instance, the polynomial has opposite endpoint signs on , but its first midpoint evaluation returns only the polynomial root . The initial zero of a function need not be unique for the bisection error bound to apply to a retained zero of a function.
A zero of a function without a sign change cannot be located by the strict sign-change test alone. The polynomial touches zero at but is positive on either side. On both endpoint values are positive: although the closed interval contains a polynomial root, it fails the usual starting test for the bisection method. An endpoint or evaluated midpoint zero of a function can still be recognized directly.
Opposite signs certify a root bracket only with the required continuity. For , the values at and have opposite signs, but is undefined at the midpoint and has no zero of a function. Hence is invalid input for the bisection method; the intermediate value theorem does not apply across the gap.
Medial triangle 2026-10-25
The medial triangle joins the three midpoints of a triangle's sides. Each side is parallel to the corresponding original side and has half its length: . Each altitude of a triangle in the medial triangle is a perpendicular bisector of an original side, so its orthocenter is the original triangle's circumcenter.
Midpoint test for a closed set 2026-10-14
Checking only midpoints is not enough for an arbitrary subset of a real vector space. The rational numbers contain the midpoint of every pair of rational numbers, but the line segment from to also contains irrational numbers. For instance lies on that line segment and is not rational. This shows why the definition quantifies over every real .
There is a useful additional hypothesis: a closed subset containing the midpoint of every pair of its points is a convex set. Repeated bisection includes all points with dyadic rational . These coefficients approach every real ; being a closed subset then includes each limit. This is a short proof outline, and the rational numbers example identifies precisely why a closed subset was required.
For a short proof outline, endpoint values give the non-strict cases immediately. If is strictly between and , apply the bisection method to the continuous function . A midpoint with finishes the proof. Otherwise retain nested intervals with strictly opposite signs and widths . The nested interval theorem, using completeness of the real numbers, gives a common point to which both endpoint sequences converge. After reversing the sign of if necessary, . Continuity makes both endpoint value sequences converge to , forcing and , hence . The original endpoint values differ from , so . This proof explains why a jump can defeat the construction: shrinking a candidate closed interval cannot supply the missing continuity.










