Discrete Structures Lecture 11

Similar documents
Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α

Functions. mjarrar Watch this lecture and download the slides

Part 4. Integration (with Proofs)

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

6.5 Improper integrals

Foundations of Computer Science Comp109

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Probability. b a b. a b 32.

Section 1.3 Triangles

p-adic Egyptian Fractions

Introduction to Olympiad Inequalities

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours

CS 491G Combinatorial Optimization Lecture Notes

( ) { } [ ] { } [ ) { } ( ] { }

QUADRATIC EQUATION. Contents

For a, b, c, d positive if a b and. ac bd. Reciprocal relations for a and b positive. If a > b then a ab > b. then

T b a(f) [f ] +. P b a(f) = Conclude that if f is in AC then it is the difference of two monotone absolutely continuous functions.

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24

KENDRIYA VIDYALAYA IIT KANPUR HOME ASSIGNMENTS FOR SUMMER VACATIONS CLASS - XII MATHEMATICS (Relations and Functions & Binary Operations)

Lesson 2: The Pythagorean Theorem and Similar Triangles. A Brief Review of the Pythagorean Theorem.

Instructions. An 8.5 x 11 Cheat Sheet may also be used as an aid for this test. MUST be original handwriting.

AP Calculus AB Unit 4 Assessment

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Factorising FACTORISING.

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Non Right Angled Triangles

Linear Algebra Introduction

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

University of Sioux Falls. MAT204/205 Calculus I/II

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version

Lecture 6: Coding theory

Lecture 1 - Introduction and Basic Facts about PDEs

CS 573 Automata Theory and Formal Languages

PAIR OF LINEAR EQUATIONS IN TWO VARIABLES

Can one hear the shape of a drum?

Symmetrical Components 1

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P.

CHENG Chun Chor Litwin The Hong Kong Institute of Education

Coalgebra, Lecture 15: Equations for Deterministic Automata

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Comparing the Pre-image and Image of a Dilation

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4.

Quadratic Forms. Quadratic Forms

NON-DETERMINISTIC FSA

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable

A Study on the Properties of Rational Triangles

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Chapter 8 Roots and Radicals

2.4 Linear Inequalities and Interval Notation

SECTION A STUDENT MATERIAL. Part 1. What and Why.?

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths

Lecture 3: Equivalence Relations

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

Bases for Vector Spaces

The Riemann-Stieltjes Integral

Algebra 2 Semester 1 Practice Final

Ch. 2.3 Counting Sample Points. Cardinality of a Set

K 7. Quadratic Equations. 1. Rewrite these polynomials in the form ax 2 + bx + c = 0. Identify the values of a, b and c:

THE PYTHAGOREAN THEOREM

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix

MA10207B: ANALYSIS SECOND SEMESTER OUTLINE NOTES

Computing data with spreadsheets. Enter the following into the corresponding cells: A1: n B1: triangle C1: sqrt

The Regulated and Riemann Integrals

This enables us to also express rational numbers other than natural numbers, for example:

TOPIC: LINEAR ALGEBRA MATRICES

Polynomials. Polynomials. Curriculum Ready ACMNA:

Logic Synthesis and Verification

Before we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!!

CALCULUS STUDY MATERIAL. B.Sc. MATHEMATICS III SEMESTER UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then.

System Validation (IN4387) November 2, 2012, 14:00-17:00

set is not closed under matrix [ multiplication, ] and does not form a group.

15-451/651: Design & Analysis of Algorithms December 3, 2013 Lecture #28 last changed: November 28, 2013

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

CM10196 Topic 4: Functions and Relations

HS Pre-Algebra Notes Unit 9: Roots, Real Numbers and The Pythagorean Theorem

THE KENNESAW STATE UNIVERSITY HIGH SCHOOL MATHEMATICS COMPETITION PART I MULTIPLE CHOICE NO CALCULATORS 90 MINUTES

List all of the possible rational roots of each equation. Then find all solutions (both real and imaginary) of the equation. 1.

Section 6.1 Definite Integral

Arrow s Impossibility Theorem

Logic, Set Theory and Computability [M. Coppenbarger]

10. AREAS BETWEEN CURVES

Suppose we want to find the area under the parabola and above the x axis, between the lines x = 2 and x = -2.

In right-angled triangles the square on the side subtending the right angle is equal to the squares on the sides containing the right angle.

QUADRATIC EQUATION EXERCISE - 01 CHECK YOUR GRASP

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)}

MATH 409 Advanced Calculus I Lecture 22: Improper Riemann integrals.

Lecture 8: Abstract Algebra

Lesson 1: Quadratic Equations

The graphs of Rational Functions

Nondeterministic Automata vs Deterministic Automata

Trigonometry Revision Sheet Q5 of Paper 2

Transcription:

Introdution Good morning. In this setion we study funtions. A funtion is mpping from one set to nother set or, perhps, from one set to itself. We study the properties of funtions. A mpping my not e funtion. A funtion my or my not e invertile. We wnt ertin funtions to e invertile. For exmple, we wnt funtion tht enrypts messge to e invertile so tht we n derypt the messge. On the other hnd, we wnt our psswords to e impossile to derypt tht is we wnt the funtion tht mps our pssword into inry ode to e not invertile. DEFINITION EXAMPLE 0. Let A nd B e nonempty sets. A funtion f from A to B is n ssignment of extly one element of B to eh element of A. We write ff() = if is the unique element of B ssigned y the funtion f to the element of A. If f is funtion from A to B, we write ff: AA BB. Let AA = {,,, dd, ee}, BB = {0,,,,}, nd ff: AA BB is defined y the reltion RR = {(, 0), (, ), (, ), (dd, )} where (uu, vv) ff(uu) = vv in RR. Thus ff() = 0, ff() =, ff() =, ff(dd) =. Is ff: AA BB funtion? 0 d e Solution: Nope. Funtion ff fils to ssign element ee AA to ny element in BB. Rell, the definition A funtion f from A to B is n ssignment of extly one element of B to eh element of A. Sine ee AA, n element of BB must e ssigned to ee nd no suh ssignment is defined y ff: AA BB.

EXAMPLE 0. Let AA = {,,, dd, ee}, BB = {0,,,,}, nd ff: AA BB is defined y the reltion RR = {(, 0), (, ), (, ), (, ), (dd, ), (ee, 0)} where (uu, vv) ff(uu) = vv in RR. Thus ff() = 0, ff() =, ff() =, ff() =, ff(dd) =, ff(ee) = 0. Is ff: AA BB funtion? 0 d e Solution: Nope. Funtion ff fils to ssign extly one element of BB to element AA. Rell, the definition A funtion f from A to B is n ssignment of extly one element of B to eh element of A. Sine ff() = 0 nd ff() =, ff: AA BB is not funtion. Adms A Chou Goodfriend B C Rodriguez D Stevens F FIGURE Assignment of Grdes in Disrete Mthemtis Clss Remrk: DEFINITION Funtions re sometimes lso lled mppings or trnsformtions. If f is funtion from A to B, we sy tht A is the domin of f nd B is the odomin of f. If ff() =, we sy tht is the imge of nd is preimge of. The rnge of f is the set of ll imges of elements of A. Also, if f is funtion from A to B, we sy tht f mps A to B.

f =f() f A B FIGURE The Funtion ff Mps AA to BB EXAMPLE Wht re the domin, odomin, nd rnge of the funtion tht ssigns grdes to students shown in Figure. Solution: Let G e the funtion tht ssigns grde to student in our disrete mthemtis lss. Note tht GG(AAAAAAAAAA) = AA, for instne. The domin of G is the set {Adms, Chou, Goodfriend, Rodriguez, Stevens}. The odomin is the set {A,B,C,D,F}. The rnge is the set {AA, BB, CC, FF} euse eh grde exept D is ssigned to some student. EXAMPLE Let R e the reltion onsisting of ordered pirs (Adul, ), (Brend, ), (Crl, ), (Desire, ), (Eddie, ), nd (Felii, ), where eh pir onsists of grdute student nd the ge of this student. Wht is the funtion tht this reltion determines? Solution: The reltion defines the funtion f s given elow. f(adul)= f(brend)= f(crl)= f(desire)= f(eddie)= f(felii)= The domin of f is the set {Adul, Brend, Crl, Desire, Eddie, Felii} A odomin of f is the set of positive integers. The rnge of f is the set {,,}

EXAMPLE Let ff e the funtion tht ssigns the lst two its of it string of length or greter to tht string. For exmple, ff(00) = 0. Wht re the domin, odomin, nd rnge of ff? Solution: The domin of ff is the set of ll strings of length or greter. The odomin ff is the set {00,0,0,}. The rnge of ff is the sme s the odomin of ff, nmely the set {00,0,0,}. EXAMPLE Let ff: Z Z ssign the squre of n integer to this integer. Further define f nd identify the domin, odomin, nd the rnge of f. Solution ff(xx) = xx The domin of f is Z, the set of ll integers. The odomin of ff is Z, the set of ll integers. The rnge of f is the set of ll integers tht re perfet squres nmely, {0,,, 9, } DEFINITION Let ff nd ff e funtions from A to R. Then ff + ff nd ff ff re lso funtions from A to R defined y (ff + ff )(xx) = ff (xx) + ff (xx) (ff ff )(xx) = ff (xx)ff (xx) EXAMPLE 6 Let ff nd ff e funtions from R to R suh tht ff (xx) = xx nd ff (xx) = xx xx. Wht re the funtions ff + ff nd ff ff? Solution (ff + ff )(xx) = ff (xx) + ff (xx) = xx + (xx xx ) = xx (ff ff )(xx) = ff (xx)ff (xx) = xx (xx xx ) = xx xx DEFINITION Remrk: Let f e funtion from the set A to the set B nd let S e suset of A. The imge of S under the funtion f is the suset of B tht onsists of the imges of S. We denote the imge of S y ff(ss), so ff(ss) = tt ss SS tt = ff(ss). We lso use the shorthnd {ff(ss) ss SS} to denote this set. The nottion ff(ss) for the imge of the set S under the funtion f is potentilly miguous. Here, ff(ss) denotes set, nd not the vlue of the funtion f for the set S. EXAMPLE 7 Let AA = {,,, dd, ee} nd BB = {,,,} withff() =, ff() =, ff() =, ff(dd) =, nd ff(ee) =. Wht is the imge of the suset SS = {,, dd}? Solution: The imge of S under the funtion f is the set ff(ss) = {,}.

One-to-one nd Onto Funtions DEFINITION 5 A funtion f is sid to e one-to-one, or n injuntion, if nd only if ff() = ff() implies tht = for ll nd in the domin of f. A funtion is sid to e injetive if it is one-to-one. EXAMPLE 8 Determine whether the funtion f from {,,, dd} to{,,,,5} with ff() =, ff() = 5, ff() =, nd ff(dd) = is one-to-one. Solution: The funtion f is one-to-one euse f tkes on different vlues t the four elements of its domin. This is illustrted in Figure. d 5 FIGURE A One-to-One Funtion EXAMPLE 9 EXAMPLE 0 EXAMPLE DEFINITION 6 Remrk: Determine whether the funtion ff(xx) = xx from the set of integers to the set of integers is one-to-one. Solution: The funtion ff(xx) = xx is not one-to-one euse, for instne, ff() = ff( ) =, ut. Determine whether the funtion ff(xx) = xx + from the set of rel numers to itself is one-to-one. Solution: The funtion ff(xx) = xx + is one-to-one funtion. To demonstrte this, note tht xx + yy + when xx yy. Suppose tht eh worker in group of employees is ssigned jo from set of possile jos, eh to e done y single worker. In this sitution, the funtion ff tht ssigns jo to eh worker is one-to-one. To see this, note tht if xx nd yy re two different workers, then ff(xx) ff(yy) euse the two workers xx nd yy must e ssigned different jos. A funtion f whose domin nd odomin re susets of the set of rel numers is lled inresing if ff(xx) ff(yy), nd stritly inresing if ff(xx) < ff(yy), whenever xx < yy nd x nd y re in the domin of f. Similrly, f is lled deresing if ff(xx) ff(yy), nd stritly deresing if ff(xx) > ff(yy), whenever xx < yy nd x nd y re in the domin of f. (The word stritly in this definition indites strit inequlity.) A funtion tht is either stritly inresing or stritly deresing is gurnteed to e one-to-one. 5

Remrk: DEFINITION 7 A funtion ff is inresing if xx yy(xx < yy ff(xx) ff(yy). A funtion ff is stritly inresing if xx yy(xx < yy ff(xx) < ff(yy). A funtion ff is deresing if xx yy(xx < yy ff(xx) ff(yy). A funtion ff is stritly deresing if xx yy(xx < yy ff(xx) > ff(yy). A funtion f from A to B is lled onto, or surjetion, if nd only if for every element BB there is n element AA with ff() =. A funtion f is lled surjetive if it is onto. FIGURE 5 () One-to-one, not onto d FIGURE 5 () Onto, not one-to-one d FIGURE 5 () One-to-one nd onto d FIGURE 5 (d) Neither one-to-one nor onto FIGURE 5 (e) Not funtion 6

EXAMPLE Let ff e the funtion from {,,, dd} to {,,} defined y ff() =, ff() =, ff() =, nd ff(dd) =. Is ff n onto funtion? Solution: Beuse ll three elements of the odomin re imges of elements in the domin, we see tht ff is onto. This is illustrted in the figure elow. Note tht if the odomin were {,,,}, then ff would not e onto. d ff: n onto funtion EXAMPLE EXAMPLE EXAMPLE 5 Is the funtion ff(xx) = xx from the set of integers to the set of integers onto? Solution: The funtion ff is not onto euse there is no integer xx with xx =. Is the funtion ff(xx) = xx + from the set of integers to the set of integers onto? Solution: The funtion is onto, euse for every integer yy there is n integer xx suh tht ff(xx) = yy. To see this, note tht ff(xx) = yy if nd only if xx + = yy, whih holds if nd only if xx = yy. Consider the funtion ff in Exmple tht ssigns jos to workers. The funtion ff is onto if for every jo there is worker ssigned to this jo. The funtion ff is not onto when there is t lest one jo tht hs no worker ssigned to it. DEFINITION 8 The funtion f is one-to-one orrespondene, or ijetion, if it is oth one-to-one nd onto. 7

EXAMPLE 6 Let ff e the funtion from {,,, dd} to {,,,} with ff() =, ff() =, ff() =, nd ff(dd) =. Is ff ijetion? Solution: The funtion f is one-to-one nd onto. It is one-to-one euse no two vlues in the domin re ssigned the sme funtion vlue. It is onto euse ll four elements of the odomin re imges of elements in the domin. Hene, ff is ijetion. d We see grphil representtion of ff in the digrm ove. A funtion is one-to-one nd onto if it n e inverted. The funtion n e inverted if ll of the direted edges n e reversed nd ll of the elements in the odomin re mpped y the reversed direted edges to individul elements in the domin. d EXAMPLE 7 Let AA e set, the identity funtion on AA is the funtion ii AA : AA AA, where ii AA (xx) = xx for ll xx AA. In other words, the identity funtion ii AA is the funtion tht ssigns eh element to itself. The funtion ii AA is one-to-one nd onto, so it is ijetion. 8

Suppose tht ff: AA BB. To show tht f is injetive (one-to-one) Show tht if ff(xx) = ff(yy) for ritrry xx, yy AA with xx yy, then xx = yy. To show tht f is not injetive Find prtiulr elements xx, yy AA suh tht xx yy nd ff(xx) = ff(yy). To show tht f is surjetive (onto) Consider n ritrry element yy BB nd find n element xx AA suh tht ff(xx) = yy. To show tht f is not surjetive Find prtiulr yy BB suh tht ff(xx) yy for ll xx AA. Inverse Funtions nd Compositions of Funtions DEFINITION 9 Let f e one-to-one orrespondene from the set A to the set B. The inverse funtion of f is the funtion tht ssigns to n element elonging to B the unique element in A suh tht ff() =. The inverse funtion is denoted y ff. Hene, ff () = when ff() =. f() - =f () A f -() =f() f B f - FIGURE 6 The Funtion ff Is the Inverse of Funtion ff. EXAMPLE 8 Let ff e the funtion for {,, } to {,,} suh tht ff() =, ff() =, nd ff() =. Is ff invertile, nd if it is, wht is its inverse? Solution: The funtion ff is invertile euse it is one-to-one orrespondene. The inverse funtion ff reverses the orrespondene so ff () =, ff () =, ndff () =. EXAMPLE 9 Let ff: Z Z e suh tht ff(xx) = xx +. Is ff invertile, nd if it is, wht is the inverse? Solution: The funtion f hs n inverse euse it is one-to-one orrespondene, s hs een shown previously. To reverse the orrespondene, suppose tht y is the imge of x, so tht yy = xx +. Then xx = yy. This mens tht yy is the unique element of Z tht is sent to y y f. onsequently, ff (yy) = yy. 9

EXAMPLE 0 EXAMPLE Let f e the funtion from R to R with ff(xx) = xx. Is f invertile? Solution: Beuse ff() = ff( ) =, f is not one-to-one. If n inverse funtion were defined it would hve to ssign two elements to. Hene, f is not invertile. Show tht if we restrit the funtion ff(xx) = xx to the set of nonnegtive rel numers. Is f in exmple 0 to funtion from the set of ll nonnegtive rel numers to the set of ll nonnegtive rel numers, then ff is invertile. Solution: One-to-one: The funtion ff(xx) = xx from the set of nonnegtive rel numers to the set of nonnegtive rel numers is one-to-one. To see this, note tht if ff(xx) = ff(yy), then xx = yy, so xx yy = 0. xx yy n e ftored to (xx + yy)(xx yy) = 0. This mens tht xx + yy = 0 or xx yy = 0, so xx = yy or xx = yy. Beuse oth xx nd yy re nonnegtive, we must hve xx = yy. So, this funtion is one-to-one. Onto: Furthermore, ff(xx) = xx is onto when the odomin is the set of ll nonnegtive rel numers, euse eh nonnegtive rel numer hs squre root. Tht is, if yy is nonnegtive rel numer, there exists nonnegtive rel numer xx suh tht xx = yy, whih mens tht xx = yy. Invertile: Beuse the funtion ff(xx) = xx from the set of nonnegtive rel numers to the set of nonnegtive rel numers is one-to-one nd onto, it is invertile. Its inverse is given y the rule ff (yy) = yy. DEFINITION 0 Let g e funtion from the set A to the set B nd let f e funtion from the set B to the set C. The omposition of the funtions f nd g, denoted for ll AA y ff gg, is defined y (ff gg)() = ff(gg()) 0

( f g)( ) g() f(g()) f g A B C f g FIGURE 7 The Composition of the Funtions ff nd gg. EXAMPLE Let g e the funtion from the set {,, } to itself suh tht gg() =, gg() =, nd gg() =. Let f e the funtion from the set {,, } to the set {,,} suh tht ff() =, ff() =, nd ff() =. Wht is the omposition of ff nd gg, nd wht is the omposition of g nd f? Solution: The omposition ff gg is defined y (ff gg)() = ff gg() = ff() =, (ff gg)() = ff gg() = ff() =, nd (ff gg)() = ff gg() = ff() = EXAMPLE Let f nd g e the funtions from the set of integers to the set of integers defined y ff(xx) = xx + nd gg(xx) = xx +. Wht is the omposition of ff nd gg? Wht is the omposition of g nd f? Solution: Both the ompositions ff gg nd gg ff re defined. Moreover, (ff gg)(xx) = ff gg(xx) = ff(xx + ) = (xx + ) + = 6xx + 7 nd (gg ff)(xx) = gg ff(xx) = gg(xx + ) = (xx + ) + = 6xx + Remrk: Note tht even though ff gg nd gg ff re defined for funtions f nd g in Exmple, ff gg nd gg ff re not equl. In other words, the ommuttive lw does not hold for the omposition of funtions.

Inverse Funtions: When the omposition of funtion nd its inverse is formed, in either order, n identity funtion is otined. To see this, suppose tht f is one-to-one orrespondene from the set A to the set B. Then the inverse funtion ff exists nd is one-to-one orrespondene from B to A. the inverse funtion reverses the orrespondene of the originl funtion, so ff () = when ff() =, nd ff() = when ff () =. Hene, (ff ff)() = ff ff() = ff () =, nd (ff ff )() = ff ff () = ff() =. The Grphs of Funtions DEFINITION EXAMPLE Let ff e funtion from the set AA to the set BB. The grph of the funtion ff is the set of ordered pirs {(, ) AA nd ff() = }. Disply the grph of the funtion ff(nn) = nn + from the set of integers to the set of integers. Solution: The grph of ff is the set of ordered pirs of the form (nn, nn + ), where nn is n integer. The grph is displyed in Figure 8. FIGURE 8 The Grph of ff(nn) = + from Z to Z. EXAMPLE 5 Disply the grph of the funtion ff(xx) = xx from the set of integers to the set of integers. Solution: The grph of ff is the set of ordered pirs of the form (xx, ff(xx) = (xx, xx ), where xx is n integer. The grph is displyed in Figure 9.

(-,9) (,9) (-,) (,) (,) (0,0) FIGURE 9 The Grph of ff(xx) = xx from Z to Z. Some Importnt Funtions DEFINITION The floor funtion ssigns to the rel numer xx the lrgest integer tht is less thn or equl to xx. The vlue of the floor funtion t xx is denoted y xx. The eiling funtion ssigns to the rel numer xx the smllest integer tht is greter thn or equl to xx. The vlue of the eiling funtion t xx is denoted y xx.

- - - - - - - - FIGURE 0 () Grph of the Floor Funtion

- - - - - - - - FIGURE 0 () Grph of the Ceiling Funtion EXAMPLE 6 These re some vlues of the floor nd eiling funtions: = 0, =, =, = 0,. =,. =, 7 = 7, 7 = 7 5

EXAMPLE 7 Dt stored on omputer disk or trnsmitted over dt network re usully represented s string of ytes. Eh yte is mde up of 8 its. How mny ytes re required to enode 00 its of dt? Solution: To determine the numer of ytes needed, we determine the smllest integer tht is t lest s lrge s the quotient when 00 is divided y 8, the numer of its in yte. Consequently, 00 8 =.5 = ytes re required. 6

. Why is ff not funtion from R to R? Solution: Prt Funtion Explntion ) ff(xx) = xx The expression xx is meningless for xx = 0, whih is one of the elements in the domin; thus the rule is no rule t ll. In other words, f (0) is not defined. ) ff(xx) = xx The funtion ff(xx) does not mp vlues to the rel numers when xx < 0. In other words, when xx < 0, ff(xx) is undefined. ) ff(xx) = ± (xx + ) The rule for ff is miguous. We must hve ff(xx) defined uniquely, ut here there re two vlues ssoited with every xx, the positive squre root nd the negtive squre root of xx +. 7. Find the domin nd rnge of these funtions. Solution: Prt Funtion Domin Rnge ) the funtion tht ssigns to eh pir of Z + Z + Z + positive integers the mximum of these two integers. ) the funtion tht ssigns to eh positive Z + {xx N 00 xx 99} integer the numer of the digits 0,,,,, 5, 6, 7, 8, 9 tht do not pper s deiml digits of the integer ) the funtion tht ssigns to it string (00 ) N the numer of times the lok ppers d) the funtion tht ssigns to it string the numeril position of the first in the string nd tht ssigns the vlue 0 to it string onsisting of ll 0s. (00 ) N 7

5. Determine whether ff: Z Z is onto if Solution: Rell the definition of onto. DEFINITION 7 A funtion f from A to B is lled onto, or surjetive, if nd only if for every element BB there is n element AA with ff() =. A funtion f is lled surjetion if it is onto. Prt Funtion Onto Explntion ) ff(mm, nn) = mm + nn Yes Given ny integer nn, we hveff(0, nn) = nn, so the funtion is onto. ) ff(mm, nn) = mm + nn No Clerly the rnge ontins no negtive integers, so the funtion is not onto. ) ff(mm, nn) = mm Yes Given ny integer mm, we hve ff(mm, 5) = mm, so the funtion is onto. (We ould hve used ny onstnt in ple of 5 in this rgument.) d) ff(mm, nn) = nn No Clerly the rnge ontins no negtive integers, so the funtion is not onto. e) ff(mm, nn) = mm nn Yes Given ny integer mm, we hveff(mm, 0) = mm, so the funtion is onto.. Determine whether eh of these funtions is ijetion from R to R. Solution: If we n find n inverse, the funtion is ijetion. Otherwise we must explin why the funtion is not one-to-one or not onto. Prt Funtion Bijetion Inverse or Explntion ) ff(xx) = xx + Yes One wy to determine whether funtion is ijetion, is to try to onstrut its inverse. Solve yy = + for xx, otining gg(yy) = yy Alterntively, we n rgue diretly. To show tht the funtion is one-to-one, not tht if + = xx +, then xx = xx. To show tht the funtion is onto, not tht yy + = yy, so every numer is in the rnge. ) ff(xx) = xx + No Not one-to-one: ff() = ff( ) = Not onto, sine ff(xx). ) ff(xx) = xx Yes Yes, this funtion is ijetion, sine it hs n inverse funtion ff(yy) = yy (otined y solving yy = xx for xx). d) ff(xx) = (xx + ) (xx + ) No Not one-to-one: ff() = ff( ) = Not onto euse the rnge is the set {yy R 00. 55 yy < } 8