Functions and Maps

  • Definitions: function, domain, map

  • Graph and epigraph

  • Level and sub-level sets

Definitions

Functions

In this course we define functions as objects which take an argument in mathbf{R}^n, and return a value in mathbf{R}. We use the notation

 f : mathbf{R}^n rightarrow mathbf{R},

to refer to a function with ‘‘input’’ space mathbf{R}^n. The ‘‘output’’ space for functions is mathbf{R}.

Example: The function f : mathbf{R}^2 rightarrow mathbf{R} with values

 f(x) = sqrt{(x_1-y_1)^2+(x_2-y_2)^2}

gives the distance from the point (x_1,x_2) to a given point (y_1,y_2).

Domain

We allow functions to take infinity values. The domain of a function f, denoted mbox{bf dom} f, is defined as the set of points where the function is finite.

Example: Define the logarithm function as the function f : mathbf{R} rightarrow mathbf{R}, with values f(x) = log x if x>0, and -infty otherwise. The domain of the function is thus mathbf{R}_{++} (the set of positive reals).

Two functions can differ not by their formal expression, but but because they have different domains.

Example: The functions f,g defined as

 f(x) = left{ begin{array}{cc} 1/x & mbox{if } x ne 0 +infty & mbox{otherwise,} end{array}right., ;;;;  g(x) = left{ begin{array}{cc} 1/x & mbox{if } x > 0 +infty & mbox{otherwise,} end{array}right.

have the same formal expression inside their respective domains. However, they are not the same functions, since their domain is different. spadesuit

Maps

We reserve the term map to refer to vector-valued functions. That is, maps are functions which return more than a single value. We use the notation

 f : mathbf{R}^n rightarrow mathbf{R}^m,

to refer to a map with input space mathbf{R}^n and output space mathbf{R}^m. The components of the map f are the (scalar-valued) functions f_i, i=1,ldots,m.

Example: a map.

Graph and Epigraph

Consider a function f : mathbf{R}^n rightarrow mathbf{R}. We can define two sets relevant to f: the graph and the epigraph. Both are subsets of mathbf{R}^{n+1}.

Graph

The graph of f is the set of input-output pairs that f can attain, that is:

 G(f) := left{ (x,f(x)) in mathbf{R}^{n+1} ~:~ x in mathbf{R}^n right}.

Epigraph

The epigraph, denoted mbox{bf epi} f, describes the set of input-output pairs that f can achieve, as well as ‘‘anything above’’ (epi in Greek means ‘‘above’’):

 mbox{bf epi} f := left{ (x,t) in mathbf{R}^{n+1} ~:~ x in mathbf{R}^n, ;; t ge f(x) right}.
alt text 

The function f : mathbf{R} rightarrow mathbf{R}, with domain (-1,1) and value inside the domain f(x) = x^2 + (1/2) sin (10x). The graph corresponds to the points in blue, and the epigraph is in light blue. The epigraph extends to infinity above the graph. Points outside the domain are not shown.

Level and Sub-level Sets

Level and sub-level sets correspond to the notion of contour of a function. Both are indexed on some scalar value t.

Level sets

A level set is simply the set of points that achieve exactly some value for the function f. For t in mathbf{R}, the t-level set of the function f is defined as

 mathbf{L}_t(f) := left{ xin mathbf{R}^{n} ~:~ x in mathbf{R}^n, ;; t = f(x) right} .

Sub-level sets

A related notion is that of sub-level set. This is now the set of points that achieve at most a certain value for f, or below:

 mathbf{S}_t(f) := left{ xin mathbf{R}^{n} ~:~ x in mathbf{R}^n, ;; t ge f(x) right} .
alt text 

Level and sub-level sets of a function f : mathbf{R}^2 rightarrow mathbf{R}, with domain mathbf{R}^2 itself, and values on the domain given by

 f(x) = logleft( e^{sin (x_1+0.3 x_2-0.1)} + e^{.2x_2+0.7} right).