f(x)=3x+4 is injective: 3x1+4=3x2+4⇒3x1=3x2⇒x1=x2.
f(x)=1−x2 on R is not: f←({0})={−1,1} (one counterexample: f(−1)=f(1)=0).
Horizontal line test.f:X⊆R→R is injective iff every horizontal line meets Γf at most once. y=x2 is not injective on R (y=4 gives x=±2), y=x3 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 f is injective, each y∈f(X) comes from a unique x, so we can define
Definition (inverse).f−1:f(X)→X, f−1(y)= the unique x with f(x)=y.
Injectivity is needed: if x1=x2 had the same image y one would not know whether f−1(y) is x1 or x2. Example: f(x)=3x−6, f−1(y)=3y+6.
Characterization.g is the inverse of f iff both hold: (1) g(f(x))=x for all x∈X; (2) f(g(y))=y for all y∈f(X). Both must be checked: there are pairs where only one holds. Mind the domains: x2=∣x∣, not x.
How to find it. Example f(x)=31x+1: (1) the graph is a non-horizontal line, so f is injective with f(R)=R; (2) solve for x: 31x=y−1, x=3(y−1); (3) swap names to draw both graphs in one plane: f−1(x)=3(x−1). Check: f−1(f(x))=3(31x+1−1)=x and f(f−1(x))=31⋅3(x−1)+1=x.
Property.Γf−1 is the reflection of Γf across the line y=x.
Because (a,b)∈Γf⟺f(a)=b⟺f−1(b)=a⟺(b,a)∈Γf−1, and swapping coordinates is the reflection across y=x. (E.g. f(x)=2x passes through (1,2), its inverse 2x through (2,1).)
Surjectivity and bijectivity
f:X→Y is surjective if f(X)=Y (every horizontal line y=y0, y0∈Y, meets the graph at least once); bijective if injective and surjective (each y∈Y is reached by exactly one x; then f−1:Y→X).
A function is given together with domain and codomain. For f(x)=x2+1:
Function
Injective
Surjective
R→R
no (f(−1)=f(1))
no (values <1 missed)
[0,+∞)→R
yes
no
[0,+∞)→[1,+∞)
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→R is, for all x1<x2 in X:
increasing
f(x1)≤f(x2)
strictly increasing
f(x1)<f(x2)
decreasing
f(x1)≥f(x2)
strictly decreasing
f(x1)>f(x2)
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: x3 strictly increasing; −2x+1 strictly decreasing.
Affine functionsf(x)=mx+q: if m>0, from x1<x2 we get mx1<mx2 (positive factor, order preserved) and then mx1+q<mx2+q: strictly increasing. If m<0 the inequality is reversed: strictly decreasing. If m=0, f is constant: both increasing and decreasing, not strictly.
Integer part[x] = largest integer ≤x ([2.7]=2, [−0.5]=−1). It is a staircase: increasing but not strictly.
Theorem. If f:X⊆R→R is strictly monotone, then (1) f is injective, so f−1:f(X)→X exists; (2) f−1 has the same kind of monotonicity.
Example: x3 is strictly increasing, with inverse 3y, also strictly increasing.
Proof (for f strictly increasing). (1) Let x1=x2. If x1<x2 then f(x1)<f(x2); if x1>x2 then f(x1)>f(x2); in both cases f(x1)=f(x2). (2) By contradiction, suppose there are y1<y2 in f(X) with f−1(y1)≥f−1(y2). Write yi=f(xi), xi=f−1(yi). Then f(x1)<f(x2) but x1≥x2; if x1=x2 then f(x1)=f(x2), and if x1>x2 then f(x1)>f(x2): either way f(x1)<f(x2) fails. Contradiction. ■
The converse is false: injective does not imply strictly monotone. Counterexample
f(x)={x1xx>0x≤0
It is injective (the two pieces have disjoint ranges, (−∞,0] and (0,+∞), and each is injective) and surjective onto R, but not monotone: f(−1)=−1<1=f(1) yet f(1)=1>21=f(2).
Even and odd functions
Let the domain X be symmetric about 0 (x∈X⇒−x∈X, e.g. R, [−a,a], R∖{0}).
f is even if f(−x)=f(x) for all x∈X; odd if f(−x)=−f(x) for all x∈X.
Even: graph symmetric about the y-axis. Odd: graph symmetric about the origin. If the domain is not symmetric (e.g. x on [0,+∞)) f is neither. It suffices to study an even or odd function for x≥0.
Powers.(−x)n=xn for n even and −xn for n odd: xn is even for n even, odd for n odd (hence the names). Example:f(x)=e3x2+5∣x∣: f(−x)=e3(−x)2+5∣−x∣=e3x2+5∣x∣=f(x), even.
Method: (1) check the domain is symmetric; (2) compute f(−x) and compare with f(x) and −f(x). If neither (for some x), f is neither even nor odd (e.g. x2+x: f(−1)=0, f(1)=2).
Common mistakes
Checking only one of g(f(x))=x, f(g(y))=y.
Confusing f−1(x) with f(x)1: for f(x)=2x, f−1(x)=2x but f(x)1=2x1.
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=x2 (equivalently x1=x2⇒f(x1)=f(x2); or each preimage f←({y}) has at most one element). Horizontal line test: every horizontal line meets the graph at most once. 3x+4 injective; 1−x2 on R not (f(±1)=0).
Surjective:f(X)=Y. Bijective: both; each y has exactly one x. Domain and codomain matter: x2+1 is bijective [0,+∞)→[1,+∞) but neither injective nor surjective R→R.
Inverse of injective f: f−1:f(X)→X, f−1(y)=x⟺f(x)=y. g=f−1 iff g(f(x))=x on Xandf(g(y))=y on f(X). Method: solve y=f(x) for x, swap letters. f=31x+1⇒f−1=3(x−1). Γf−1 is the reflection of Γf across y=x.
Monotone (for x1<x2): increasing f(x1)≤f(x2); strictly <; decreasing ≥; strictly >. mx+q: strictly increasing if m>0, strictly decreasing if m<0, constant if m=0. Integer part [x]: increasing, not strictly.
Strictly monotone ⇒ injective, and f−1 has the same monotonicity. (Proof: x1=x2 gives f(x1)=f(x2) by the two cases; for f−1 assume y1<y2 with x1≥x2 and contradict strict increase.) The converse is false: f(x)=x1 for x>0, f(x)=x for x≤0 is injective but not monotone.
Even/odd (symmetric domain required): even f(−x)=f(x) (symmetric about y-axis), odd f(−x)=−f(x) (about the origin). xn even iff n even. e3x2+5∣x∣ is even. Method: check domain, compute f(−x), compare with f(x) and −f(x).
Mistakes: checking only one inverse condition; f−1=1/f; "increasing" vs "strictly"; injective does not imply monotone; non-symmetric domain.