Basic Principles

Download Report

Transcript Basic Principles

FUNCTIONS
1
Function. Definition
• Let X and Y be sets. A function f from X to Y is
a relation from X to Y with the property that,
for each element x in X, there is exactly one
element y in Y such that x f y:
f : X  Y ; y  f ( x)
• Since any relation from X to Y is a subset of
X x Y, a function is a subset S of X x Y such that
for each x  X there is a unique y  Y with
 x, y   S
2
Functions
• If f is a function from X to Y
f : X  Y ; y  f ( x),
the sets X and Y are called the domain and
codomain of the function, respectively.
• The unique element y  Y is called the image
of x  X under f.
3
One-to-one Function
• If f is a function from X to Y
f : X  Y ; y  f ( x),
and no two distinct elements of the domain
are assigned the same element in the
codomain, then the function is called
one-to-one.
• To show that a function f is one-to-one, it is
necessary to show that f  x1   f  x2   x1  x2
4
Range
• If f is a function from X to Y
f : X  Y ; y  f ( x),
and Yˆ  Y is a subset of the codomain such
that y Yˆ x  X : y  f ( x) (thus Yˆ
contains all the elements from Y that are
paired with elements of the domain X), then Yˆ
is called the range of the function.
5
Onto Function
• If the range and codomain of a function are
equal, the function is called onto.
• To show that a function f is onto, it is
necessary to show that
y Y x  X : y  f ( x)
6
One-to-one Correspondence
• A function, which is both one-to-one and onto
is called a one-to-one correspondence.
• To show that a function f is a one-to-one
correspondence, it is necessary to show that
y  Y ! x  X : y  f ( x)
thus, for each y  Y there is exactly one x  X
such that y  f ( x)
! means “there exists exactly one”
7
Identity Function
• For any set X, the function I X : X  X is oneto-one correspondence. This function is called
the identity function on X.
8
Composition of Functions
• Let f be a function from X to Y and g be a
function from Y to Z. Then it is possible to
combine these two functions in a function gf
from X to Z.
• The function gf is called the composition of g
and f and is defined by taking the image of x
under gf to be g(f(x)): gf ( x)  g  f ( x)  x  X
• If X=Z, it is also possible to define the function
fg, but in general, gf≠fg
9
Inverse Function
• If f : X  Y be one-to-one correspondence,
then for each y  Y there is exactly one x  X
such that y  f ( x) .
• Hence we may define a function with domain
Y and codomain X by associating to each y  Y
the unique x  X such that y  f ( x) . This
1
function is denoted by f and is called the
inverse of function f.
10
Inverse Function
• Theorem. Let f : X  Y is one-to-one
correspondence. Then:
• f 1 : Y  X is one-to-one correspondence
1
• The inverse function of f is f.
1
1
• x  X , f  f ( x)   x; y  Y , f  f ( y )   y ,
that is f 1 f  I X ; ff 1  IY
11
Exponential Function with base 2
• The equation f ( x)  2x , x R defines a
function with the set of real numbers as its
domain and the set of positive real numbers
as its codomain. This function is called the
exponential function with base 2.
12
Exponential Function with base n
• In general, the equation f ( x)  nx , x R
defines a function with the set of real
numbers as its domain and the set of positive
real numbers as its codomain. This function is
called the exponential function with base n.
13
Logarithmic Function with base n
• Evidently, the exponential function with base
n is a one-to-one correspondence because
each element of the codomain is associated
with exactly one element of the domain.
• This means that the exponential function with
base n has and inverse g called the logarithmic
function with base n: g ( x)  logn x
14
Logarithmic Function with base n
• Particularly, the logarithmic function with base
2 g ( x)  log2 x is the inverse of the
exponential function with base 2.
• The definition of an inverse function implies
y
that y  logn x if and only if x  n :
y  logn x  x  n
y
• In general, “a is true if and only if b is true”
means the “a implies b” and “b implies a”.
15