Math Detours · Grade 11 · Around the corner · 26

Press cos until it stops

Set a calculator to radians, type any number and keep pressing cos. The display always settles at 0.739085... Why must there be such a number, and why does it pull everything in?

Name ____________________Date ____________

Tonight's idea

Set a calculator to radians, type 1 and keep pressing cos. The display hops about, then freezes at \(0.739085\ldots\) Call that number \(d\). It is a fixed point of cos: \(\cos d = d\), so another press changes nothing.

Close to \(d\) the curve is almost its tangent line, and a straight-line rule multiplies the gap from its fixed point by its slope each step, as in Sequences that feed on themselves.

Slope test. Suppose \(f(d) = d\) and the curve \(y = f(x)\) has slope \(m\) at \(d\). If \(|m| \lt 1\), every start close enough to \(d\) is pulled in to \(d\). If \(|m| \gt 1\), a start near \(d\), other than \(d\) itself, lands further from \(d\). If \(|m| = 1\), the test says nothing.

In radians the slope of \(\cos x\) is \(-\sin x\), a fact from calculus. At \(d\) that is about \(-0.67\), so each press multiplies a small gap by about \(-0.67\). The test assumes a fixed point exists and only covers nearby starts: question 2 and the stretch fill those holes.

Watch one: start at 1

In radians, start at 1 and press cos six times. The gap is \(x - d\), with \(d \approx 0.7391\). It changes sign every time and shrinks: the values hop from side to side of \(d\), closing in. After 32 presses the gap is under a millionth.

press0123456
display \(x\)10.54030.85760.65430.79350.70140.7640
gap \(x - d\)0.2609\(-0.1988\)0.1185\(-0.0848\)0.0544\(-0.0377\)0.0249
y = cos x 0.5 d 1 0.5 1 y = x y = 2 cos x 0 1 2 1 2 y = x
Seven presses from the dot at 1. Left: \(y = \cos x\). Right: \(y = 2\cos x\), for question 4.

The cobweb. In the left picture, start at the dot at \((1, 1)\) and go straight down to the curve: that height is \(\cos 1\). Go across to the diagonal: the output becomes the next input. Repeat. The curve slopes downwards at the crossing, so the path winds round it. The slope there has size less than 1, so it winds inwards.

Your turn

  1. In radians, start at 10 and press cos eight times. Write each display to 4 decimal places. From the third press on, work out the gap from 0.7391, and divide each gap by the one before it. What number do the ratios stay near?
  2. Let \(g(x) = \cos x - x\), in radians. (a) Find \(g(0)\) and \(g(1)\). The graph of \(g\) has no jumps. Why must \(g\) be zero somewhere between 0 and 1? (b) Why can \(g\) be zero only once between 0 and 1? (c) Why does \(\cos x = x\) have no solution below 0 or above 1?
  3. (a) Find the slope of \(\cos x\) at \(d\), which is \(-\sin(0.7391)\), to 3 decimal places. Compare it with your ratios in question 1. (b) What does the minus sign do to the display? (c) Each press multiplies the size of a small gap by about 0.67. About how many presses make a gap ten times smaller?
  4. Change the rule to \(f(x) = 2\cos x\): press cos, then double. (a) Check that \(2\cos(1.03)\) is close to 1.03. The slope there is \(-2\sin(1.03)\): find it to 2 decimal places. What does the slope test predict? (b) Start at 1 and apply the rule seven times, keeping the full display. Write each value to 4 decimal places, with its gap from 1.03. (c) Can a value go above 2 or below \(-2\)? What are the values doing?

Stretch: why every start works

The slope test only covers starts near \(d\). (a) In radians, why do two presses of cos put every start in the range from \(\cos 1 \approx 0.54\) to 1, for good? (b) In that range the slope \(-\sin x\) has size below 0.85. By calculus, two inputs in the range then have outputs at most 0.85 times as far apart. Let one input be \(d\). What follows? (c) In degrees mode the game ends near \(0.99985\) almost at once. Why there, and why so fast?

Answers

  1. The displays are \(-0.8391\), 0.6682, 0.7850, 0.7074, 0.7600, 0.7248, 0.7486, 0.7326. From the third press the gaps are 0.0459, \(-0.0317\), 0.0209, \(-0.0143\), 0.0095, \(-0.0065\). The ratios are about \(-0.69\), \(-0.66\), \(-0.68\), \(-0.66\), \(-0.68\), all near \(-0.67\). Rounding may shift a last digit. Even a start of 10 is inside \(-1\) to 1 after one press.
  2. (a) \(g(0) = 1 - 0 = 1\), which is positive, and \(g(1) = \cos 1 - 1 \approx -0.46\), which is negative. A graph with no jumps that goes from above the axis to below it must cross the axis. This is the intermediate value theorem. (b) From 0 to 1, \(\cos x\) falls and \(x\) rises, so \(g\) falls all the way and cannot take the value 0 twice. (c) \(\cos x\) is never above 1 or below \(-1\), so a solution cannot be above 1 or below \(-1\). From \(-1\) up to 0, \(\cos x\) is positive and \(x\) is not, so they are not equal. So \(d\) is the only fixed point of cos. None of this says that \(d\) pulls.
  3. (a) \(-\sin(0.7391) \approx -0.674\), matching the ratios in question 1. (b) It changes the sign of the gap at every press, so the display is above \(d\), then below, then above: the winding of the cobweb. (c) \(0.67^5 \approx 0.135\) and \(0.67^6 \approx 0.090\), so about 6 presses for each new correct digit. Compare Newton's method, where the number of correct digits roughly doubles at each step.
  4. (a) \(2\cos(1.03) \approx 1.0296\), and the fixed point is \(1.02987\) to 5 places. The slope of \(2\cos x\) is \(-2\sin x\), and \(-2\sin(1.03) \approx -1.71\). Its size is more than 1, so the test predicts that nearby values are pushed away. (b) 1.0806, 0.9416, 1.1770, 0.7674, 1.4395, 0.2619, 1.9318. The gaps from 1.03 start at \(-0.03\) and go 0.0506, \(-0.0884\), 0.1470, \(-0.2626\), 0.4095, \(-0.7681\), 0.9018. At first each gap is about \(-1.7\) times the one before. Later the gaps are too big for the tangent line to be a good guide. (c) No. \(\cos x\) is between \(-1\) and 1, so \(2\cos x\) is between \(-2\) and 2. The values are trapped, yet they cannot settle at the fixed point unless one lands on it exactly, because every near miss is thrown back out. On a computer, the values from a start of 1 are still roaming between about \(-0.83\) and 2 after a thousand steps, much as in The logistic map and chaos.

Stretch. (a) Cos of any number is between \(-1\) and 1. For an input between \(-1\) and 1, the cosine is smallest at the two ends, where it is \(\cos 1 \approx 0.54\), and largest at 0, where it is 1. So the second press lands from 0.54 to 1. That range lies inside \(-1\) to 1, so every later press lands in it again. (b) The largest slope size in the range is \(\sin 1 \approx 0.84\). \(d\) is in the range and \(\cos d = d\), so each press there leaves the value at most 0.85 times as far from \(d\) as before. After two presses the gap is at most \(1 - 0.54 = 0.46\), and \(n\) presses later at most \(0.46 \times 0.85^n\), which shrinks towards zero. Every start is pulled in to \(d\). (c) In degrees the first press still lands between \(-1\) and 1. That is a tiny angle, with cosine at least \(\cos 1^\circ\), which is 0.99985 to 5 places. So two presses put every start between \(\cos 1^\circ\) and 1, and the fixed point is in there, just above \(\cos 1^\circ\). For the speed: \(x\) degrees is \(\tfrac{\pi x}{180}\) radians, so the degrees curve is the radians curve stretched sideways by a factor of about 57.3, which divides every slope by 57.3. The slope at the fixed point is about \(-\sin 1^\circ \div 57.3 \approx -0.0003\), so each press shrinks the gap more than 3000 times.

← PreviousNext: Where does the frog end up? →