4.2 Functions on the real line: basic properties

We turn to examining some basic behaviours of functions defined on the real line. This discussion mirrors (and in fact, generalises) the discussion on sequences in Section 2.3.

Monotone functions

We first consider functions whose values either get larger or smaller as xx increases.

Definition 4.9.

Let EE\subseteq\mathbb{R} and XEX\subseteq E be nonempty and f:Ef\colon E\to\mathbb{R} be a function.

  1. 1

    We say ff is increasing on XX if f(x)<f(y)f(x)<f(y) for all xx, yXy\in X with x<yx<y.

  2. 2

    We say ff is decreasing on XX if f(x)>f(y)f(x)>f(y) for all xx, yXy\in X with x<yx<y.

  3. 3

    We say ff is strictly monotone on XX if it is either increasing or decreasing on XX.

Sometimes we say strictly increasing or strictly decreasing on XX, to emphasise that the inequalities are strict (as opposed to \leq or \geq). If X=EX=E is the whole domain, then we often drop ‘on XX’ and simply say ff is increasing, decreasing or strictly monotone.

Example 4.10.

We consider some familiar examples.

  1. 1.

    From the definition in terms of the unit circle (Figure 4.4), we can see that the function sin:\sin\colon\mathbb{R}\to\mathbb{R} is increasing on [π/2,π/2][-\pi/2,\pi/2] and decreasing on [π/2,3π/2][\pi/2,3\pi/2]. However sin:\sin\colon\mathbb{R}\to\mathbb{R} is neither increasing nor decreasing on [π/2,3π/2][-\pi/2,3\pi/2].

  2. 2.

    The function exp:\exp\colon\mathbb{R}\to\mathbb{R} is increasing.

    As noted earlier, exp(y)>exp(x)\exp(y)>\exp(x) for all y>x0y>x\geq 0. This is also true for all x,yx,y\in\mathbb{R}, as we will see later in the course.

Exercise 4.11.

Consider the function f:[0,)f\colon[0,\infty)\to\mathbb{R} given by f(x):=11/(x2+1)f(x):=1-1/(x^{2}+1) for all x0x\geq 0. Sketch the graph of ff and prove that it is increasing.

Exercise 4.12.

Show that log:(0,)\log\colon(0,\infty)\to\mathbb{R} is increasing. Hint: use the fact from Example 4.10 that exp\exp is increasing, and that log\log is the inverse of exp\exp.

Remark 4.13.

Recall from Definition 2.1 that a sequence is a function a:a\colon\mathbb{N}\to\mathbb{R}. Because of this, the above definition generalises our existing definitions of increasing and decreasing sequences (if we set E=X=E=X=\mathbb{N}, we recover our earlier definitions). Similar remarks also apply to the forthcoming definitions, which generalise established concepts for sequences.

Definition 4.14.

Let EE\subseteq\mathbb{R} and XEX\subseteq E be nonempty and f:Ef\colon E\to\mathbb{R} be a function.

  1. 1

    We say ff is non-decreasing on XX if f(x)f(y)f(x)\leq f(y) for all xx, yXy\in X with xyx\leq y;

  2. 2

    We say ff is non-increasing on XX if f(x)f(y)f(x)\geq f(y) for all xx, yXy\in X with xyx\leq y;

  3. 3

    We say ff is monotone on XX if it is either non-decreasing or non-decreasing on XX.

As before, if X=EX=E is the whole domain, then we often drop ‘on XX’ and simply say ff is non-decreasing, non-increasing or monotone.

Example 4.15.

The function p2:p_{2}\colon\mathbb{R}\to\mathbb{R} given by p2(x):=x2p_{2}(x):=x^{2} is strictly monotone on [1,0][-1,0] or [0,1][0,1] but it is not monotone on [1,1][-1,1].

  • For x,y[1,0]x,y\in[-1,0], x<yx2>y2x<y\implies x^{2}>y^{2}.

  • For x,y[0,1]x,y\in[0,1], x<yx2<y2x<y\implies x^{2}<y^{2}.

  • Note that p2(1)=1>0=p2(0)p_{2}(-1)=1>0=p_{2}(0) while p2(0)=0<1=p2(1)p_{2}(0)=0<1=p_{2}(1).

Exercise 4.16.

Let χ:\chi_{\mathbb{Q}}\colon\mathbb{R}\to\mathbb{R} be the Dirichlet function from Example 4.3. Show that for any aa, bb\in\mathbb{R} with a<ba<b, the function χ\chi_{\mathbb{Q}} is not monotone on the interval (a,b)(a,b).

Bounded and unbounded functions

The functions x11/(x2+1)x\mapsto 1-1/(x^{2}+1) and xx2x\mapsto x^{2} are both increasing on [0,)[0,\infty), but exhibit very different behaviours.

Definition 4.17.

Let EE\subseteq\mathbb{R} and XEX\subseteq E be nonempty and f:Ef\colon E\to\mathbb{R} be a function.

  1. 1

    We say ff is bounded above on XX if there exists some MM\in\mathbb{R} such that f(x)Mf(x)\leq M for all xXx\in X.

  2. 2

    We say ff is bounded below on XX if there exists some MM\in\mathbb{R} such that f(x)Mf(x)\geq M for all xXx\in X.

  3. 3

    We say ff is bounded on XX if it is both bounded above and bounded below on XX. Otherwise, ff is unbounded on XX.

Once again, if X=EX=E is the whole domain, then we often drop ‘on XX’ and simply say ff is bounded above, bounded below, bounded or unbounded.

Note that, by definition, the function f:Ef\colon E\to\mathbb{R} is bounded above (respectively, below) if and only the set {f(x):xE}\{f(x):x\in E\} is bounded above (respectively, below) in the sense introduced in Definition 1.1 (respectively, Definition 1.39).

Example 4.18.

We return to the examples mentioned above.

  1. 1.

    The function f:[0,)f\colon[0,\infty)\to\mathbb{R} given by f(x):=11/(x2+1)f(x):=1-1/(x^{2}+1) for all x0x\geq 0 satisfies 0f(x)10\leq f(x)\leq 1 for all x0x\geq 0 and so it is bounded. This gives an example of a function which is increasing and bounded above.

  2. 2.

    The function p2:[0,)p_{2}\colon[0,\infty)\to\mathbb{R} given by p2(x):=x2p_{2}(x):=x^{2} is bounded below since p2(x)0p_{2}(x)\geq 0 for all x0x\geq 0. However, it is not bounded above. Indeed, given any M>0M>0, if we choose x0:=M+1x_{0}:=M+1, then p2(x0)=(M+1)2>Mp_{2}(x_{0})=(M+1)^{2}>M, so MM is not an upper bound for p2p_{2}. Since MM was arbitrary, there does not exist an upper bound for the function.

Exercise 4.19.

Consider the reciprocal function r:{0}r\colon\mathbb{R}\setminus\{0\}\to\mathbb{R} given by r(x):=1/xr(x):=1/x. Let δ>0\delta>0.

  1. (i)

    Show that rr is bounded on (,δ][δ,)(-\infty,-\delta]\cup[\delta,\infty).

  2. (ii)

    Show that rr is unbounded on (δ,δ){0}(-\delta,\delta)\setminus\{0\}.