Professional Documents
Culture Documents
Session Objectives
1. Function definition
2. Domain, codomain and range
3. Standard real functions
4. Applications
Functions vs. Relations
• A "relation" is just a relationship
between sets of information.
• A “function” is a well-behaved
relation, that is, given a starting
point we know exactly where
to go.
Example
• People and their heights, i.e. the
pairing of names and heights.
• We can think of this relation as
ordered pair:
• (height, name)
• Or
• (name, height)
Example (continued)
Name Height
Joe=1 6’=6
Mike=2 5’9”=5.75
Rose=3 5’=5
Kiki=4 5’=5
Jim=5 6’6”=6.5
(Height, Name) (Name, Height)
6 7
6.5
6
Jim 5
5.5
5
Kiki 4
4.5
Height
4
Rose 3 3.5
3
Mike 2 2.5
2
1.5
Joe 1
1
0.5
0
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7
0 1 2 3 4 5 6
Height Joe Mike Rose Kiki Jim
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7
Height
Observations:
(i) A relation from A to B is not a
function if it either violates
condition 1 or 2 or both, i.e.
either some element of A is not
associated to element of B or
some element of A is associated
to more than one elements of B
or both.
(ii) In a function from A to B, two
elements of A can be associated
to one element of B (examples
R7, R10)
Observations
(i) A relation from A to B is not a function
if it either violates condition 1 or 2 or
both, i.e. either some element of A is
not associated to element of B or some
element of A is associated to more than
one elements of B or both.
(ii) In a function from A to B, two elements
of A can be associated to one element
of B (examples R7, R10) A B A B
Clearly, f A B.
Domain, Codomain and Range of a Function
For example:
A B A B
R7 R8
a 1 a 1
b 2 b 2
A B A B
R7 R8
a 1 a 1
b 2 b 2
y f x :a, c R, then
w
Domain of f is [a, c]
v
Codomain is R
u Range is [u, w]
a b c
Some Standard Real Functions and
Their Graphs
Constant function: f(x) = c
Let f : R R be the real function defined as
f x c x R for some c R
(0, c) y = f(x) = c
x Note: f : A B is constant
O
function if a A, f(a) = c
for some c B.
Some Standard Real Functions and
Their Graphs
Identity function: f(x) = x
Let f : R R be the real function defined as
f x x x R
Dom (f) = R
Codomain (f) = R
Range (f) = R
y
Note: f : A A given by f(a) = a
a A is identity function denoted
x
A
=
y
x
O
Some Standard Real Functions and
Their Graphs
Modulus function: f(x) = |x|
Let f : R R be the real function defined as
x, x 0
f x x
x, x 0
Domain (f) = R, Codomain (f) = R,
Range (f) = x|x R, x 0 0, (as x 0 )
= set of non-negative real numbers.
y
y= f(x) = x x
– =
x y
x
x<0 O x0
Some Standard Real Functions and
Their Graphs
Greatest integer function: f(x) = [x]
Let f : R R be the real function defined as
f x x x R
= greatest integer less than or equal to x.
For example:
[2.1] = 2, i.e. greatest integer less than or equal
to 2.1 is 2, similarly
[–2.1] = –3
[2] = 2
[3 . 9] = 3
[–3 . 9] = –4
Some Standard Real Functions and
Their Graphs
Hence [x] = 0 0 x 1
= 1 1 x 2
= 2 2x3
and so on. y
2
= –2 2 x 1 and so on.
1
Combining we get [x] = n for x
–4 – 3 – 2 – 1 O 1 2 3 4
n x n 1 n z –1
–2
–3
Some Standard Real Functions and
Their Graphs
Filled circle means, point is on the graph.
4
3 y = [x]
2
1
x
–4 – 3 – 2 – 1 O 1 2 3 4
–1 unfilled circle means, point is not on
the graph.
–2
Dom(f) = R, Codomain (f) = R
–3
Range (f) = z
–4
Thank you