MathLabs

Problem 5

Let ff be a real-valued function defined for all real numbers xx such that, for some positive constant aa, the equation f(x+a)=12+f(x)−f(x)2f(x+a)=\frac12+\sqrt{f(x)-f(x)^2} holds for all xx. (a) Prove that ff is periodic. (b) For a=1a=1, give an example of a non-constant function with the required property.
Step 5 of 5: Verify the recurrence in both intervals
In plain words

There are only two possible input states, and the recurrence swaps them deterministically: 1↦121\mapsto\frac12 and 12↦1\frac12\mapsto1. Checking these two transitions is therefore a complete verification, including interval endpoints because the intervals are half-open.

f(x+1)=12+f(x)−f(x)2for the two cases f(x)=1 and f(x)=12f(x+1)=\frac12+\sqrt{f(x)-f(x)^2}\quad\text{for the two cases }f(x)=1\text{ and }f(x)=\frac12
Detailed analysis

If f(x)=1f(x)=1, then 12+f(x)−f(x)2=12\frac12+\sqrt{f(x)-f(x)^2}=\frac12, and x+1x+1 lies in the next half-open interval where f(x+1)=12f(x+1)=\frac12. If f(x)=12f(x)=\frac12, then 12+f(x)−f(x)2=12+14−14=1\frac12+\sqrt{f(x)-f(x)^2}=\frac12+\sqrt{\frac14-\frac14}=1, and x+1x+1 lies in the following interval where f(x+1)=1f(x+1)=1. Thus the displayed recurrence holds for every real xx.