0% found this document useful (0 votes)
38 views15 pages

Jarrar - LectureNotes.7.2 Functions Properties

Maths function

Uploaded by

GAMECHU MULUNEH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views15 pages

Jarrar - LectureNotes.7.2 Functions Properties

Maths function

Uploaded by

GAMECHU MULUNEH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

11/25/18

Mustafa Jarrar: Lecture Notes in Discrete Mathematics.


Birzeit University, Palestine, 2015

Functions

7.1. Introduc0on to Func0ons


7.2 One-to-One, Onto, Inverse func0ons

, 1
mjarrar©2015

Watch this lecture


and download the slides

Course Page: http://www.jarrar.info/courses/DMath/


More Online Courses at: hFp://www.jarrar.info

Acknowledgement:
This lecture is based on (but not limited to) to chapter 7 in “Discrete Mathema:cs with Applica:ons
by Susanna S. Epp (3rd Edi:on)”.

, 2

1
11/25/18

Mustafa Jarrar: Lecture Notes in Discrete Mathematics.


7.2 One-to-OneBirzeit University,
and Onto, InversePalestine, 397
Functions 2015

Answers for Test Yourself Functions


1. the unique output element in Y that is related to x by f 2. the value of f at x; the image of x under f ; the out-
7.2 Properties of Functions
put of f for the input x 3. the set of all y in Y such that f (x) = y 4. an inverse image of y under f ; a preimage of y
5. {x ∈ X | f (x) = y}; the inverse image of y 6. f (x) = g(x) for all x ∈ X 7. the exponent to which b must be raised to obtain x
(Or: the real number y such that x = b y ) 8. {y ∈ Y | y = f (x) for some x ∈ A} (Or: { f (x) | x ∈ A}) 9. {x ∈ X | f (x) ∈ C}

7.2 One-to-One and Onto, Inverse Functions


Don’t accept a statement just because it is printed. — Anna Pell Wheeler, 1883–1966
In this lecture:
qPart
property of being one-to-one One-to-one Func9ons
In this section we discuss two important properties that functions may satisfy: the
1: and the property of being onto. Functions that satisfy both
are called2:
propertiesqPart Onto Func0ons
one-to-one correspondences or one-to-one onto functions. When a
function is a one-to-one correspondence, the elements of its domain and co-domain match
and we3:
qPart
up perfectly, canone-to-one
define an inverseCorrespondence Func0ons
function from the co-domain to the domain that
the action 4:
“undoes” qPart Inverse
of the function.Func0ons

qPart 5: Applica0ons: Hash and Logarithmic Func0ons


One-to-One Functions
, 3
In Section 7.1 we noted that a function may send several elements of its domain to the
same element of its co-domain. In terms of arrow diagrams, this means that two or more
arrows that start in the domain can point to the same element in the co-domain. On
the other hand, if no two arrows that start in the domain point to the same element of
the co-domain then the function is called one-to-one or injective. For a one-to-one func-
tion, each element of the range is the image of at most one element of the domain.
One-to-One Functions
• Definition
Let F be a function from a set X to a set Y . F is one-to-one (or injective) if, and
only if, for all elements x1 and x2 in X ,
398 Chapter 7 Functions

if F(x1 ) = F(x2 ), then x1 = ofxF2 ,


X = domain Y = co-domain of F
F
or, equivalently, if x1 ̸= x2 , then F(x1 ) ̸= x F(x2 ). Any two distinct elements
1 F(x 1 )
of X are sent to two
x2
Symbolically, F(x 2 ) distinct elements of Y.

F: X → Y is one-to-one ⇔ ∀x1 , x2 ∈ X, ifFigure ) = F(x


F(x17.2.1(a) 1 = x 2 .Separates Points
2 ) then xFunction
A One-to-One
Chapter 7 Functions

x
‫اﻟﻣﻘﺎﺑل‬statement
To obtain a precise ‫رة ﻓﻲ اﻟﻣﺟﺎل‬of
‫ﺻو‬what
‫ﺎ ﻧﻔس اﻟ‬it‫ﮭﻣ‬means
‫ﻲ اﻟﻣﺟﺎل ﻟ‬for
‫ ﻻ ﯾوﺟد ﻋﻧﺻرﯾن ﻓ‬not to be one-to-one,
X = domain ofaF function
F Y = co-domain of F
takeX the negation
= domain of F of one of theYequivalent
= co-domain versions
of F of the definition above. Thus:
F
x1 Two distinct elements
x1 Any two distinct elements
A function F: X → Y is not one-to-one
F(x 1 ) ⇔ x ∃sent
of X are
elements
to two
x1 and x2 inF(x 1X) = with
F(x 2 ) of X are sent to
2 the same element of Y.
x2 F(x 2 ) F(x )
distinct elements
1 = F(x
of Y. 2 ) and x 1 ̸ = x 2.

, A 4
ThatFigure 7.2.1(a)
is, if elements x1One-to-One
and x2 canFunction
be found Separates
Figure havePoints
that7.2.1(b) Athe sameThat
Function function value but
Is Not One-to-One are Points Together
Collapses
not equal, then F is not one-to-one.
X =In termsofof
domain F arrow diagrams,
Example
F
a =one-to-one
7.2.1
Y Identifying
co-domain offunction can be
FOne-to-One thoughtDefined
Functions of as aonfunction that
Finite Sets
separates points. That is, it takes distinct points of the domain to distinct points of the
a. Do either of the arrow diagrams in Figure 7.2.2 define one-to-one functions?
co-domain. A function that is not one-to-one fails to separate points. That is, at least two
points xof
1 the domain are taken to the same point of the co-domain. This is illustrated in
Two distinct elements
F(x 1 ) = F(x 2 ) Domain
of X of
areF sentCo-domain
to of F Domain of G Co-domain of G
Figure x7.2.1
2
on the next page.
theXsame element Yof Y. X Y
2
F G
a u a u
b v b v
ht 2010 Cengage Learning. All Rights Reserved. May notFigure 7.2.1(b) A Function
in whole or inThat
part. DueIs Not One-to-One Collapses
content mayPoints Together
c w c w
be copied, scanned, or duplicated, to electronic rights, some third party
d
be suppressed x
from the eBook and/or eChapter(s).
d x
review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time
y if subsequent rights restrictions require it. y
11/25/18

Proving/Disproving Functions are One-to-One

To prove f is one-to-one (Direct Method):


suppose x1 and x2 are elements of X | f (x1) = f (x2), and
show that x1 = x2.

To show that f is not one-to-one:


Find elements x1 and x2 in X so f(x1)= f(x2) but x1 ≠ x2.

, 5

Proving/Disproving Func1ons are One-to-One


Example 1

Define f : R→R by the rule


f(x) = 4x−1 for all x∈R

Is f one-to-one? Prove or give a counterexample.

Suppose x1 and x2 are real numbers such that f (x1) = f (x2).


[We must show that x1 = x2] By definition of f ,
4x1 − 1 = 4x2 − 1. Adding 1 to both sides gives
4x1 = 4x2, and dividing both sides by 4 gives
x1 = x2, which is what was to be shown.

, 6

3
11/25/18

Proving/Disproving Func1ons are One-to-One


Example 2

Define g : Z→Z by the rule


g(n) = n2 for all n ∈ Z.

Is g one-to-one? Prove or give a counterexample.

Counterexample:
Let n1 =2 and n2 = −2. Then by definition of g,
g(n1) = g(2) = 22 = 4 and also
g(n2) = g(−2) = (−2)2 = 4.
Hence g(n1) = g(n2) but n1 ≠ n2,
and so g is not one-to-one.

, 7

Proving/Disproving Functions are One-to-One


Example 3

Define g : MobileNumber → People by the rule


g(x) = Person for all x∈MobileNumber

Is g one-to-one? Prove or give a counterexample.

Counter example:
0599123456 and 0569123456 are both for Sami

, 8

4
11/25/18

Proving/Disproving Func1ons are One-to-One


Example 4
Define g : Fingerprints* → People by the rule
g(x) = Person for all x∈R Fingerprint

*Small right finger

Is g one-to-one? Prove or give a counterexample.


Prove:
In biology and forensic science: “The flexibility of
friction ridge skin means that no two finger or palm
prints are ever exactly alike in every detail” [w].
, 9

Mustafa Jarrar: Lecture Notes in Discrete Mathematics.


Birzeit University, Palestine, 2015

Func9ons
7.2 Properties of Functions

In this lecture:
qPart 1: One-to-one Functions
qPart 2: Onto Functions
qPart 3: one-to-one Correspondence Functions
qPart 4: Inverse Functions
qPart 5: Applications: Hash and Logarithmic Functions 10
,

5
Symbolically:
• Definition F: X → Y is onto ⇔ ∀y ∈ Y, ∃x ∈ X such that F(x) = y.

Let F be a function from a set X to a set Y . F is onto (or surjective) if, and only if,
402 Chapter 7 Functions
given any element y in Y , it is possible to find an element
To obtainxain X with
precise the property
statement of what it means for a function 11/25/18
not to be onto, take
that y = F(x). negation of the definition of onto:
Onto Functions
Symbolically:
It was noted in Section 7.1 that there may be an element of the co-domain of a function
→ Yis is
F: X that notonto ⇔ of∀yany
the image ∈ Y, ∃x ∈ inX the
element suchF:that
X→
domain. F(x) =notother
Y isthe
On y.ontohand,
⇔ every
∃y inelement
Y such that ∀x ∈ X, F(x) ̸= y.
of a function’s co-domain may be the image of some element of its domain. Such a
function is called onto or surjective. When a function is onto, its range is equal to its
To obtain a precise statement of what it meansThat
co-domain. for ais,function
there is some element
not to be onto, Onto Functions
in Ytake
that the
is not the image of any element in X .
In terms of arrow diagrams, a function is onto if each element of the co-domain
negation of the definition of onto:
an arrow pointing to it from some element of the domain. A function is not onto if at l
• Definition
one element in its co-domain does not have an arrow pointing to it. This is illustrate
Let F be a function from a set X to Figure
a set 7.2.3.
Y . F is onto (or surjective) if, and only if,
F: X → Ygivenis not onto ⇔ ∃y in Y such that ∀x ∈ X, F(x) ̸ = y.
any element y in Y , it is possible to find an element x in X with the property
that y = F(x). X = domain of F Y = co-domain of F
F
Symbolically:
That is, there is some element in Y that is not the image of any element in X . Each element y in
F: X → Y is onto ⇔ ∀y ∈ Y, ∃x ∈ X such that F(x) = y.
In terms of arrow diagrams, a function is onto if each element of the co-domain has y = F(x) Y equals F(x) for
x
an arrow pointing to it from some element of the domain. A function is not onto if at least at least one x in X.
‫ﻻ ﯾوﺟد ﻋﻧﺻر ﻓﻲ اﻟﻣﺟﺎل اﻟﻣﻘﺎﺑل ﻟﯾس ﺻورة ﻟﻌﻧﺻر ﻓﻲ اﻟﻣﺟﺎل‬
one element in its co-domain
To obtaindoes not statement
a precise have an arrow
of whatpointing
it meansto
forit.a This is illustrated
function in take the
not to be onto,
Figure 7.2.3. negation of the definition of onto: Figure 7.2.3(a) A Function That Is Onto

x
X = domain of F Y = co-domain of F X = domain of F
F: X →FY is not onto ⇔ ∃y in Y such that ∀x ∈ X, F(x)
F ̸= Y =y.co-domain of F

Each element y in At least one element in Y


equals forany element in X . does not equal F(x)
Thatx is, there is some elementyin= Y that is notY the
F(x) F(x)of
image
at least one x in X. for any x in X.
In terms of arrow diagrams, a function is onto if each element of the co-domain has
an arrow pointing to it from some element of the domain. A function is not onto if at least
one element in 7.2.3(a)
its ,co-domain does notThat
haveIsanOnto
arrow pointingFigure
to 7.2.3(b)
it. This isAillustrated
Function That
in Is Not Onto
11
Figure A Function
Figure 7.2.3.

X = domain of F X = domain of F
Y = co-domain Y = co-domain of F
F Fof F

Each element y in
At least one element in Y
= F(x) Y equals F(x) for
doesy not
Proving/Disproving
x
Functions are Onto equal F(x)at least one x in X.
for any x in X.

Figure 7.2.3(a) A Function That Is Onto


Figure 7.2.3(b) A Function That Is Not Onto
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eC
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights res

To prove F is onto, (methodYof= generalizing


X = domain of F co-domain of F
from the generic particular)
F
suppose that y is any element of Y
show that there is an element x At ofleast
X with F(x)in =Y y.
one element
does not equal F(x)
for any x in X.

Figure
To prove F is not 7.2.3(b)
onto, youAwill
Function That Is Not Onto
usually
find an element y of Y | y ≠ F(x) for any x in X.
All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
y suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

,
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).12
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

6
11/25/18

Proving/Disproving Func2ons are Onto


Example 1

Define f : R→R
f(x) = 4x − 1 for all x∈R

Is f onto? Prove or give a counterexample.

, 13

Proving/Disproving Func2ons are Onto


Example 2
Define h : Z→Z by the rules
h(n) = 4n − 1 for all n ∈ Z.

Is h onto? Prove or give a counterexample.

, 14

7
11/25/18

Proving/Disproving Functions are Onto


Example 3

Define g : MobileNumber → People by the rule


g(x) = Person for all x∈MobileNumber

Is g onto? Prove or give a counterexample.

Counter example:
Sami does not have a mobile number

, 15

Proving/Disproving Functions are Onto


Example 4

Define g : Fingerprints → People by the rule


g(x) = Person for all x∈Fingerprint

Is g onto? Prove or give a counterexample.

Prove:
In biology and forensic science: there is no person without fingerprint

, 16

8
11/25/18

Mustafa Jarrar: Lecture Notes in Discrete Mathematics.


Birzeit University, Palestine, 2015

Functions
7.2 Properties of Functions

In this lecture:
408 Chapter 7 Functions qPart 1: One-to-one Func1ons
qPart 2: Onto Func1ons
each element of X with exactly one element of Y and each element of Y with exactly one
element ofqPart one-to-one Correspondence Func:ons
X . Such a3:pairing is called a one-to-one correspondence or bijection and is
illustrated by the arrow diagram in Figure 7.2.5. One-to-one correspondences are often
used as aidsqPart 4: Inverse
to counting. Func1ons
The pairing of Figure 7.2.5, for example, shows that there are
five elements in the set X .
qPart 5: Applica1ons: Hash and Logarithmic Func1ons
, 17
X = domain of F Y = co-domain of F
F
a 1
b 2
c 3
d 4
e 5

One-to-One Correspondences
Figure 7.2.5 An Arrow Diagram for a One-to-One Correspondence

• Definition
er 7 Functions
A one-to-one correspondence (or bijection) from a set X to a set Y is a function
F: X → Y that is both one-to-one and onto.
each element of X with exactly one element of Y and each element of Y with exactly one
element of X . Such
‫اﻟﻣﺟﺎل‬a‫ﻓﻲ‬pairing
‫ة ﻟﻌﻧﺻرﯾن‬is
‫ﺻور‬called
‫ او‬،‫ﻣﺟﺎل‬a‫ﻲ اﻟ‬
one-to-one
‫س ﺻورة ﻟﻌﻧﺻر ﻓ‬ ‫ﺻر ﻓﻲ اﻟﻣﺟﺎل اﻟﻣﻘﺎﺑل ﻟﯾ‬or
correspondence ‫ ﻋﻧ‬bijection
‫ﻻ ﯾوﺟد‬ and is
Example 7.2.8 A Function from a Power Set to a Set of Strings
illustrated by the arrow diagram in Figure 7.2.5. One-to-one correspondences are often
used asLet
aids to counting.
P({a, b}) be the The
set ofpairing
all subsetsof ofFigure 7.2.5,
{a, b} and for
let S be example,
the set of allshows
stringsthat there2 are
of length
made up of 0’s and
five elements in the set X . 1’s. Then P({a, b}) = {∅, {a}, {b}, {a, b}} and S = {00, 01, 10, 11}.
Define a function h from P({a, b}) to S as follows: Given any subset A of {a, b}, a is
either in A or not in A, and b is either in A or not in A. If a is in A, write a 1 in the first
X = domain of F Y = co-domain of F
position of the string h(A). If a is not in F A, write a 0 in the first position of the string
h(A). Similarly, if b is in A, write
a a 1 in the second position
1 of the string h(A). If b is not
b
in A, write a 0 in the second position 2 This definition is summarized in
of the string h(A).
the following table. c 3
d 4
e h 5

Figure 7.2.5 An Arrow Diagram for a One-to-One Correspondence


Subset, of {a, b} Status of a Status of b String in S 18

∅ not in not in 00
{a} in not in 10
• Definition {b} not in in 01
{a, b} in in 11
A one-to-one correspondence (or bijection) from a set X to a set Y is a function
F: X → Y that is both one-to-one and onto. 9
Is h a one-to-one correspondence?
Solution The arrow diagram shown in Figure 7.2.6 shows clearly that h is a one-to-one
xample 7.2.8 A Function from a Power
correspondence. It isSet
ontoto a Seteach
because of Strings
element of S has an arrow pointing to it. It is
one-to-one because each element of S has no more than one arrow pointing to it.
Let P({a, b}) be the set of all subsets of {a, b} and let S be the set of all strings of length 2
11/25/18

String-Reversing Function

Let T be the set of all finite strings of x’s and y’s. Define
g : T →T by the rule: For all strings s ∈ T ,
g(s) = the string obtained by writing the characters of s in reverse
order. E.g., g(“Ali”) = “ilA”

Is g a one-to-one correspondence from T to itself?

, 19

Mustafa Jarrar: Lecture Notes in Discrete Mathematics.


Birzeit University, Palestine, 2015

Func3ons
7.2 Properties of Functions

In this lecture:
qPart 1: One-to-one Functions
qPart 2: Onto Functions
qPart 3: one-to-one Correspondence Functions
qPart 4: Inverse Functions
qPart 5: Applications: Hash and Logarithmic Functions
, 20

10
Suppose F: X → Y is a one-to-one correspondence; that is, suppose F is one-to-one
and onto. Then there is a function F −1: Y → X that is defined as follows:
Given any element y in Y,
F −1 ( y) = that unique element x in X such that F(x) equals y.
11/25/18
In other words,
F −1 (y) = x ⇔ y = F(x).

The proof of Theorem 7.2.2 follows immediately from the definition of one-to-one
and onto. Given an element y in Y , there is an element x in X with F(x) = y because F
is onto; x is unique because FInverse Functions
is one-to-one.

Theorem 7.2.2
• Definition
Suppose F: X → Y is a one-to-one correspondence; that is, suppose F is one-to-
The function F −1 of Theorem 7.2.2 is called the inverse function for F.
one and onto. Then there is a function F-1: Y → X that is defined as follows:
Given any element y in Y,
Note Fthat
-1(y)according to this
= that unique definition,
element x in Xthe logarithmic
such function
that F(x) equals y. with base b > 0 is the
inverse of the exponential
In other words, function with base b.
The diagram that follows illustrates
F-1(y)=x the⇔facty=F(x).
that an inverse function sends each ele-
ment back to where it came from.
X = domain of F Y = co-domain of F

F
x = F –1( y) F(x) = y
F –1

Example 7.2.11 Finding an Inverse Function for a Function Given by an Arrow Diagram
è Is it always that the inverse of a function is a function?
Define the inverse function for the one-to-one correspondence h given in Example 7.2.8.
, 21
Solution The arrow diagram for h−1 is obtained by tracing the h-arrows back from S to
P({a, b}) as shown below.
({a, b}) S
h–1

∅ 00
–1 –1
{a}
{b} Finding Inversehh Func/ons
(00) = ∅ h (10) = {a}
10
01
(01) = {b} h (11) = {a, b} –1 –1

{a, b} 11 ■
The function f : R → R defined by the formula
f(x) = 4x−1
Example 7.2.12 Finding an Inverse Function for all realGiven
for a Function numbers x
in Words
Define the inverse function for the one-to-one correspondence g given in Example 7.2.9.
(was shown one-to-one and onto)
Solution The function g: T → T is defined by the rule
Find
For its inverse
all strings t in T ,function?
g(t) = the string obtained by writing the
characters of t in reverse order.

Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
w has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

, 22

11
11/25/18

Mustafa Jarrar: Lecture Notes in Discrete Mathema6cs.


Birzeit University, Palestine, 2015

Functions
7.2 Proper*es of Func*ons

In this lecture:
qPart 1: One-to-one Functions
qPart 2: Onto Functions
qPart 3: one-to-one Correspondence Functions
qPart 4: Inverse Functions
qPart 5: Applications: Hash and Logarithmic Functions
, 23

Hash Func,ons

• Maps data of arbitrary length to data of a fixed length.


• Very much used in databases and security

, 24

12
Imagine a set of student records, each
number, and suppose the records are to
located if the social security number is k
record with social security number n int
security numbers have nine digits, this m
positions. The problem is that creating s
11/25/18
very wasteful of computer memory spac
larger to smaller sets of integers, frequen
of the solution to this problem. We illust
a very simple example.

Example 7.2.3 A Hash Function


Hash Func,ons Suppose there are no more than seven
the set of all social security numbers (ig
follows:
How to store long (ID numbers) for a small set of people
H ash(n) = n mod 7 fo

For example: n is an ID number, and m is number of people weTohave


use your calculator to find n mod 7, u
Section 4.4.) In other words, divide n by
Hash(n) = n mod m 7.2.1
Table
and subtract that number from n. For inst
0 356-63-3102
H ash(328-34-3419) = 3
1
As a first approximation to solving th
2 513-40-8716
record with social security number n in
3 223-79-9061 security numbers are 328-34-3419, 356
4 positions of the records are as shown in T
5 328-34-3419 The problem with this approach is t
assign the same position in the table to
6
Such an assignment is called a collision
olution methods are used. One of the
collision? with social security number n is to be
start from that position and search downw
tion that occurs, going back up to the
, 25 in the table from its social se
a record
search downward from that position to
If there are not too many collisions, th
records.
Suppose the social security number
Find the position in Table 7.2.1 into whic

Exponen)al and Logarithmic Func)ons Solution When you compute Hash you fin
occupied by the record with social secur
from position 2, you find that position 3 i
H ash
908-37-1011 −→

oc

Logb x = y ⟺ by = x Therefore, you place the record with soci

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves th

, 26

13
When working with the exponential function, it is useful to recall the laws of expo-
When working
nents from elementary algebra. with the exponential function, it is useful to recall the laws of expo-
nents from elementary algebra.
Laws of Exponents
If b and c are any positive real numbers andLaws
u and of Exponents
v are any real numbers, the 11/25/18
following laws of exponents hold true:
If b and c are any positive real numbers and u and v are any real numbers, the
following laws of exponents bu +v true:
bu bv = hold 7.2.1
406 Chapter 7 Functions (bu )v = bu v 7.2.2
u bu bv = bu +v 7.2.1
b
= bu −v it (b
When working with the exponentialbfunction,
v is uuseful bu recall
)v = to v
the laws 7.2.3
of expo- 7.2.2
Relations
nents between
from elementary Exponential
algebra. u
(bc) = b c u and
u Logarithmic
b u Functions
7.2.4
= bu −v 7.2.3
Laws of Exponents b v
u
If In Section
b and 7.1any
c are the logarithmic function
positive real numbers baseu b(bc)
withand = bu cfor
wasvdefined
and are any
u
any positive
real numbers, num-
the
7.2.4
+
ber b ̸ = 1 to be the function from
following laws of exponents hold true:R to R with the property that for each positive real
number x,
bu bv = bu +v 7.2.1
In
logSection 7.1 the logarithmic
b (x) = the exponent to which
u v b ufunction
must withtobase
be raised was defined for any positive num-
b x.
obtain
(b
ber b ̸= 1 to be the function from ) = b v
R+real R withy,the property that
to number 7.2.2
for each positive real
Or, equivalently, for each positive real number
b u x and
number x, =b u −v
7.2.3
logb x = ybv ⇔ b y = x.
logb (x) = the (bc)exponent
u
bu cu to which b must be raised to obtain x.
It can be shown using calculus that both the=exponential and logarithmic functions7.2.4
are
one-to-one
Or,and onto. Therefore,
equivalently, forby definition
each of one-to-one,
positive real numberthe following properties
x and real holdy,
The exponential and logarithmic functions are one-to-one andnumber
onto.
true:
Thus the following
In Section properties
7.1 the logarithmic hold:
function with
logbase b was defined for
y any positive num-
+ b x = y ⇔ b = x.
b ̸=any
ber For 1 topositive
be thereal
function
number from R bto̸=R1,with the property that for each positive real
b with
number x,It can be shown using calculus that both the exponential and logarithmic functions are
if bu = bv then u = v for all real numbers u and v, 7.2.5
one-to-one
logb (x) =andtheonto. Therefore,
exponent to whichby definition
b must of one-to-one,
be raised to obtain x. the following properties hold
and true:
Or, equivalently, for each positive real number x and real number y,
if logb u = logb v then u = v for all positive real numbers u and v. 7.2.6
y 27
log x = y ⇔ b
For any, positive realb number b with b ̸= 1, = x.
ItThese
can be shown using calculus
properties are used if bthat
to derive =both
u many the exponential
bvadditional
then u= facts andexponents
v about
for alllogarithmic functions are
and logarithms.
real numbers u and v, 7.2.5
one-to-one and
In particular weonto.
haveTherefore,
the followingby definition
properties of
of one-to-one,
logarithms. the following properties hold
true: and
Theorem 7.2.1 Properties of Logarithms
For any positiveifreal b u = log
lognumber ̸= 1,u = v for all positive real numbers u and v.
b v bthen
b with 7.2.6
For any positive real numbers b, c and x with b ̸= 1 and c ̸= 1:
Relations between Exponential
if bu = bv then u = v for alland Logarithmic
real numbers u and v, Functions 7.2.5

and b (x y) =
a. logThese logb x + log
properties b yused to derive many additional facts about exponents and logarithms.
are
! "
We In particular
can x
if blogderive
wethen
have
additional the following
facts propertiesand
about exponents of logarithms.
logarithms, e.g.:
b. log bu == log
logb vx − logub y= v for all positive real numbers u and v. 7.2.6
y
Theorem
c. logb (x a
) = a logb7.2.1
x Properties of Logarithms
These properties are used to derive many additional facts about exponents and logarithms.
log
anyb xpositive c and x with b ̸= 1 and c ̸= 1:
d. logc xFor
In particular we
= have real properties
the following numbers of b,logarithms.
logb c
Theorem 7.2.1 Properties of Logarithms
a. log b (x y) = logb x + logb y
ForTheorem
any positive 7.2.1(d) real "
!isnumbers b, c and x with b ̸= 1 and c ̸= 1:
xproved in the next example. You are asked to prove the remainder
of the theorem b. logbin exercises = logatb the
33–35 x −end log ofbthisy section.
a. logb (x y) = logb x + logb y y
! c."log (x a ) = a log x
x b b
Copyright 2010 Cengage Learning. All Rights Reserved. May not b.be log
copied, = loginb whole
b scanned, or duplicated, x −or log y to electronic rights, some thirdHow
b Due
in part.
to prove this?
party content may be suppressed from the eBook and/or eChapter(s).
logCengage
Editorial review has deemed that any suppressed content does not materially affectythe overall learning experience.
b x Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
d. log x =
c
c. logb (x a ) = a logb x logb c
logb x
d. logc x =
logb c
Theorem
, 28prove the remainder
7.2.1(d) is proved in the next example. You are asked to
of the theorem in exercises 33–35 at the end of this section.
Theorem 7.2.1(d) is proved in the next example. You are asked to prove the remainder
of the theorem in exercises 33–35 at the end of this section.

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
opyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
14
ditorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
7.2 One-to-One and Onto, Inverse Functions 407

Using the One-to-Oneness of the Exponential Function 11/25/18

Use the definition of logarithm, the laws of exponents, and the one-to-oneness of the
exponential function (property 7.2.5) to prove part (d) of Theorem 7.2.1: For any positive
real numbers b, c, and x, with b ̸ = 1 and c ̸ = 1, 7.2 One-to-One and Onto, Inverse Functions 407

Using the One-to-Oneness


Example of ofthe
7.2.6 Using the One-to-Oneness Exponential
the Exponential Function Function
Use the definition of logarithm, the laws of exponents, and the one-to-oneness of the
exponential function (property 7.2.5) to prove part (d) of Theorem 7.2.1: For any positive
Prove that: real numbers b, c, and x, with b ̸= 1 and c ̸= 1,
logb x
logc x = . x
loglogbxc= log
log c
.
c
b

Solution Suppose positive real numbers b, c, and x are given. Let


(1) u = logb c (2) v = logc x (3) w = logb x.

Solution Suppose positive real numbers and x are given. Let


b,ofc,logarithm,
Then, by definition
(1′ ) c = bu (2′ ) x = cv (3′ ) x = bw .

(1) u = logb c (2) v = xlog x (3) w = logb x.


′ ′
Substituting (1 ) into (2 ) and using one of the laws of exponents gives
= c = c(b ) = v u v
bu v by 7.2.2

But by (3), x = b also. Hence w

Then, by definition of logarithm, bu v = bw ,


and so by the one-to-oneness of the exponential function (property 7.2.5),

(1 ) c = b u
(2′ ) x = cv u v = w.
(3′ ) x = bw .
Substituting from (1), (2), and (3) gives that

Substituting (1′ ) into (2′ ) and using one of the laws of exponents gives
(logb c)(logc x) = logb x.
And dividing both sides by log c (which is nonzero because c ̸= 1) results in b
logb x

x = cv = (bu )v = bu v 29■
logc x = .
, logb c
by 7.2.2
Example 7.2.7 Computing Logarithms with Base 2 on a Calculator
But by (3), x = b also. Hence w In computer science it is often necessary to compute logarithms with base 2. Most calcu-
lators do not have keys to compute logarithms with base 2 but do have keys to compute
logarithms with base 10 (called common logarithms and often denoted simply log) and

bu v = bw ,
logarithms with base e (called natural logarithms and usually denoted ln). Suppose
your calculator shows that ln 5 ∼= 1.609437912 and ln 2 ∼= 0.6931471806. Use
Theorem 7.2.1(d) to find an approximate value for log2 5.

and so by the one-to-oneness ofSolution


the Byexponential
Theorem 7.2.1(d),
function (property 7.2.5),
ln 5 ∼ 1.609437912 ∼
log2 5 = = = 2.321928095. ■
ln 2 0.6931471806

One-to-One Correspondences
u v = w.
Consider a function F: X → Y that is both one-to-one and onto. Given any element x in
Substituting from (1), (2), and (3)givengives
X , there that
is a unique corresponding element y = F(x) in Y (since F is a function). Also
any element y in Y , there is an element x in X such that F(x) = y (since F is onto)
and there is only one such x (since F is one-to-one). Thus, a function that is one-to-one

(logb c)(logc x) = logb x.


and onto sets up a pairing between the elements of X and the elements of Y that matches

And dividing both sides by logb c (which is nonzero because c ̸ = 1) results in


Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

logb x
logc x = . ■
logb c

Computing Logarithms with Base 2 on a Calculator


In computer science it is often necessary to compute logarithms with base 2. Most calcu-
lators do not have keys to compute logarithms with base 2 but do have keys to compute
logarithms with base 10 (called common logarithms and often denoted simply log) and
logarithms with base e (called natural logarithms and usually denoted ln). Suppose
your calculator shows that ln 5 ∼= 1.609437912 and ln 2 ∼= 0.6931471806. 15Use
Theorem 7.2.1(d) to find an approximate value for log2 5.
Solution By Theorem 7.2.1(d),

You might also like