Nested Radicals and Infinite Fractions
An expression that repeats itself forever — a square root inside a square root inside a square root, or a fraction inside a fraction inside a fraction — can be evaluated by setting it equal to a variable and solving the equation it satisfies.
Prerequisites: The Substitution That Collapses the Algebra
What is , with the pattern continuing forever? There's no bottom layer to start computing from — every attempt to evaluate it from the inside out just finds another identical square root waiting underneath. The trick is to stop trying to compute it layer by layer and instead notice that the whole infinite expression looks exactly like itself, one layer in.
The idea: self-similarity gives you an equation
If an infinite expression contains a copy of itself nested one level down, you can replace that inner copy with itself and solve the resulting finite equation. This works because the expression is defined as a limit of a repeating pattern — assuming that limit exists and is well-behaved, the value one layer down is the same value the whole tower converges to.
For the nested radical above, let . Everything under the first square root is again plus the same infinite radical, so:
In plain English: peeling off just the outermost square root leaves exactly the same infinite pattern underneath, so the whole thing satisfies an equation relating it to itself — an infinite object reduced to solving one algebraic equation.
Worked example 1: solving the nested radical
Square both sides of : , i.e. , which factors as , giving or . Since a square root is never negative, discard : the infinite nested radical equals exactly . Sanity check by computing a few layers by hand: , , — climbing steadily toward , consistent with the algebraic answer.
Worked example 2: the golden ratio as an infinite fraction
Evaluate . The pattern one layer down is again the same infinite fraction, so . Multiplying through by : , i.e. , which by the quadratic formula gives — the golden ratio, discarding the negative root since the fraction is built from positive terms. This is the same self-similarity trick applied to a continued fraction instead of a nested radical, and it's the standard way the golden ratio shows up as "the number that equals one plus its own reciprocal."
When an infinite nested expression looks like itself one layer in, set equal to the whole thing, substitute for the inner copy, and solve the resulting equation. Always discard roots that violate the expression's own constraints (negative under a square root, wrong sign from context).
This method silently assumes the infinite expression actually converges. For most well-behaved nested radicals and continued fractions built from positive terms it does, but the technique can produce a spurious finite answer for a sequence that in fact diverges — worth a quick numerical sanity check of the first few layers, as in the worked example.
Related concepts
Practice in interviews
Further reading
- Engel, Problem-Solving Strategies, ch. 1