Il teorema degli zeri garantisce che una soluzione esiste, ma non dove: gli algoritmi numerici la trovano per approssimazioni successive. La bisezione dimezza l’intervallo a ogni passo (robusta ma lenta); il metodo di Newton-Raphson usa la derivata per convergere molto più in fretta (veloce ma delicato).
The zero theorem guarantees that a solution exists, but not where: numerical algorithms find it by successive approximations. Bisection halves the interval at each step (robust but slow); the Newton-Raphson method uses the derivative to converge much faster (fast but delicate).
Il teorema degli zeri non dice dove sta lo zero, solo che esiste. L’algoritmo di bisezione lo trova per approssimazioni successive, dimezzando l’intervallo a ogni passo.
In sintesi — Procedimento
- Partire da con .
- Calcolare il punto medio e il segno di .
- Se : lo zero sta in , pongo . Altrimenti sta in , pongo .
- Ripetere dal passo 2 finché (la precisione desiderata).
A ogni passo l’intervallo si dimezza: dopo passi l’errore è .
Esempio — Bisezione applicata a
Sia . Cerchiamo uno zero.
; . Segni opposti: c’è uno zero in .
Passo 1 2 3 4 5 Dopo 5 passi lo zero è in , con errore . Valore approssimato: .
La forza della bisezione è la sua robustezza: richiede solo di saper valutare e riconoscere il suo segno, e converge sempre (purché si parta da un cambio di segno). Il prezzo è la lentezza: guadagna circa una cifra decimale ogni iterazioni.
Collegamenti
Argomenti: Continuita
Concetti: Algoritmo di bisezione · Teorema degli zeri
Competenze: Stimare · Usare formule
The zero theorem does not say where the zero is, only that it exists. The bisection algorithm finds it by successive approximations, halving the interval at each step.
In brief — Procedure
- Start from with .
- Compute the midpoint and the sign of .
- If : the zero is in , set . Otherwise it is in , set .
- Repeat from step 2 until (the desired precision).
At each step the interval halves: after steps the error is .
Example — Bisection applied to
Let . Let us look for a zero.
; . Opposite signs: there is a zero in .
Step 1 2 3 4 5 After 5 steps the zero is in , with error . Approximate value: .
The strength of bisection is its robustness: it requires only being able to evaluate and recognise its sign, and it always converges (provided one starts from a change of sign). The price is its slowness: it gains about one decimal digit every iterations.
Links
Topics: Continuita
Concepts: Algoritmo di bisezione · Teorema degli zeri
Skills: Stimare · Usare formule
L’algoritmo di bisezione è robusto ma lento: dimezza l’errore a ogni passo, quindi guadagna circa una cifra decimale ogni iterazioni. Se conosciamo la derivata di possiamo costruire un algoritmo molto più rapido: il metodo di Newton-Raphson.
Proprietà — Iterazione di Newton
Sia derivabile con derivata , e sia una stima iniziale di uno zero. La successione converge (sotto ipotesi ragionevoli) a uno zero di . Geometricamente: si traccia la tangente al grafico di nel punto e si prende come l’intersezione della tangente con l’asse .
Metodo di Newton per : dalla stima la tangente incontra l’asse in , più vicino alla radice ; ripetendo, ci si avvicina rapidamente.
Collegamenti
Argomenti: Continuita
Concetti: Algoritmo di bisezione · Derivata · Metodo di newton raphson · Retta · Retta tangente
Metodi: Newton raphson
Competenze: Interpretare grafico · Usare formule
The bisection algorithm is robust but slow: it halves the error at each step, so it gains about one decimal digit every iterations. If we know the derivative of we can build a much faster algorithm: the Newton-Raphson method.
Property — Newton's iteration
Let be differentiable with derivative , and let be an initial estimate of a zero. The sequence converges (under reasonable hypotheses) to a zero of . Geometrically: one draws the tangent to the graph of at the point and takes as the intersection of the tangent with the -axis.
Newton’s method for : from the estimate the tangent meets the -axis at , closer to the root ; repeating, one approaches it rapidly.
Links
Topics: Continuita
Concepts: Algoritmo di bisezione · Derivata · Metodo di newton raphson · Retta · Retta tangente
Methods: Newton raphson
Skills: Interpretare grafico · Usare formule
Applicare Newton all’estrazione di radice porta a una formula antichissima, e mostra quanto sia rapida la sua convergenza.
Esempio — Calcolo di con Newton
Sia , . L’iterazione diventa Partendo da :
| | | | |:---:|:---:|:---:| | | | | | | | | | | | | | | | | | | | |
A ogni passo raddoppiano le cifre decimali corrette: la convergenza è quadratica, nel senso che in un intorno della radice (Esty, 2014). È il celebre algoritmo babilonese-eroniano per il calcolo della radice, attribuito a Erone d’Alessandria ( d.C.; Boyer, 2011).
La formula ha una lettura intuitiva: se è una stima per eccesso di , allora lo è per difetto, e la loro media è una stima migliore. Questa idea di “media tra eccesso e difetto” è proprio il metodo antico, e la convergenza quadratica spiega perché bastino pochissimi passi per ottenere moltissime cifre.
Collegamenti
Argomenti: Continuita
Concetti: Convergenza quadratica · Metodo di newton raphson
Metodi: Newton raphson
Competenze: Calcolare · Usare formule
Persone: Erone
Applying Newton to the extraction of a root leads to a very ancient formula, and shows how fast its convergence is.
Example — Computing with Newton
Let , . The iteration becomes Starting from :
| | | | |:---:|:---:|:---:| | | | | | | | | | | | | | | | | | | | |
At each step the number of correct decimal digits doubles: the convergence is quadratic, in the sense that in a neighbourhood of the root (Esty, 2014). It is the famous Babylonian-Heronian algorithm for computing the root, attributed to Hero of Alexandria ( AD; Boyer, 2011).
The formula has an intuitive reading: if is an overestimate of , then is an underestimate, and their average is a better estimate. This idea of the “average between overestimate and underestimate” is precisely the ancient method, and the quadratic convergence explains why very few steps are enough to obtain a great many digits.
Links
Topics: Continuita
Concepts: Convergenza quadratica · Metodo di newton raphson
Methods: Newton raphson
Skills: Calcolare · Usare formule
People: Erone
Newton è molto più veloce della bisezione, ma paga questa velocità con una minore robustezza: può non convergere se le condizioni iniziali sono sfavorevoli.
Esempio — Confronto con la bisezione
La bisezione applicata a su dà errore dopo circa iterazioni; Newton lo fa in . Trade-off: la bisezione richiede solo (e un cambio di segno); Newton richiede e una stima iniziale “abbastanza vicina”.
Attenzione — Quando Newton fallisce
La convergenza non è garantita in tutti i casi:
- Se in qualche punto divisione per zero, divergenza.
- Se è scelto male, l’iterazione può “saltare” fuori e oscillare (per esempio a partire da produce un ciclo ).
- Vicino a zeri multipli la convergenza è solo lineare, non più quadratica.
La strategia comune è ibrida: prima un paio di passi di bisezione per “avvicinarsi”, poi Newton per affinare rapidamente.
In sintesi: la bisezione è la scelta sicura ma lenta; Newton è la scelta veloce ma delicata. Nella pratica numerica si combinano i due, sfruttando la robustezza dell’una per garantire una buona stima iniziale e la rapidità dell’altra per la precisione finale.
Collegamenti
Argomenti: Continuita
Concetti: Algoritmo di bisezione · Convergenza quadratica · Metodo di newton raphson
Metodi: Newton raphson
Competenze: Analisi casi limite · Ragionare per casi
Newton’s method is much faster than bisection, but it pays for this speed with lower robustness: it may fail to converge if the initial conditions are unfavourable.
Example — Comparison with bisection
Bisection applied to on gives an error after about iterations; Newton does it in . Trade-off: bisection requires only (and a sign change); Newton requires and an initial estimate that is “close enough”.
Warning — When Newton fails
Convergence is not guaranteed in every case:
- If at some point division by zero, divergence.
- If is chosen badly, the iteration may “jump” away and oscillate (for example starting from produces a cycle ).
- Near multiple zeros convergence is only linear, no longer quadratic.
The common strategy is hybrid: first a couple of bisection steps to “get close”, then Newton to refine quickly.
In summary: bisection is the safe but slow choice; Newton is the fast but delicate choice. In numerical practice the two are combined, exploiting the robustness of the one to guarantee a good initial estimate and the speed of the other for the final precision.
Links
Topics: Continuity
Concepts: Bisection algorithm · Quadratic convergence · Newton-Raphson method
Methods: Newton-Raphson
Skills: Analysis of limiting cases · Reasoning by cases