Skip to main content

Function

We say the way transfer an element of a collection to the other collection as function. In mathematic, we always use function to transfer an element of a set to the other set. (Obviously set is a kind of collection.) Or sample space in statistics, or parameters in CS.

Generally, given two sets AA and BB, we define a function from AA to BB is a rule or mapping that takes each element xAx\in A and associate with it a single element of BB.

Let ff be function map AA to BB, or we also can say ff is a function from AA to BB where:

  • AA is the domain of this function (Input)
  • BB is the codomain of this function (output)
  • aA,f(a)B\forall a\in A, f(a)\in B

Injective function or 111\to 1:

  • A function f:ABf: A\to B, x,yA.(xy    f(x)f(y))\forall x,y \in A. (x\ne y \implies f(x) \ne f(y))
  • A function f:ABf: A\to B, x,yA.(f(x)=f(y)    x=y)\forall x,y \in A. (f(x) = f(y) \implies x = y)
  • The Pigeonhole Principle: Let A,BA, B be sets, A>B|A|>|B|     \implies no such injective function f:ABf:A\to B
    • In other language, we present this theory as: If there are mm pigeon and nn pigeonholes, not matter how we assign pigeons to pigeonholes, at least one pigeonhole will have at least m/n\lceil m/n \rceil

Surjective function or onto:

  • A function f:ABf: A\to B, bB,aA(f(a)=b)\forall b \in B, \exists a\in A (f(a) = b)
  • Let A,BA, B be sets, A<B|A|<|B|     \implies no such surjective function f:ABf:A\to B (reverse pigeonhole principle)

hits times: aA,bB,ba\in A, b \in B, b is hit k times by function ff if there are k distinct aAa \in A are such that f(a)=bf(a) = b or we can say {aA:f(a)=b}=k|\{a\in A: f(a) = b\}| = k

Contrapositives of Pigeonhole Principle:

  • f,f\exists f, f is injective f:AB    ABf: A\to B\implies |A| \le|B|
  • f,f\exists f, f is surjective f:AB    ABf: A\to B\implies |A| \ge|B|

Cantor's Theorem:

  • A,A\forall A, A is a set, there is no surjective functions between AA and (A)\wp(A)
  • \wp denote the powerset where (A)\wp(A) is the set contain all subset of set AA
  • Prove:
    1. Let f:A(A)f:A \to \wp(A) be any function, D={aA:af(a)}D = \{a\in A : a \notin f(a)\}
    2. DAD \sube A and D(A)D\in \wp(A)
    3. Assume aA,f(a)=D\exists a\in A, f(a) = D
    4. Assume aDa\in D
      1. contradiction with assumption D={aA:af(a)}D = \{a\in A : a \notin f(a)\}
    5. Then assume aDa\notin D
      1. {a}(A)\{a\}\in \wp(A) then af(a)a\in f(a)
      2. f(a)=Df(a) = D then aDa\in D
      3. contradiction with assumption D={aA:af(a)}D = \{a\in A : a \notin f(a)\}
    6. Combine 4 & 5, no such aAa \in A exists.
    7. No such f(a)=Df(a) = D, ff is not surjective, and no surjective function map A(A)A \to \wp(A)

Cardinality: Let F={ff:AB}F = \{f| f: A\to B\}. fF,f\exists f\in F, f is bijective     \implies AA and BB have the same cardinality. Normally, we use cardinality to describe the size of a collection.

  • Schroder-Bernstein Theorem: For AA and BB, there exist a injective function f:ABf:A\to B and another injective function g:BAg:B\mapsto A, then AA and BB have the same cardinality.
  • f:NS    Sf:\N\to S \implies S is countable

Triangle Inequality : the absolute value function:

  • x={x,x0x,x<0|x| = \begin{cases}x, x\ge 0 \\ -x, x< 0\end{cases}
  • ab=ab|ab| = |a||b|
  • a+ba+b|a+b| \le |a| + |b|

Functional Limits

Functional Limit : Let f:ARf:A\to \mathbb{R}, and let c be a limit point. Then ϵ>0,δ>0,xc>δ    f(x)L<ϵ\forall \epsilon> 0, \exists\delta >0, |x-c|>\delta\implies |f(x)-L|<\epsilon or limxcf(x)=L\lim_{x\to c}f(x)=L

Sequential Criterion for Functional Limits: following two are equivalent

  • limxcf(x)=L\lim_{x\to c}f(x)=L
  • (xn)A\forall(x_n)\sube A satisfies xncx_n\ne c and (xn)c(x_n)\to c, then f(xn)Lf(x_n)\to L

Algebraic Limit Theorem for Functional Limit:

  • limxckf(x)=kL,kR\lim_{x\to c}kf(x)=kL, \forall k \in \mathbb{R}
  • limxc[f(x)+g(x)]=L+M\lim_{x\to c}[f(x)+g(x)]=L+M
  • limxc[f(x)g(x)]=LM\lim_{x\to c}[f(x)g(x)]=LM
  • limxcf(x)/g(x)=L/M\lim_{x\to c}f(x)/g(x)=L/M

Continuous Functions

Continuity: Let function f:ABf:A\to B, let cAc\in A, if ϵ>0,δ>0,xc>δ    f(x)f(c)<ϵ\forall \epsilon> 0, \exists\delta >0, |x-c|>\delta\implies |f(x)-f(c)|<\epsilon, then we say function ff is continuous at cc

  • If ff is continuous at every point in AA, then ff is continuous on AA
  • UB,f1(U)\forall U\subseteq B, f^{-1}(U) is open     f\iff f is continuous (see open Set)

Characterizations of Continuity: ff is continuous at point cc should satisfied one of following:

  • ϵ>0,δ>0,xc>δ    f(x)f(c)<ϵ\forall \epsilon> 0, \exists\delta >0, |x-c|>\delta\implies |f(x)-f(c)|<\epsilon
  • Vϵ(f(c)),Vδ(c),xVδ(c)A    f(x)Vϵ(f(c))\forall V_{\epsilon}(f(c)), \exists V_{\delta}(c), x\in V_{\delta}(c)\sube A \implies f(x)\in V_{\epsilon}(f(c))
  • (xn)c    f(xn)f(c)(x_n)\to c \implies f(x_n)\to f(c)
  • limxcf(x)=f(c)\lim_{x\to c}f(x)=f(c)

Criterion for Discontinuity: Let function f:ARf:A\to \mathbb{R}, let cAc\in A be a limit point of AA. (xn)A,(xn)c    f(xn)f(c)(x_n)\sube A, (x_n)\to c \implies f(x_n) \nrightarrow f(c), then we say this function ff is discontinue at cc

Algebraic Continuity Theorem: Let function f:ARf:A\to \mathbb{R},and function g:ARg:A\to \mathbb{R}, both are continuous at a point cAc\in A:

  • kf(s)kf(s) is continuous at cc for all kRk\in \mathbb{R}
  • f(x)+g(x)f(x) + g(x) is continuous at cc
  • f(x)g(x)f(x)g(x) is continuous at cc
  • f(x)/g(x)f(x)/g(x) is continuous at c,whereg(x)c, where g(x) is properly defined.

Continuous Functions on Compact Sets

A subset SRS\subset\mathbb{R} may have a boundary or be bounded:

  • If it is bounded above, then MR,sS,sM\exists M\in\mathbb{R},\forall s\in S, s\le M. MM in this case is the upper bound for SS.

    • If LR,L\forall L\in \mathbb{R}, L is a upper bound of SS, MLM\le L then we call MM is the least upper bound (supremum)
  • If it is bounded below, then MR,sS,sM\exists M\in\mathbb{R},\forall s\in S, s\ge M. MM in this case is the lower bound for SS.

    • If GR,G\forall G\in \mathbb{R}, G is a upper bound of SS, MGM\ge G then we call MM is the greatest lower bound (infimum)
  • If a set is bounded above and below, then it's a bounded set.

  • If a set has a maximum, then the set is bounded above and the maximum is the least upper bound.

  • If a set has a minimum, then the set is bounded below and the minimum is the greatest lower bound.

Least Upper Bound Principle:

  • Every nonempty subset of R\mathbb{R} is bounded above has a supremum.
  • Every nonempty subset of R\mathbb{R} is bounded below has a infimum.

The Intermediate Value Theorem (IVT)

Let ff be a real-valued continuous function on [a,b][a,b] and zRz\in \R satisfies f(a)<z<f(b)f(a) < z < f(b). Then there is a point c(a,b)c\in (a,b) such that f(c)=zf(c) = z.

  • If ff be a real-valued continuous function on [a,b][a,b], then f([a,b])f([a,b]) is an closed interval.
  • Let SRnS\subset \R^n and ff be a real-valued continuous function on SS. If there is a path from aa to bb in SS such that f(a)<z<f(b)f(a) < z < f(b), then there is a point cc on the path such that f(c)=zf(c) = z.