Skip to content

What is Real Analysis?

In this lesson you’ll learn what separates analysis from calculus, why the subject exists at all, and the three counterexamples that motivated the whole rebuilding project. No epsilon-delta yet, just the change of standard.

Calculus handed you a set of facts and asked you to use them.

  • A continuous function on a closed interval attains a maximum.
  • If f(x)>0f'(x) > 0 then ff is increasing.
  • You can differentiate a power series term by term.
  • A continuous function has an antiderivative.

All four are true. None was proved, and each has hypotheses that were quietly essential. Drop “closed” from the first and it fails: f(x)=xf(x) = x on (0,1)(0,1) attains no maximum.

Analysis is the same material with two changes. Every statement gets a proof, and every hypothesis gets justified by a counterexample showing what goes wrong without it.

For 150 years calculus ran on infinitesimals: quantities small enough to discard but not zero. The derivative was computed by dividing by dxdx and then setting dx=0dx = 0, which is dividing by something and then declaring it zero.

Bishop Berkeley called them “the ghosts of departed quantities” in 1734 and he was not being unfair. The technique produced right answers by reasoning nobody could defend.

Worse, once functions got stranger, intuition started producing wrong answers. Mathematicians believed a continuous function had to be differentiable except at isolated points. They believed the term-by-term limit of continuous functions was continuous. Both are false, and finding out required precise definitions.

These are the objects that forced the issue.

x|x| is continuous but not differentiable at 0. The corner has no tangent line: approaching from the left gives slope 1-1, from the right +1+1. Weierstrass later did far worse, constructing a function continuous everywhere and differentiable nowhere, which no amount of drawing prepares you for.

sin(1/x)\sin(1/x) has no limit as x0x \to 0. As xx shrinks, 1/x1/x grows without bound and the sine cycles infinitely often, hitting every value in [1,1][-1,1] arbitrarily close to zero. There is no single number it approaches. “The function gets close to something” is not precise enough to rule this out, which is exactly why the definition has to be sharper.

xnx^n on [0,1][0,1] converges to a discontinuous function. Each xnx^n is continuous. For 0x<10 \le x < 1, xn0x^n \to 0. At x=1x = 1, xn=1x^n = 1 for every nn. So the limit function is 0 on [0,1)[0,1) and 1 at x=1x=1: a jump. Continuity is not preserved by pointwise limits, and repairing that requires uniform convergence, the last lesson of the section.

What the reals have that the rationals don’t

Section titled “What the reals have that the rationals don’t”

Here’s the load-bearing fact of the whole section.

Consider the set of rationals whose square is less than 2. It has upper bounds - 1.5 is one, 2 is another. But among the rationals it has no least upper bound: any rational you propose can be beaten by a slightly smaller one, because the natural candidate is 2\sqrt2, which is irrational.

The reals fix this. Completeness: every non-empty set of reals with an upper bound has a least upper bound. Equivalently, the real line has no gaps.

Nearly every theorem ahead is completeness in disguise. Bolzano-Weierstrass, the extreme value theorem, the intermediate value theorem, the convergence of Cauchy sequences, Heine-Borel - all of them fail over Q\mathbb{Q} and all of them are consequences of that one axiom. Calculus over the rationals is impossible, and completeness is the reason.

Analysis replaces informal phrases with quantified statements, and the translation is the skill you’re building.

Calculus phraseAnalysis statement
f(x)f(x) gets close to LLfor all ε>0\varepsilon>0 there is δ>0\delta>0 with f(x)L<ε\|f(x)-L\|<\varepsilon when 0<xa<δ0<\|x-a\|<\delta
the sequence settles downfor all ε>0\varepsilon>0 there is NN with anL<ε\|a_n - L\|<\varepsilon for all n>Nn>N
the function has no jumpsff is continuous at every point of its domain
eventuallythere exists NN such that for all n>Nn > N
arbitrarily closefor every ε>0\varepsilon > 0

The pattern in the first two is worth naming now, because it never changes: an adversary hands you a tolerance ε\varepsilon, and you must produce a threshold that meets it. Every proof in this section is you winning that game.

Example 1: Why does “closed interval” matter?

Show that f(x)=xf(x) = x on the open interval (0,1)(0,1) attains no maximum.

Solution. Suppose ff attained a maximum at some c(0,1)c \in (0,1), so f(c)=cxf(c) = c \ge x for all x(0,1)x \in (0,1).

But c<1c < 1, so consider c=c+12c' = \frac{c+1}{2}. Then c<c<1c < c' < 1, so c(0,1)c' \in (0,1) and f(c)=c>cf(c') = c' > c. Contradiction.

No maximum exists. The supremum is 1, but 1 is not in the interval, so the value is approached and never reached.

The extreme value theorem requires a closed interval precisely to keep this out. On [0,1][0,1] the maximum is attained at x=1x=1.

Example 2: Why does “bounded” matter?

Solution. Take f(x)=xf(x) = x on [0,)[0, \infty), which is closed but unbounded. There is no maximum: for any cc, f(c+1)>f(c)f(c+1) > f(c).

Or take f(x)=1/xf(x) = 1/x on (0,1](0,1], which is bounded as an interval but where ff is unbounded. No maximum again.

So “continuous on a closed bounded interval” has both words doing real work, and each excludes a different failure.

Example 3: A sequence that gets close to two things.

Does an=(1)na_n = (-1)^n converge?

Solution. The terms are 1,1,1,1,-1, 1, -1, 1, \dots, so they are all within 1 of both 1-1 and 11 forever.

But convergence requires one limit that the terms eventually stay arbitrarily close to. Take ε=1/2\varepsilon = 1/2. For any proposed limit LL and any NN, the terms after NN include both 11 and 1-1, and no single LL is within 1/21/2 of both, since they are 2 apart.

Divergent. Note the sequence is bounded and never settles, which shows bounded is not enough for convergence - that gap is exactly what Bolzano-Weierstrass addresses, by promising a convergent subsequence instead.

Example 4: The rationals have a gap.

Show that S={xQ:x2<2}S = \{x \in \mathbb{Q} : x^2 < 2\} has no least upper bound in Q\mathbb{Q}.

Solution. SS is non-empty (1S1 \in S) and bounded above (22 is an upper bound, since x2x \ge 2 gives x24x^2 \ge 4).

Suppose pQp \in \mathbb{Q} were the least upper bound. Since 2\sqrt2 is irrational, p22p^2 \ne 2, so either p2<2p^2 < 2 or p2>2p^2 > 2.

If p2<2p^2 < 2, one can always find a slightly larger rational still squaring below 2, so pp is not an upper bound at all.

If p2>2p^2 > 2, one can find a slightly smaller rational still above every element of SS, so pp is not the least upper bound.

Either way a contradiction. No least upper bound in Q\mathbb{Q}.

In R\mathbb{R} the least upper bound is 2\sqrt2, and completeness is exactly the axiom that guarantees it exists.

Example 5: Reading a definition backwards.

The definition of limxaf(x)=L\lim_{x\to a} f(x) = L starts “for all ε>0\varepsilon>0 there exists δ>0\delta>0.” What would swapping the quantifiers say?

Solution. “There exists δ>0\delta > 0 such that for all ε>0\varepsilon > 0…” would demand a single δ\delta working for every tolerance at once. That forces f(x)=Lf(x) = L exactly on the whole punctured neighbourhood - a far stronger and nearly useless condition.

Order of quantifiers is not decoration. δ\delta is allowed to depend on ε\varepsilon, and it almost always does. Whether it is also allowed to depend on the point is the difference between continuity and uniform continuity, which gets its own lesson.

Numerical analysis. Every numerical method comes with a convergence theorem and an error bound, and both are analysis. Knowing that Newton’s method converges quadratically near a root and can diverge elsewhere is knowing the hypotheses of a theorem.

Floating-point arithmetic. Machine arithmetic is not associative, so summing a large array in a different order gives a different answer. Bounding that error, and designing algorithms like Kahan summation to reduce it, is applied analysis.

Machine learning. Convergence proofs for gradient descent require conditions on the objective (Lipschitz gradients, convexity) that come straight from this material. The universal approximation theorem, which says neural networks can approximate continuous functions, is a statement about uniform convergence on compact sets.

Signal processing. A Fourier series converges to its function, but in which sense? Pointwise convergence can fail at jumps, producing the Gibbs phenomenon - the ringing artifacts visible near sharp edges in over-compressed images. Distinguishing modes of convergence has direct visual consequences.

Finance and economics. Existence of an equilibrium price or an optimal portfolio is typically proved by a compactness argument. The theorem that guarantees a maximum exists is the extreme value theorem, generalized.

What is the main difference between calculus and real analysis?
Why does f(x) = x attain no maximum on the open interval (0, 1)?
Which property of the real numbers does the set of rationals lack?
Why does sin(1/x) fail to have a limit as x approaches 0?
The functions xⁿ on [0,1] converge pointwise to what?
In the definition of a limit, why does the order of the quantifiers matter?