Skip to content

Chapter 2 — Functions

2.3 — Visualization and Basic Topology in the Plane: Global Behavior

A graph is not looked at: it is read, as any other mathematical statement is read.


In §2.1 the graph of a function was defined as a precise subset of R×R\mathbb{R} \times \mathbb{R}, not as an intuitive sketch. This section takes advantage of that precision. Each geometric property we are going to discuss, such as meeting a vertical line, touching the xx-axis, being symmetric, or going up and down, is an algebraic property translated into the language of the plane, and each can be checked exactly from the formula, without relying on a visual impression.

At the close of §2.1 a question was left pending: given an arbitrary subset of the plane, how can we recognize whether it is the graph of some function? The answer is a direct translation of the existence and uniqueness conditions of §2.1.

Proposition (vertical line test). Let A⊆RA \subseteq \mathbb{R} and G⊆A×RG \subseteq A \times \mathbb{R}. Then GG is the graph of a function f:A→Rf : A \to \mathbb{R} if and only if each vertical line x=ax = a, with a∈Aa \in A, meets GG in exactly one point.

Proof. The vertical line x=ax = a is the set {(a,y)∣y∈R}\{(a, y) \mid y \in \mathbb{R}\}, and a point of GG lies on it exactly when its first coordinate is aa. Suppose that G=Gr⁡(f)G = \operatorname{Gr}(f) for a function f:A→Rf : A \to \mathbb{R}. For each a∈Aa \in A, the points of GG with first coordinate aa are the pairs (a,y)∈f(a, y) \in f; by existence there is at least one, and by uniqueness there is at most one. The line x=ax = a therefore meets GG in exactly one point, (a,f(a))(a, f(a)). Conversely, suppose that each line x=ax = a with a∈Aa \in A meets GG in exactly one point. Since G⊆A×RG \subseteq A \times \mathbb{R}, GG is a relation from AA to R\mathbb{R}; having at least one point on each line is existence, and having at most one is uniqueness. Therefore GG is a function from AA to R\mathbb{R}, and it is its own graph. ■\blacksquare

The test adds no new fact: it is the definition of function of §2.1 seen in the plane. That is why the circle of §2.1 fails the test exactly where it failed the definition: each vertical line x=ax = a with ∣a∣<r|a| < r meets it in two points, one with y>0y > 0 and another with y<0y < 0.


The domain and the image, defined in §2.1 and computed in §2.2, have a direct geometric reading as projections of the graph onto the axes. The domain is the set of abscissas aa for which the vertical line x=ax = a touches the graph. The image is the set of ordinates bb for which the horizontal line y=by = b touches the graph in at least one point. This reading serves as a quick check, in the spirit of §1.9, but it does not replace the computation of §2.2: a finite window may hide parts of the domain or the image that extend beyond what the screen shows.

It is worth reviewing visually the notation with which domains and images are described: the open and closed intervals of §1.1 and the neighborhood Bδ(x0)=(x0−δ,x0+δ)B_\delta(x_0) = (x_0 - \delta, x_0 + \delta), also from §1.1, which will reappear in §2.4 and in the relative extrema of §2.8.

Comparison between an open interval, a closed one, and a neighborhood of radius delta around a point

Figure 2.1 — Open interval, closed interval, and neighborhood Bδ(x0)=(x0−δ,x0+δ)B_\delta(x_0)=(x_0-\delta,x_0+\delta).


A zero of ff is a value x∈Dom⁡(f)x \in \operatorname{Dom}(f) such that f(x)=0f(x) = 0; geometrically, a point where the graph touches or crosses the xx-axis. Finding the zeros of a function means solving the equation f(x)=0f(x) = 0 with the techniques of §1.5.

To know the sign of a function between its zeros, the method is the sign analysis of §1.7. When f(x)f(x) is a polynomial or a quotient of polynomials, the numerator and the denominator are factored, and the roots of all the factors divide the domain into intervals on which no factor changes sign; therefore neither does ff. Note that the roots of the denominator matter even though they are not zeros of ff: 1x\frac{1}{x} has no zero and yet it is negative for x<0x < 0 and positive for x>0x > 0. The sign of a function can change at a point excluded from the domain.

Does the same hold for every function? Not without more. A piecewise function can jump from a negative value to a positive one without passing through zero; for example, the one that equals −1-1 for x<0x < 0 and 11 for x≥0x \ge 0. For the sign to change only at a zero, the function must have no jumps, a property called continuity, and proving that the sign then changes only at zeros requires a theorem of Calculus, the intermediate value theorem. In this book we apply sign analysis to functions whose expression can be factored, where the argument of §1.7 is complete.

Example. Let f(x)=x−1x+2f(x) = \dfrac{x - 1}{x + 2}. Its only zero is x=1x = 1, and its domain excludes x=−2x = -2. By §1.7, ff is positive on (−∞,−2)(-\infty, -2), negative on (−2,1)(-2, 1) and positive on (1,∞)(1, \infty): it changes sign at the zero x=1x = 1 and also at the excluded point x=−2x = -2.


Two kinds of symmetry of the graph deserve a name of their own, because they simplify the study of a function: it is enough to know its behavior for x≥0x \ge 0 to deduce the rest.

Definition. Let ff be a function whose domain is symmetric with respect to the origin, that is, x∈Dom⁡(f)  ⟺  −x∈Dom⁡(f)x \in \operatorname{Dom}(f) \iff -x \in \operatorname{Dom}(f). We say that ff is even if f(−x)=f(x)f(-x) = f(x) for all x∈Dom⁡(f)x \in \operatorname{Dom}(f), and odd if f(−x)=−f(x)f(-x) = -f(x) for all x∈Dom⁡(f)x \in \operatorname{Dom}(f).

The requirement on the domain is not incidental: without it, f(−x)f(-x) might not be defined even though f(x)f(x) is, and the comparison would lose its meaning before it began.

Each of these conditions is the translation of a symmetry from §1.8. If ff is even, each point (x,f(x))(x, f(x)) of the graph comes with (−x,f(x))(-x, f(x)), which is symmetry with respect to the yy-axis. If ff is odd, each point (x,f(x))(x, f(x)) comes with (−x,−f(x))(-x, -f(x)), which is symmetry with respect to the origin. The third symmetry of §1.8, with respect to the xx-axis, is impossible for a function that is not identically zero: if f(x)=y≠0f(x) = y \neq 0, the symmetry would require (x,−y)(x, -y) to lie on the graph as well, and ff would have two different values at the same xx, against the uniqueness of §2.1.

Examples. The function f(x)=x2f(x) = x^2 is even, because f(−x)=(−x)2=x2=f(x)f(-x) = (-x)^2 = x^2 = f(x). The function f(x)=x3f(x) = x^3 is odd, because f(−x)=(−x)3=−x3=−f(x)f(-x) = (-x)^3 = -x^3 = -f(x). Most functions are neither even nor odd. For f(x)=x2+xf(x) = x^2 + x, for example, f(1)=2f(1) = 2 and f(−1)=0f(-1) = 0: since f(−1)≠f(1)f(-1) \neq f(1), it is not even, and since f(−1)≠−f(1)f(-1) \neq -f(1), it is not odd. A single pair of values is enough to rule out both symmetries. Parity is a special property, not the usual situation.


§5. Monotonicity: increasing and decreasing

Section titled “§5. Monotonicity: increasing and decreasing”

The last property of this section describes precisely something the graph suggests informally: whether a function goes up or down as xx advances.

Definition. Let ff be a function and I⊆Dom⁡(f)I \subseteq \operatorname{Dom}(f) an interval. We say that ff is increasing on II if for all x1,x2∈Ix_1, x_2 \in I

x1<x2  ⟹  f(x1)<f(x2)x_1 < x_2 \implies f(x_1) < f(x_2)

and decreasing on II if, under the same hypothesis, f(x1)>f(x2)f(x_1) > f(x_2). If the inequality in the conclusion is non-strict, f(x1)≤f(x2)f(x_1) \le f(x_2) or f(x1)≥f(x2)f(x_1) \ge f(x_2), we speak of a nondecreasing or nonincreasing function, respectively. In this book, “increasing” and “decreasing” without qualification refer to the strict case.

The definition does not depend on looking at the graph, but on comparing values of ff at pairs of points, and that is why it can be checked algebraically without drawing anything. Determining the intervals of monotonicity of functions more complicated than those of this chapter is one of the problems that motivate differential Calculus; here, direct comparison from the definition is enough.

Example. The function f(x)=x2f(x) = x^2 is decreasing on (−∞,0](-\infty, 0] and increasing on [0,∞)[0, \infty). We use the lemma of §1.2: if 0≤u<v0 \le u < v, then u2<v2u^2 < v^2. If 0≤x1<x20 \le x_1 < x_2, the lemma gives x12<x22x_1^2 < x_2^2 directly. If x1<x2≤0x_1 < x_2 \le 0, multiplying by −1-1 gives 0≤−x2<−x10 \le -x_2 < -x_1, and the lemma gives (−x2)2<(−x1)2(-x_2)^2 < (-x_1)^2, that is, x22<x12x_2^2 < x_1^2. The point x=0x = 0 belongs to both intervals: there the function finishes decreasing and starts increasing.


The properties gathered in this section, the vertical line test, zeros and sign, symmetry and monotonicity, share a pattern: none is an observation about the drawing, but an algebraic statement that translates exactly into a geometric feature. The graph is useful precisely because that translation exists and is faithful; not because it replaces algebra, but because it makes it visible.

With this vocabulary available, it is time to apply it to a concrete, small set of functions, the elementary prototypes of the chapter, and to study in one of them the behavior near the edges of its domain. That is the topic of the next section.