On this page
You can run the tent map with a pencil. Take a number x between 0 and 1. If it is less than 1/2, double it; otherwise, subtract double it from 2. Repeat. That one rule produces chaos, and because every step is a straight line, you can check each claim below by hand.
What is the tent map?
The tent map is T(x) = 2x for x < 1/2 and T(x) = 2 − 2x for x ≥ 1/2, and its graph is a tent with its peak at (1/2, 1) (the tent map entry). It stretches [0, 1] to twice its length and folds it back onto itself. Stretching pulls nearby points apart; folding keeps them inside the interval.
The slope is 2 or −2 everywhere, and that one number does most of the work below. To draw orbits as you go, a cobweb diagram, shown here with cos x = x, works the same way for the tent map.
How does the tent map look in binary?
Write x in binary. If the first digit after the point is 0, then x < 1/2, and the map shifts every digit one place left. If the first digit is 1, the map shifts left, drops the leading 1 and flips every remaining digit (the tent map entry).
Try x = 0.2, which is 0.00110011... in binary:
0.00110011... starts with 0: shift to 0.0110011..., which is 0.4.
0.0110011... starts with 0: shift to 0.110011..., which is 0.8.
0.110011... starts with 1: shift and drop the 1 to get 0.10011... (0.6), then flip to 0.01100..., which is 0.4.
So 0.2 falls onto the cycle 0.4 → 0.8 → 0.4. Each step reads one digit and throws it away; the future of the orbit is already written in the starting digits.
Does the tent map have periodic orbits of every period?
Yes. The n-th iterate Tⁿ is a zigzag of 2ⁿ straight pieces, each running from 0 to 1, so its graph crosses the line y = x exactly 2ⁿ times. Each crossing is a point that returns after n steps:
Period 1: 0 and 2/3 (check: 2 − 4/3 = 2/3).
Period 2: 2/5 → 4/5 → 2/5.
Period 3: 2/7 → 4/7 → 6/7 → 2/7, and 2/9 → 4/9 → 8/9 → 2/9.
The number of cycles of exact length n = 1, 2, 3, 4, 5, 6 is 2, 1, 2, 3, 6, 9, the same as for the logistic map at r = 4 (the logistic map entry). The periodic points are dense in [0, 1] (the tent map entry), and every one is unstable: start a hair away and you drift off.
How fast do nearby orbits separate?
Each step multiplies a small gap by 2, so after n steps it is 2ⁿ times larger. That rate is the Lyapunov exponent, ln 2 per step, the value the logistic map has at r = 4 (the logistic map entry).
Start one orbit at 0.2 and another at 0.200001, a gap of one millionth. We worked both out with exact fractions:
Step 10: 0.8 and 0.801024, gap 0.001024.
Step 16: 0.8 and 0.734464, gap 0.065536.
Step 17: 0.4 and 0.531072; the second orbit has crossed 1/2 and takes the other branch.
Step 20: 0.8 and 0.248576, gap 0.551424.
After 17 steps the first orbit tells you nothing useful about the second. Since 2¹⁰ is about 1000, forecasting 10 more steps needs about 3 more decimal digits of the starting value.
How is the tent map related to the logistic map at r = 4?
The logistic map L(y) = 4y(1 − y), popularised by the biologist Robert May in a 1976 Nature paper (May, 1976), is the tent map in disguise. Set y = sin²(πx/2). If x < 1/2, T(x) = 2x and sin²(πx) = 4 sin²(πx/2) cos²(πx/2) = 4y(1 − y). If x ≥ 1/2, sin²(π − πx) = sin²(πx), the same answer. So one step of T matches one step of L: the maps are topologically conjugate (the tent map entry), and periodic orbits and sensitive dependence carry over.
If stretching, folding or conjugacy is new to you, the Fermi Concept Library covers every concept in mathematics and computing, each with its own lesson and its place in the map.
Why do computers lose the tent map orbit?
A double-precision number stores 53 significant binary digits, about 15 to 17 decimal digits (the double-precision format entry). The decimal 0.2 cannot be stored exactly, so the computer keeps the nearest fraction with denominator 2⁵⁴. Each tent step is exact in floating point but uses up one binary digit. After 53 steps the stored value is exactly 1/2, then 1, then 0, which maps to itself. The true orbit cycles between 0.4 and 0.8 forever; the computed one is 0 from step 55. The tent map entry shows the same collapse, with a computed time series that stops fluctuating after about 50 steps (the tent map entry).
In any map that doubles errors, a rounding error of one part in 2⁵³ grows to the size of the whole interval in about 53 steps. For where those errors come from, see why 0.1 + 0.2 ≠ 0.3 in floating point.
Some ideas are easier to see than to read, and the Fermi Simulation Lab has interactive simulations for them. For the tent map, a pencil and a few fractions are enough to see chaos start.



