8.6  A Table of Strange Functions

The later volumes will define continuity, limits of functions and the integral, and each definition will be tested on functions that resist being drawn. This section collects those functions in one place. For each we prove what can be proved with the tools of this chapter: the order, the floor, suprema and finite counting. What needs a limit we only ask, and the questions go into a table at the end.

8.6.1. Irrationals between any two reals

Most of the functions below treat rational and irrational points differently, so we need both kinds in every interval. The rationals are dense (Number Systems: From N to R, Theorem 4.2.5). The irrationals are dense too. Number Systems left this as an exercise (Number Systems: From N to R, Exercise (C2)), and we prove it here. A real number is irrational if it is not in Q.

Lemma 8.6.1 (Irrationals Are Dense)

For all a,b∈R with a<b there is an irrational x with a<x<b.

Proof. Let a<b. The real numbers form a complete ordered field (Number Systems: From N to R, Theorem 5.5.2). So there is 2≥0 with (2)2=2, and R is Archimedean. Since a−2<b−2, the density of the rationals gives q∈Q with a−2<q<b−2 (Number Systems: From N to R, Theorem 4.2.5). Put x:=q+2; then a<x<b.

Suppose x were rational. Then 2=x−q would be rational, as a difference of rationals. But 2 is irrational, as Section 8.3 showed from Number Systems: From N to R, Theorem 3.3.1 and the copy of Q inside R, a contradiction. Hence x is irrational.

The argument for irrationality works for every rational q: q+2 is irrational.

Quick check. Why does the proof shift by 2, and not by 1/2?

Solution. For rational q, the number q+1/2 is rational, so the shift would land on a rational. The proof needs a shift that turns every rational into an irrational, and an irrational shift does that.

8.6.2. The Dirichlet function

The simplest function that no pencil can draw is the indicator of the rationals.

Definition 8.6.1 (The Dirichlet Function)

The Dirichlet function is D:=1Q:R→R (Sets and Functions, Definition 2.3.2): D(x)=1 for x∈Q, and D(x)=0 for x∉Q.

Proposition 8.6.2 (Properties of the Dirichlet Function)
  • (a) A real p≠0 is a period of D (Definition 8.4.3) if and only if p∈Q.
  • (b) For all a<b, sup(a,b)D=1 and inf(a,b)D=0, both attained, and sup{|D(x)−D(y)|:x,y∈(a,b)}=1.
  • (c) For all a<b, D is neither increasing nor decreasing on (a,b).

Proof.

  • (a) Let p∈Q, p≠0. Since Q is closed under sums and negatives, x∈Q if and only if x+p∈Q, so D(x+p)=D(x) for every x. Let p∉Q. Then D(0)=1 and D(0+p)=0, so p is not a period.

  • (b) Every value of D is 0 or 1. The interval (a,b) contains a rational, where D is 1 (Number Systems: From N to R, Theorem 4.2.5). It also contains an irrational, where D is 0 (Lemma 8.6.1). An upper bound of D((a,b)) that is itself a value is its supremum, so sup(a,b)D=1 is attained; likewise inf(a,b)D=0. Since D is bounded on the non-empty set (a,b), Proposition 8.3.4 gives sup{|D(x)−D(y)|:x,y∈(a,b)}=1−0=1.

  • (c) By Lemma 8.6.1 there is an irrational t∈(a,b). The rationals are dense, so there are rationals q1∈(a,t) and q2∈(t,b). Then q1<t and D(q1)=1>0=D(t), so D is not increasing on (a,b). Also t<q2 with D(t)=0<1=D(q2), so it is not decreasing.

Uses: Sets and Functions, Definition 5.3.5 (a bound that is a value); Number Systems: From N to R, Theorem 4.2.5 (the rationals are dense).

Diagram. Labels: x, 1, 0

The Dirichlet function on [0,1]: the rational points sit on the upper dotted line, the irrational points on the lower one, and every stretch of either line contains points of both kinds.

Multiplying by x. Let g(x):=xD(x) on R: g(x)=x on Q and 0 off Q. Then |g(x)|≤|x| for every x, so near 0 the values of g are small. Away from 0 they are not. Let a≠0 and δ>0. If a∈Q, an irrational x with |x−a|<δ (Lemma 8.6.1) gives |g(x)−g(a)|=|a|. If a∉Q, a rational x with |x−a|<min{δ,|a|/2} gives |g(x)−g(a)|=|x|≥|a|−|x−a|>|a|/2, by the triangle inequality (Number Systems: From N to R, Proposition 4.1.3 (e)). So every interval around a≠0, however short, holds points where g differs from g(a) by at least |a|/2.

8.6.3. Thomae’s function

The Dirichlet function gives every rational the same value. Thomae’s function gives a rational a value that shrinks with its denominator. For example, it gives 1/2 the value 1/2, both 1/3 and 2/3 the value 1/3, and 3/4 the value 1/4. At an irrational point it is 0.

Definition 8.6.2 (Thomae’s Function)

For x∈Q, let x=p/q with p∈Z, q∈Z>0 and gcd(p,q)=1; the pair (p,q) is unique (Proposition 2.2.6 (a)). Thomae’s function T:R→R is T(x):={1/qif x=p/q∈Q in lowest terms,0if x∉Q.

Since 0=0/1 and gcd(0,1)=1, T(0)=1; likewise T(n)=1 for every n∈Z. On Q, 0<T≤1, since q≥1.

Warning. The denominator is read after cancelling: T(2/4)=T(1/2)=1/2, not 1/4. Without lowest terms, “1/q at p/q” is not a function at all, since 1/2=2/4 would get the two values 1/2 and 1/4.

Quick check. Compute T(3/4), T(−6/8), T(0.6) and T(2/2).

Solution.

  • T(3/4)=1/4.
  • T(−6/8)=1/4, since −6/8=−3/4 and gcd(−3,4)=1.
  • T(0.6)=1/5, since 0.6=3/5.
  • T(2/2)=0, since 2/2 is irrational. Indeed, if 2/2=r∈Q, then 2=2r∈Q. But 2 is irrational, as shown in Section 8.3.

Large values of T are rare. On [0,1], the points with T(x)≥1/3 have denominator 1, 2 or 3. They are 0, 1, 1/2, 1/3 and 2/3: only five.

Proposition 8.6.3 (Thomae’s Function Has Few Large Values)
  • (a) 1 is a period of T.
  • (b) For all real a≤b and every ε>0, the set E:={x∈[a,b]:T(x)≥ε} is finite.
  • (c) For all a<b, the interval (a,b) contains points with T>0 and points with T=0.

Idea. A large value needs a small denominator: T(x)≥ε forces q≤1/ε. There are finitely many such q, and for each q only finitely many multiples of 1/q lie in [a,b]. The same point appears under several q (1/2=2/4), so we take a union of finite sets rather than add up counts.

Proof.

  • (a) For x∉Q, also x+1∉Q, and both values are 0. Let x=p/q in lowest terms. Then x+1=(p+q)/q. A positive common divisor of p+q and q divides (p+q)−q=p. It divides q as well, so it is a common divisor of p and q and is at most their greatest common divisor gcd(p,q)=1; hence it equals 1. So gcd(p+q,q)=1 and T(x+1)=1/q=T(x).

  • (b) Let ε>0 and Q:=⌊1/ε⌋ (Definition 8.4.1). For q∈Z>0 let Sq:={p/q:p∈Z, ⌊aq⌋≤p≤⌊bq⌋}. E⊆S1∪⋯∪SQ. Let x∈E. Then T(x)≥ε>0, so x∈Q; write x=p/q in lowest terms. From 1/q≥ε we get q≤1/ε, so q≤Q by Proposition 8.4.1 (g). From a≤p/q≤b and q>0 we get aq≤p≤bq. Hence ⌊aq⌋≤aq≤p, and p≤⌊bq⌋ by Proposition 8.4.1 (g). So x∈Sq with 1≤q≤Q. (If Q=0, no q qualifies and E=∅.)

    Each Sq is finite. If ⌊aq⌋>⌊bq⌋, then Sq=∅. Otherwise let m:=⌊aq⌋ and k:=⌊bq⌋−m+1. The map {1,…,k}→Sq, j↦(m+j−1)/q, is onto by the definition of Sq, and injective because q≠0. So Sq has k elements (Sets and Functions, Definition 4.1.2).

    A finite union of finite sets is finite. Let A and B be finite sets. Then A∪B is the union of the disjoint sets A and B∖A. The second is finite, as a subset of B. So A∪B is finite by Sets and Functions, Proposition 4.1.5. Induction on the number of sets gives S1∪⋯∪SQ finite.

    Hence E, a subset of a finite set, is finite by Sets and Functions, Proposition 4.1.6.

  • (c) The interval (a,b) contains a rational, where T>0 (Number Systems: From N to R, Theorem 4.2.5). It also contains an irrational, where T=0 (Lemma 8.6.1).

Uses: Proposition 8.4.1 (a) (the floor is at most the number); Sets and Functions, Proposition 4.1.6 (subsets of finite sets); Sets and Functions, Proposition 4.1.5 (a disjoint union of finite sets is finite); Logic and Proof, Axiom 4.2.1 (induction).

Diagram. Labels: x, 1

Thomae’s function on [0,1], drawn for the denominators q≤6: the dot over p/q has height 1/q, and the irrational points lie on the dotted axis. Only finitely many dots rise above the dashed level ε.

8.6.4. More strange functions

An involution. A function f with f∘f=id is an involution. Exercise C2 of Section 8.2 (Exercise (C2, used later)) showed that an increasing involution of R is the identity. Here is how far that fails without “increasing”.

Example (An Involution That Is Monotone Nowhere)

Let J:R→R, J(x):=x for x∈Q and J(x):=−x for x∉Q. Show that J∘J=idR, that J is a bijection, and that J is monotone on no interval (a,b) with a<b.

Solution. For x∈Q, J(J(x))=J(x)=x. For x∉Q, also −x∉Q, so J(J(x))=J(−x)=−(−x)=x. So J is its own two-sided inverse, and it is a bijection by Sets and Functions, Theorem 2.4.4.

Let a<b. By Number Systems: From N to R, Theorem 4.2.5, used twice, there are rationals q1<q2 in (a,b), and J(q1)=q1<q2=J(q2), so J is not decreasing there. By Lemma 8.6.1, used twice, there are irrationals t1<t2 in (a,b), and J(t1)=−t1>−t2=J(t2), so J is not increasing there.

The map x↦−x was already a non-identity involution; J is one that agrees with the identity on a dense set.

A jump. The function H of Example (A strictly increasing function with a jump), H(x)=x for x<0 and H(x)=x+1 for x≥0, is strictly increasing on R, yet its image (−∞,0)∪[1,∞) skips the whole interval [0,1).

A staircase. The floor function makes a step function out of a straight line.

Example (A Staircase Along the Diagonal)

Let s:[0,1]→R, s(0):=0 and s(x):=1/⌊1/x⌋ for 0<x≤1. Describe s on (1/(n+1),1/n] for n∈Z>0.

Solution. For 0<x≤1 we have 1/x≥1, so ⌊1/x⌋≥1 by Proposition 8.4.1 (g), and s(x) is defined. For n∈Z>0, ⌊1/x⌋=n⟺n≤1/x<n+1⟺1n+1<x≤1n. The first equivalence is the definition of the floor. The second takes reciprocals of positive numbers, which reverses inequalities (Number Systems: From N to R, Proposition 3.2.2). So s=1/n on (1/(n+1),1/n]: a step at height 1/n whose right end lies on the line y=x.

Uses: Definition 8.4.1 (the floor).

Diagram. Labels: x, y = x, 1

The staircase s and the line y=x (dashed), drawn for n≤7: each step starts just above the line and ends on it.

Proposition 8.6.4 (The Staircase Hugs the Diagonal)
  • (a) s is increasing on [0,1].
  • (b) s takes infinitely many values.
  • (c) For 0<x≤1, 0≤s(x)−x<2x2. (At x=0 the left side is 0 and so is the right, so the strict inequality fails there.)

Proof.

So near 0, s(x) agrees with x up to an error below 2x2, although s is constant on each step.

Quick check. Is s a step function on [0,1] (Definition 8.4.4)?

Solution. No. A step function with a partition into n open pieces takes at most 2n+1 values: one on each piece and one at each of the n+1 partition points. By Proposition 8.6.4 (b), s takes infinitely many values.

A zigzag. Replace the floor by the distance to the nearest integer, and the steps become tents.

Example (A Zigzag That Never Settles)

Let Z:R→R, Z(0):=0 and Z(x):=dist(1/x,Z) for x≠0 (Definition 8.4.2). Describe Z on [1/(n+1),1/n] for n∈Z>0.

Solution. For x in that interval, 1/x∈[n,n+1], and Z(x)=min{1/x−n, n+1−1/x}: for 1/x<n+1 this is Proposition 8.4.2 (a) with ⌊1/x⌋=n, and at x=1/(n+1) both sides are 0. So Z=0 at both ends, Z=1/2 at x=2/(2n+1), where 1/x=n+1/2, and in between Z climbs from 0 to 1/2 and falls back. Each interval [1/(n+1),1/n] carries one full tent, and the tents crowd toward 0.

Diagram. Labels: x, tfrac 12, 1, tfrac 16

The zigzag Z on [1/6,1]: five tents, each rising from 0 to 1/2 and back, narrower as they approach 0.

Proposition 8.6.5 (The Zigzag Takes Every Value Near 0)
  • (a) For every δ>0 and every t∈[0,1/2] there is x∈(0,δ) with Z(x)=t.
  • (b) For every x∈R, |xZ(x)|≤|x|/2.

Proof.

So on every interval (0,δ) the zigzag sweeps through all of [0,1/2], while xZ(x) is pressed between −|x|/2 and |x|/2.

Two functions on a closed interval. The last two are defined at every point of [0,1] and still misbehave.

Example (Unbounded on a Closed Interval)

Let R:[0,1]→R, R(0):=0 and R(x):=1/x for 0<x≤1. Show that R is not bounded above on [0,1] (Definition 8.3.1).

Solution. Let C∈R, and put C′:=max{C,0}+1≥1 and x:=1/C′∈(0,1]. Then R(x)=C′>C. So no C is an upper bound of R([0,1]).

Example (A Supremum Never Reached)

Let M:[0,1]→R, M(x):=x for 0≤x<1 and M(1):=0. Show that sup[0,1]M=1 and that it is not attained.

Solution. Every value is at most 1: it is x<1 or it is 0. For ε>0, put x:=max{0,1−ε/2}∈[0,1); then M(x)=x≥1−ε/2>1−ε. By Proposition 8.3.2, sup[0,1]M=1. Every value is in fact strictly below 1, so the supremum is not attained.

Both R and M are defined everywhere on the closed bounded interval [0,1]. The table below asks which further hypothesis would rule out both behaviors.

8.6.5. The table

Example (A Table of Strange Functions)

Each row names a function, recalls its definition, lists what has been proved about it, and asks what the later volumes will answer.

function definition proved here question for later
D (Definition 8.6.1) 1 on Q, 0 off Q periods exactly the non-zero rationals; on every interval sup 1, inf 0, monotone nowhere continuous at any point? integrable on [0,1]?
xD(x) x on Q, 0 off Q at most |x| in size; near each a≠0, points where it differs from its value at a by at least |a|/2 continuous exactly where?
T (Definition 8.6.2) 1/q at p/q in lowest terms, 0 off Q period 1; finitely many points of [a,b] where T≥ε; positive and zero points in every interval continuous exactly where? integrable on [0,1]?
J (Example (An Involution That Is Monotone Nowhere)) x on Q, −x off Q J∘J=id; a bijection; monotone on no interval continuous at any point?
H (Example (A strictly increasing function with a jump)) x for x<0, x+1 for x≥0 strictly increasing; image skips [0,1) which property forces the image of an interval to be an interval?
s (Example (A Staircase Along the Diagonal)) 1/⌊1/x⌋ on (0,1], 0 at 0 increasing; infinitely many values; 0≤s(x)−x<2x2 for 0<x≤1 continuous at 0? differentiable at 0? integrable?
Z, xZ(x) (Example (A Zigzag That Never Settles)) dist(1/x,Z) for x≠0, 0 at 0 Z takes every value of [0,1/2] on every (0,δ); |xZ(x)|≤|x|/2 Z continuous at 0? xZ(x) continuous at 0? differentiable there?
R (Example (Unbounded on a Closed Interval)) 1/x on (0,1], 0 at 0 not bounded above on [0,1] which hypothesis on a function on [a,b] forces it to be bounded?
M (Example (A Supremum Never Reached)) x on [0,1), 0 at 1 sup 1, not attained which hypothesis forces the sup to be attained?

Remark (Looking ahead). The analysis volumes answer these questions. Analysis on the Real Line settles the continuity and extreme-value questions once it has continuous functions. Integration, Series, and Function Spaces settles the integrability questions once it has the integral, and once it has the sine, it replaces dist(1/x,Z) in the zigzag by the sine. No proof in the main text of this section uses a limit, continuity or a derivative.

8.6.6. Exercises

A. Check your understanding

Exercise (A1)

Find the supremum and infimum of D on (0,1) and of T on [0,1]. Which of them are attained, and where?

Solution. For D on (0,1): supremum 1, infimum 0, both attained (Proposition 8.6.2 (b)), for example at 1/2 and at the irrational 2/2 (irrational by the Quick check after Definition 8.6.2, and (2/2)2=1/2<1 gives 2/2<1, and it is positive).

For T on [0,1]: every value is at most 1, since q≥1, and T(0)=T(0/1)=1, T(1)=T(1/1)=1; so the supremum is 1, attained at 0 and 1. Every value is at least 0, and T(2/2)=0; so the infimum is 0, attained at every irrational point of [0,1].

Exercise (A2)

Let g(x):=xD(x).

  • (a) Is g bounded on [−5,5]?
  • (b) Is g monotone on (0,1)?

Solution.

  • (a) Yes: |g(x)|≤|x|≤5 for x∈[−5,5].

  • (b) No. The points 1/2<2/2<3/4 lie in (0,1): squaring, 1/4<1/2<9/16, and squaring is strictly increasing on [0,∞) (Lemma 1.5.1 (a)). The values are g(1/2)=1/2, g(2/2)=0, g(3/4)=3/4. The first pair shows g is not increasing on (0,1), the second that it is not decreasing.

B. Practice

Exercise (B1)

Find all x∈[0,1] with T(x)≥1/4.

Solution. T(x)≥1/4 forces x rational, x=p/q in lowest terms with q≤4 and 0≤p≤q. Listing q=1,2,3,4 and keeping the pairs with gcd(p,q)=1: 0, 1, 12, 13, 23, 14, 34. Seven points; 2/4 is not new, since it is 1/2, with value 1/2.

Exercise (B2: Prove or disprove)
  • (a) D(x)+D(x+2)≤1 for every x∈R.
  • (b) The restriction of J to Q is increasing.
  • (c) Every bijection R→R is monotone on some interval (a,b) with a<b.
  • (d) T(x+1)=T(x) for every x∈R.

Solution.

  • (a) True. If x and x+2 were both rational, so would be their difference 2, which is irrational, as shown in Section 8.3. So at most one of the two values is 1.

  • (b) True. On Q, J is the identity, and q1<q2 gives J(q1)=q1<q2=J(q2).

  • (c) False. J is a bijection that is monotone on no such interval (Example (An Involution That Is Monotone Nowhere)).

  • (d) True. This is Proposition 8.6.3 (a).

Exercise (B3)

Compute s(0.4), and check the inequality of Proposition 8.6.4 (c) at x=0.4.

Solution. 1/0.4=2.5 and ⌊2.5⌋=2, so s(0.4)=1/2. Then s(0.4)−0.4=0.1, and 2⋅0.42=0.32. Indeed 0≤0.1<0.32.

C. Going deeper

Exercise (C1: Additive and increasing)

Let f:R→R satisfy f(x+y)=f(x)+f(y) for all x,y, and let f be increasing. Prove that f(x)=cx for every x∈R, where c:=f(1).

Solution (Hint 1). Exercise C1 of Section 8.1 gives f on Q. Trap x between rationals.

Solution (Hint 2). Suppose c>0 and f(x)>cx for some x. Where can a rational q sit so that monotonicity and f(q)=cq collide?

Solution. By Exercise (C1: Additive functions, used later) (a) and (c), f(0)=0 and f(q)=cq for every q∈Q. Since f is increasing and 0<1, c=f(1)≥f(0)=0. Fix x∈R.

Case c>0. Suppose f(x)>cx. Then x<f(x)/c, and Number Systems: From N to R, Theorem 4.2.5 gives q∈Q with x<q<f(x)/c. Then f(q)=cq<f(x), although x<q and f is increasing, so f(x)≤f(q): a contradiction. Suppose f(x)<cx. Then f(x)/c<x, and a rational q with f(x)/c<q<x gives f(q)=cq>f(x), against f(q)≤f(x). So f(x)=cx.

Case c=0. Take rationals p<x<q (Number Systems: From N to R, Theorem 4.2.5, in (x−1,x) and (x,x+1)). Then 0=f(p)≤f(x)≤f(q)=0, so f(x)=0=cx.

Without “increasing”, additivity alone does not force f(x)=cx in general. But an additive function that is not of this form cannot be written down without the axiom of choice. This series builds no such function, and it does not prove that none can be written down without choice.

What a complete answer needs. (10 points) - 2: obtains f(q)=cq on Q and c≥0, each with its reason. - 4: for c>0, refutes f(x)>cx with a rational between x and f(x)/c, using monotonicity in the right direction. - 2: the symmetric case f(x)<cx. - 2: the case c=0. Another correct route earns the same points: a two-sided squeeze with rationals p<x<q closer than 1/n, then Archimedes (2 for f(q)=cq on Q and c≥0, 4 for cp≤f(x)≤cq, 4 for closing the gap). Slips that lose the step: dividing by c without c>0; assuming f continuous or taking a limit of rationals.

Exercise (C2)

Let a<b and let f:[a,b]→R be increasing. Prove that f is bounded and attains its supremum and its infimum on [a,b]. Why does Example (A Supremum Never Reached) not contradict this?

Solution. For x∈[a,b], a≤x≤b, so f(a)≤f(x)≤f(b) because f is increasing. So f is bounded, f(b) is an upper bound of f([a,b]) that is itself a value, hence sup[a,b]f=f(b) is attained; likewise inf[a,b]f=f(a).

The function M is not increasing on [0,1]: 1/2<1 but M(1/2)=1/2>0=M(1). Its supremum fails to be attained exactly because the value at the right end drops.

R. Review

Exercise (R1)

Let p∈R[x], and suppose its polynomial function satisfies p(x+1)=p(x) for every x∈R. Prove that p is a constant polynomial.

Solution. Let c:=p(0) and r:=p−c∈R[x]. Evaluation respects differences (Proposition 6.4.4 (b)), so r(x)=p(x)−c. By induction on n∈N, r(n)=0: r(0)=p(0)−c=0, and r(n+1)=p(n+1)−c=p(n)−c=r(n).

Suppose r≠0, of degree d. Then 0,1,…,d are d+1 distinct roots of r, against Theorem 7.4.1, which allows at most d. So r=0, and p=c is constant.

Exercise (R2)

Prove that the strictly increasing bijections R→R form a subgroup of the group of all bijections R→R under composition. Do the strictly decreasing bijections form one?

Solution. The bijections of R form a group under ∘ (Example (Groups) (c)). Let G be the set of strictly increasing bijections. We use Theorem 5.2.1.

G≠∅, since idR∈G. Let f,g∈G. Since g is strictly increasing and onto, Theorem 8.2.3 (b) gives that g−1:g(R)=R→R is strictly increasing. It is a bijection by Sets and Functions, Theorem 2.4.4. Then f∘g−1 is strictly increasing by Proposition 8.2.1 (e). It is bijective by Sets and Functions, Theorem 2.2.1 (c). So f∘g−1∈G, and G is a subgroup.

The strictly decreasing bijections do not form a subgroup. A subgroup contains the identity, and idR is not strictly decreasing (0<1, id(0)<id(1)). They are not even closed under composition: x↦−x composed with itself is idR.

Exercise (R3)

Let x∈R, and let a0:=0 and an:=⌊nx⌋/n for n≥1. Prove that an→x.

Solution. For n≥1, Proposition 8.4.1 (a) gives nx−1<⌊nx⌋≤nx; dividing by n>0, 0≤x−an<1/n. Let ε>0. By Number Systems: From N to R, Proposition 4.2.3 there is N∈Z>0, depending on ε, with 1/n<ε for every n≥N. For such n, n≥1 and |an−x|<1/n<ε. So an→x by Number Systems: From N to R, Definition 4.3.2.

Exercise (R4)

Is there a polynomial p∈R[x] whose polynomial function is x↦|x| on R?

Solution. No. Suppose there were. Then p≠0, since p(1)=1. Let d:=max{deg⁡p,1}. The polynomials p and x both have degree at most d and agree at the d+1 distinct points 0,1,…,d, where |x|=x. By Theorem 7.4.2 (a), p=x. Then p(−1)=−1≠1=|−1|, a contradiction.

The tool is that a polynomial is fixed by finitely many values. Two look-alikes fail. Comparing growth gives nothing: |x| grows like a polynomial of degree 1. “Since |x| is even, p has only even powers” needs the same identity principle to compare p(x) with p(−x), and then still needs an argument.