Cosine = Contraction? (Banach)

Click For Summary

Discussion Overview

The discussion revolves around the application of Banach's contraction theorem to the cosine function, specifically questioning whether cosine is a strict contraction on the entire real line and exploring its behavior near critical points like pi/2.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants question whether cosine is a strict contraction on the whole real line, noting potential issues near pi/2.
  • Others argue that the contraction must be restricted to a small enough interval due to the behavior of cosine around pi/2.
  • A participant presents a detailed analysis showing that cosine can be considered a contraction mapping on intervals of the form [-pi/2+ε, pi/2-ε] where ε is a small positive number.
  • There is mention of a well-known trigonometric identity regarding sin(h)/h approaching 1 as h approaches 0, which is used to support the argument about contraction factors.
  • Another participant acknowledges the proof that cosine fails to be a strict contraction near pi/2 and suggests an alternative proof using the mean value theorem.
  • A participant expresses appreciation for informative contributions, indicating a positive reception of the discussion's insights.

Areas of Agreement / Disagreement

Participants do not reach a consensus on whether cosine is a strict contraction across the entire real line, with multiple competing views regarding its behavior near critical points and the necessity of interval restrictions.

Contextual Notes

The discussion highlights limitations regarding the assumptions about the behavior of cosine near pi/2 and the dependence on the choice of intervals for establishing contraction properties.

nonequilibrium
Messages
1,412
Reaction score
2
So in Analysis I we explained the convergence of cos to a fixed value by Banach's contraction theorem. But is the cos a strict contraction? Is that obvious? (What is its contraction factor?)
 
Physics news on Phys.org
It's not obvious to me that cosine is a strict contraction on the whole real line. In fact, I'm not sure it's even true. For instance, around pi/2 seems to pose many problems. Was the contraction restricted to an interval?
 
As Tedjn mentioned you need to restrict cosine to a small enough interval due to the behavior near pi/2 (and kpi+pi/2 for all integers k). In fact it's a well-known trigonometric identity that [itex]\sin(h)/h \to 1[/itex] as [itex]h\to 0[/itex] so this gives us:
[tex]\left|\frac{\cos(\pi/2-h) -\cos(\pi/2)}{\pi/2-h-\pi/2}\right| = \frac{\cos(\pi/2-h)}{h} = \frac{\sin(h)}{h} \to 1[/tex]
for [itex]h \to 0[/itex]. This shows in particular:
[tex]d(\cos(\pi/2),\cos(x)) \to d(\pi/2,x) \qquad \mbox{for }x \to \pi/2[/tex]
so if you choose a contraction factor k < 1 it would result in a contradiction for x close enough to [itex]\pi/2[/itex].

However it's possible to show that cos is a contraction mapping defined on any set of the form [itex][-\pi/2+\epsilon,\pi/2-\epsilon][/itex] where [itex]0 < \epsilon < \pi/2[/itex]. In fact we know [itex]|sin h| < |h|[/itex] for all h in [itex][-\pi/2,\pi/2][/itex]. Let [itex]k=\sin(\pi/2-\epsilon) < 1[/itex]. Using the identity:
[tex]\cos y - \cos x = 2\sin\left(\frac{x+y}{2}\right)\sin\left(\frac{x-y}{2}\right)[/tex]
we have:
[tex]\begin{align*}<br /> f(x,y) = \left|\frac{\cos y - \cos x}{y - x}\right| &= \left|2\sin\left(\frac{x+y}{2}\right)\frac{\sin\left(\frac{x-y}{2}\right)}{x-y}\right| \\<br /> &= \left|\sin\left(\frac{x+y}{2}\right)\frac{\sin\left(\frac{x-y}{2}\right)}{\frac{x-y}{2}}\right|<br /> \end{align*}[/tex]
Clearly a least upper bound for f(x,y) is equivalent to a contraction factor. We can fix [itex]x=pi/2-\epsilon[/itex] and let y approach x from below. Then the first term of f(x,y) approaches [itex]\sin(\pi/2-\epsilon)[/itex] and the second approaches 1, so f(x,y) will approach [tex]k=sin(\pi/2-\epsilon)[/tex]. This shows that the contraction factor must at least be k. On the other hand we have:
[tex]\left|\frac{\sin\left(\frac{x-y}{2}\right)}{\frac{x-y}{2}}\right| \leq 1[/tex]
so
[tex]|f(x,y)| \leq \left|sin\left(\frac{x+y}{2}\right)\right| \leq \sin(\pi/2-\epsilon) = k[/tex]
which shows that k is actually the contraction factor for cos defined on [itex][-\pi/2+\epsilon,\pi/2-\epsilon][/itex].

This should however be sufficient as [itex]|cos(x)| \leq 1[/itex] so clearly any fixed point will lie in [itex][-1,1][/itex] and [itex]\pi/2 > 1[/itex].
 
Last edited:
A very nice proof that it fails near pi/2. Another way I've seen the second part proved is using the mean value theorem.
 
Ramshop, that's the second time you've made a very informative post, thank you.

Also thank you to Tedjn for posting :)

Having seen the proof, it's logical the fixed-point theorem of Banach still applies, as no matter where you start, you'll eventually end up in the strict contraction "zone".
 
One button calculator, cos, cos, cos,...
Code:
     _________________________________
    |    _   _  _  _  _  _  _     _   |
    |   | |   | _||_|| ||_||_   | _|  |
    |   |_|.  | _| _||_||_| _|  | _|  |
    |                             rad |
    +---------------------------------+
    |                                 |
    |                                 |
    |           +--------+            |
    |           | cosine |            |
    |           +--------+            |
    |                                 |
    |                                 |
    ._________________________________.
 
Last edited:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K