Salta al contenuto
Note per Studenti Injective, Surjective, Inverse, Monotone and Symmetric Functions Report

Injective, Surjective, Inverse, Monotone and Symmetric Functions

In questa pagina 6

Prerequisite: Functions - Domain, Graph, Image and CompositionDefinition of a function, natural domain, graph, image and preimage, the graphical method for inequalities, composition with its domain, operations between functions and transformations of graphs.Functions - Domain, Graph, Image and Composition →.

Injectivity

Definition (injective). f:X→Yf : X \to Y is injective if one of the following equivalent properties holds:

  1. ∀x1,x2∈X\forall x_1, x_2 \in X: x1≠x2⇒f(x1)≠f(x2)x_1 \ne x_2 \Rightarrow f(x_1) \ne f(x_2);
  2. ∀x1,x2∈X\forall x_1, x_2 \in X: f(x1)=f(x2)⇒x1=x2f(x_1) = f(x_2) \Rightarrow x_1 = x_2;
  3. for every y∈Yy \in Y the preimage f←({y})f^{\leftarrow}(\{y\}) is empty or has one element.

2 is the contrapositive of 1 (see Logic and Proof TechniquesPropositions, connectives, predicates and quantifiers with the rules for negating them, and the three basic proof techniques (direct, contrapositive, contradiction).Logic and Proof Techniques →); in computations one uses 2, which starts from an equality.

  • f(x)=3x+4f(x) = 3x + 4 is injective: 3x1+4=3x2+4⇒3x1=3x2⇒x1=x23x_1 + 4 = 3x_2 + 4 \Rightarrow 3x_1 = 3x_2 \Rightarrow x_1 = x_2.
  • f(x)=1−x2f(x) = 1 - x^2 on R\mathbb{R} is not: f←({0})={−1,1}f^{\leftarrow}(\{0\}) = \{-1, 1\} (one counterexample: f(−1)=f(1)=0f(-1) = f(1) = 0).

Horizontal line test. f:X⊆R→Rf : X \subseteq \mathbb{R} \to \mathbb{R} is injective iff every horizontal line meets Γf\Gamma_f at most once. y=x2y = x^2 is not injective on R\mathbb{R} (y=4y = 4 gives x=±2x = \pm 2), y=x3y = x^3 is. Horizontal lines missing the graph are allowed (that concerns surjectivity). Do not confuse with the vertical line test (is the curve a graph?).

Inverse

If ff is injective, each y∈f(X)y \in f(X) comes from a unique xx, so we can define

Definition (inverse). f−1:f(X)→Xf^{-1} : f(X) \to X, f−1(y)=f^{-1}(y) = the unique xx with f(x)=yf(x) = y.

Injectivity is needed: if x1≠x2x_1 \ne x_2 had the same image yy one would not know whether f−1(y)f^{-1}(y) is x1x_1 or x2x_2. Example: f(x)=3x−6f(x) = 3x - 6, f−1(y)=y+63f^{-1}(y) = \frac{y+6}{3}.

Characterization. gg is the inverse of ff iff both hold: (1) g(f(x))=xg(f(x)) = x for all x∈Xx \in X; (2) f(g(y))=yf(g(y)) = y for all y∈f(X)y \in f(X). Both must be checked: there are pairs where only one holds. Mind the domains: x2=∣x∣\sqrt{x^2} = |x|, not xx.

How to find it. Example f(x)=13x+1f(x) = \frac13 x + 1: (1) the graph is a non-horizontal line, so ff is injective with f(R)=Rf(\mathbb{R}) = \mathbb{R}; (2) solve for xx: 13x=y−1\frac13 x = y - 1, x=3(y−1)x = 3(y-1); (3) swap names to draw both graphs in one plane: f−1(x)=3(x−1)f^{-1}(x) = 3(x-1). Check: f−1(f(x))=3(13x+1−1)=xf^{-1}(f(x)) = 3(\frac13 x + 1 - 1) = x and f(f−1(x))=13⋅3(x−1)+1=xf(f^{-1}(x)) = \frac13 \cdot 3(x-1) + 1 = x.

Property. Γf−1\Gamma_{f^{-1}} is the reflection of Γf\Gamma_f across the line y=xy = x.

Because (a,b)∈Γf  ⟺  f(a)=b  ⟺  f−1(b)=a  ⟺  (b,a)∈Γf−1(a,b) \in \Gamma_f \iff f(a) = b \iff f^{-1}(b) = a \iff (b,a) \in \Gamma_{f^{-1}}, and swapping coordinates is the reflection across y=xy = x. (E.g. f(x)=2xf(x) = 2x passes through (1,2)(1,2), its inverse x2\frac x2 through (2,1)(2,1).)

Surjectivity and bijectivity

f:X→Yf : X \to Y is surjective if f(X)=Yf(X) = Y (every horizontal line y=y0y = y_0, y0∈Yy_0 \in Y, meets the graph at least once); bijective if injective and surjective (each y∈Yy \in Y is reached by exactly one xx; then f−1:Y→Xf^{-1} : Y \to X).

A function is given together with domain and codomain. For f(x)=x2+1f(x) = x^2 + 1:

Function Injective Surjective
R→R\mathbb{R} \to \mathbb{R} no (f(−1)=f(1)f(-1) = f(1)) no (values <1< 1 missed)
[0,+∞)→R[0,+\infty) \to \mathbb{R} yes no
[0,+∞)→[1,+∞)[0,+\infty) \to [1,+\infty) yes yes: bijective

Restricting the domain can make a function injective; restricting the codomain to the image makes it surjective.

Monotone functions

Definition. f:X⊆R→Rf : X \subseteq \mathbb{R} \to \mathbb{R} is, for all x1<x2x_1 < x_2 in XX:

increasing f(x1)≤f(x2)f(x_1) \le f(x_2)
strictly increasing f(x1)<f(x2)f(x_1) < f(x_2)
decreasing f(x1)≥f(x2)f(x_1) \ge f(x_2)
strictly decreasing f(x1)>f(x2)f(x_1) > f(x_2)

Increasing or decreasing = monotone; strictly increasing or strictly decreasing = strictly monotone.

Strictly increasing: the graph always rises. Increasing but not strictly: never falls but may have horizontal pieces. Examples: x3x^3 strictly increasing; −2x+1-2x + 1 strictly decreasing.

Affine functions f(x)=mx+qf(x) = mx + q: if m>0m > 0, from x1<x2x_1 < x_2 we get mx1<mx2mx_1 < mx_2 (positive factor, order preserved) and then mx1+q<mx2+qmx_1 + q < mx_2 + q: strictly increasing. If m<0m < 0 the inequality is reversed: strictly decreasing. If m=0m = 0, ff is constant: both increasing and decreasing, not strictly.

Integer part [x][x] = largest integer ≤x\le x ([2.7]=2[2.7] = 2, [−0.5]=−1[-0.5] = -1). It is a staircase: increasing but not strictly.

Theorem. If f:X⊆R→Rf : X \subseteq \mathbb{R} \to \mathbb{R} is strictly monotone, then (1) ff is injective, so f−1:f(X)→Xf^{-1} : f(X) \to X exists; (2) f−1f^{-1} has the same kind of monotonicity.

Example: x3x^3 is strictly increasing, with inverse y3\sqrt[3]{y}, also strictly increasing.

Proof (for ff strictly increasing). (1) Let x1≠x2x_1 \ne x_2. If x1<x2x_1 < x_2 then f(x1)<f(x2)f(x_1) < f(x_2); if x1>x2x_1 > x_2 then f(x1)>f(x2)f(x_1) > f(x_2); in both cases f(x1)≠f(x2)f(x_1) \ne f(x_2). (2) By contradiction, suppose there are y1<y2y_1 < y_2 in f(X)f(X) with f−1(y1)≥f−1(y2)f^{-1}(y_1) \ge f^{-1}(y_2). Write yi=f(xi)y_i = f(x_i), xi=f−1(yi)x_i = f^{-1}(y_i). Then f(x1)<f(x2)f(x_1) < f(x_2) but x1≥x2x_1 \ge x_2; if x1=x2x_1 = x_2 then f(x1)=f(x2)f(x_1) = f(x_2), and if x1>x2x_1 > x_2 then f(x1)>f(x2)f(x_1) > f(x_2): either way f(x1)<f(x2)f(x_1) < f(x_2) fails. Contradiction. ■\blacksquare

The converse is false: injective does not imply strictly monotone. Counterexample f(x)={1xx>0xx≤0f(x) = \begin{cases} \frac1x & x > 0 \\ x & x \le 0 \end{cases} It is injective (the two pieces have disjoint ranges, (−∞,0](-\infty,0] and (0,+∞)(0,+\infty), and each is injective) and surjective onto R\mathbb{R}, but not monotone: f(−1)=−1<1=f(1)f(-1) = -1 < 1 = f(1) yet f(1)=1>12=f(2)f(1) = 1 > \frac12 = f(2).

Even and odd functions

Let the domain XX be symmetric about 00 (x∈X⇒−x∈Xx \in X \Rightarrow -x \in X, e.g. R\mathbb{R}, [−a,a][-a,a], R∖{0}\mathbb{R} \setminus \{0\}).

ff is even if f(−x)=f(x)f(-x) = f(x) for all x∈Xx \in X; odd if f(−x)=−f(x)f(-x) = -f(x) for all x∈Xx \in X.

Even: graph symmetric about the yy-axis. Odd: graph symmetric about the origin. If the domain is not symmetric (e.g. x\sqrt x on [0,+∞)[0,+\infty)) ff is neither. It suffices to study an even or odd function for x≥0x \ge 0.

Powers. (−x)n=xn(-x)^n = x^n for nn even and −xn-x^n for nn odd: xnx^n is even for nn even, odd for nn odd (hence the names). Example: f(x)=e3x2+5∣x∣f(x) = e^{3x^2 + 5|x|}: f(−x)=e3(−x)2+5∣−x∣=e3x2+5∣x∣=f(x)f(-x) = e^{3(-x)^2 + 5|-x|} = e^{3x^2 + 5|x|} = f(x), even.

Method: (1) check the domain is symmetric; (2) compute f(−x)f(-x) and compare with f(x)f(x) and −f(x)-f(x). If neither (for some xx), ff is neither even nor odd (e.g. x2+xx^2 + x: f(−1)=0f(-1) = 0, f(1)=2f(1) = 2).

Common mistakes

  • Checking only one of g(f(x))=xg(f(x)) = x, f(g(y))=yf(g(y)) = y.
  • Confusing f−1(x)f^{-1}(x) with 1f(x)\frac{1}{f(x)}: for f(x)=2xf(x) = 2x, f−1(x)=x2f^{-1}(x) = \frac x2 but 1f(x)=12x\frac1{f(x)} = \frac1{2x}.
  • Saying "not injective" because some horizontal lines miss the graph.
  • Confusing "increasing" with "strictly increasing" (a constant is increasing); deducing monotonicity from two points; believing injective implies monotone.
  • Calling a function even or odd with a non-symmetric domain; believing every function is even or odd.

Versione ripasso

Injective: f(x1)=f(x2)⇒x1=x2f(x_1) = f(x_2) \Rightarrow x_1 = x_2 (equivalently x1≠x2⇒f(x1)≠f(x2)x_1 \ne x_2 \Rightarrow f(x_1) \ne f(x_2); or each preimage f←({y})f^{\leftarrow}(\{y\}) has at most one element). Horizontal line test: every horizontal line meets the graph at most once. 3x+43x+4 injective; 1−x21-x^2 on R\mathbb{R} not (f(±1)=0f(\pm1) = 0).

Surjective: f(X)=Yf(X) = Y. Bijective: both; each yy has exactly one xx. Domain and codomain matter: x2+1x^2+1 is bijective [0,+∞)→[1,+∞)[0,+\infty) \to [1,+\infty) but neither injective nor surjective R→R\mathbb{R} \to \mathbb{R}.

Inverse of injective ff: f−1:f(X)→Xf^{-1} : f(X) \to X, f−1(y)=x  ⟺  f(x)=yf^{-1}(y) = x \iff f(x) = y. g=f−1g = f^{-1} iff g(f(x))=xg(f(x)) = x on XX and f(g(y))=yf(g(y)) = y on f(X)f(X). Method: solve y=f(x)y = f(x) for xx, swap letters. f=13x+1⇒f−1=3(x−1)f = \frac13 x + 1 \Rightarrow f^{-1} = 3(x-1). Γf−1\Gamma_{f^{-1}} is the reflection of Γf\Gamma_f across y=xy = x.

Monotone (for x1<x2x_1 < x_2): increasing f(x1)≤f(x2)f(x_1) \le f(x_2); strictly <<; decreasing ≥\ge; strictly >>. mx+qmx + q: strictly increasing if m>0m > 0, strictly decreasing if m<0m < 0, constant if m=0m = 0. Integer part [x][x]: increasing, not strictly.

Strictly monotone ⇒\Rightarrow injective, and f−1f^{-1} has the same monotonicity. (Proof: x1≠x2x_1 \ne x_2 gives f(x1)≠f(x2)f(x_1) \ne f(x_2) by the two cases; for f−1f^{-1} assume y1<y2y_1 < y_2 with x1≥x2x_1 \ge x_2 and contradict strict increase.) The converse is false: f(x)=1xf(x) = \frac1x for x>0x > 0, f(x)=xf(x) = x for x≤0x \le 0 is injective but not monotone.

Even/odd (symmetric domain required): even f(−x)=f(x)f(-x) = f(x) (symmetric about yy-axis), odd f(−x)=−f(x)f(-x) = -f(x) (about the origin). xnx^n even iff nn even. e3x2+5∣x∣e^{3x^2 + 5|x|} is even. Method: check domain, compute f(−x)f(-x), compare with f(x)f(x) and −f(x)-f(x).

Mistakes: checking only one inverse condition; f−1≠1/ff^{-1} \ne 1/f; "increasing" vs "strictly"; injective does not imply monotone; non-symmetric domain.

Teoria collegata