If near and as , then by the squeeze theorem, even if has no limit. Defining the product to be zero at gives continuity there. For example, extends continuously at zero; the same oscillation near a nonzero multiple of has nonvanishing amplitude and does not have a continuous zero extension.
Away from integer multiples of , the function is a composition of continuous functions. At zero, the bound gives by the squeeze theorem. This is oscillation multiplied by a vanishing amplitude.
Fix and set and . Then , , and
So is discontinuous at every nonzero integer multiple of . Its set of continuity points is
On , for , while . With as above, . Consequently the supremum is and is not attained. This illustrates that supremum can fail to be attained at an oscillatory endpoint.
On , set . It lies strictly inside the interval, and , so . Choose . On ,
On , is a continuous function, so the extreme value theorem gives a maximum there, at least . It exceeds every value on the discarded interval. Therefore does attain its supremum on . This is the interior-value criterion for an attained maximum.
Figure 1.
Oscillatory function near pi: an unattained left supremum and a right interior value above the endpoint envelope
.
For , the usual unit-circle area comparison, with angles measured in radians, gives . Hence
The cosine is a continuous function at zero, so the squeeze theorem yields the right-hand limit of a function . The quotient is even, so the left-hand limit of a function is the same. Thus the limit is .
For , the exponent lies in , and . Consequently
The last inequality uses the positive-term power series for . The final bound tends to zero, so the squeeze theorem gives limit .
We first prove by induction that
It holds for , and if it holds at , then
Consequently
Part (c) and the squeeze theorem now give
Because is a monotone sequence, every one of its first terms is at most , so
On the other hand, every term from through is at least , and hence
Both the lower bound and upper bound tend to because the Cesaro means converge to . The squeeze theorem gives
Since the natural logarithm is increasing, comparison with an integral gives
The lower bound is . Dividing all three expressions by and applying the squeeze theorem gives
Let be the complete quotient after . Part (a) writes the irrational number as
so lies between the adjacent continued fraction convergents and . Their separation is
Because all are positive integers, the recurrence implies . Hence this separation tends to zero, and the squeeze theorem gives
Let
Continuity at zero gives . Part (a), with the positive weight , gives
The squeeze theorem therefore yields
Since is bounded on , say , the omitted tail satisfies
Adding the tail proves