<?xml version="1.0" encoding="UTF-8"?>

<record version="6" id="2813">
 <title>proof of intermediate value theorem</title>
 <name>ProofOfIntermediateValueTheorem</name>
 <created>2002-04-04 16:50:38</created>
 <modified>2006-11-03 12:55:55</modified>
 <type>Proof</type>
<parent id="423">intermediate value theorem</parent>
 <selfproof>0</selfproof>
 <creator id="2760" name="yark"/>
 <author id="2760" name="yark"/>
 <author id="148" name="vitriol"/>
 <classification>
	<category scheme="msc" code="26A06"/>
 </classification>
 <preamble>\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
</preamble>
 <content>We first prove the following lemma.

If $f:[a,b] \to \mathbb{R}$ is a continuous function with $f(a) \le 0 \le f(b)$ then there exists a $c \in [a,b]$ such that $f(c) = 0$.

Define the sequences $(a_n)$ and $(b_n)$ inductively, as follows.

$$a_0 = a \quad b_0 = b$$
$$c_n = \frac{a_n + b_n}{2}$$
$$(a_n, b_n) = \begin{cases} (a_{n-1}, c_{n-1}) &amp; f(c_{n-1}) \ge 0 \\			(c_{n-1}, b_{n-1}) &amp; f(c_{n-1}) &lt; 0  \end{cases}$$

We note that

$$ a_0 \le a_1 \le \cdots \le a_n \le b_n \le \cdots \le b_1 \le b_0 $$
\begin{equation} (b_n - a_n) = 2^{-n}(b_0 - a_0) \end{equation}
\begin{equation} \label{eqn} f(a_n) \le 0 \le f(b_n) \end{equation}

By the fundamental axiom of analysis $(a_n) \to \alpha$ and $(b_n) \to \beta$. But $(b_n - a_n) \to 0$ so $\alpha = \beta$.
By continuity of $f$
$$(f(a_n)) \to f(\alpha) \quad (f(b_n)) \to f(\alpha)$$
But we have $f(\alpha) \le 0$ and $f(\alpha) \ge 0$ so that $f(\alpha) = 0$. Furthermore we have $a \le \alpha \le b$, proving the assertion.

Set $g(x) = f(x) - k$ where $f(a) \le k \le f(b)$. $g$ satisfies the same conditions as before, so there exists a $c$ such that $f(c) = k$. Thus proving the more general result.</content>
</record>
