Functions. mjarrar Watch this lecture and download the slides

Similar documents
Discrete Structures Lecture 11

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

QUADRATIC EQUATION. Contents

Section 1.3 Triangles

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

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.

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Part 4. Integration (with Proofs)

12.4 Similarity in Right Triangles

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx

Comparing the Pre-image and Image of a Dilation

Exercise 3 Logic Control

Logarithms LOGARITHMS.

Logic Synthesis and Verification

Foundations of Computer Science Comp109

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

Relations Introduc3on to Rela3ons. 8.2 Proper3es of Rela3ons 8.3 Equivalence Rela3ons. mjarrar Watch this lecture and download the slides

Coalgebra, Lecture 15: Equations for Deterministic Automata

Hyers-Ulam stability of Pielou logistic difference equation

Linear Algebra Introduction

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

Lecture 6: Coding theory

Final Exam Review. [Top Bottom]dx =

arxiv: v1 [math.ca] 21 Aug 2018

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

A Study on the Properties of Rational Triangles

Pre-Lie algebras, rooted trees and related algebraic structures

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL:

3 Angle Geometry. 3.1 Measuring Angles. 1. Using a protractor, measure the marked angles.

Probability. b a b. a b 32.

38 Riemann sums and existence of the definite integral.

THE PYTHAGOREAN THEOREM

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

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

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.

CS 573 Automata Theory and Formal Languages

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

The graphs of Rational Functions

Applications of Definite Integral

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

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.

VECTOR ALGEBRA. Syllabus :

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

Reference : Croft & Davison, Chapter 12, Blocks 1,2. A matrix ti is a rectangular array or block of numbers usually enclosed in brackets.

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

Can one hear the shape of a drum?

On Implicative and Strong Implicative Filters of Lattice Wajsberg Algebras

Figure 1. The left-handed and right-handed trefoils

UNIT 31 Angles and Symmetry: Data Sheets

QUADRATIC EQUATION EXERCISE - 01 CHECK YOUR GRASP

CHENG Chun Chor Litwin The Hong Kong Institute of Education

Algorithm Design and Analysis

AP Calculus AB Unit 4 Assessment

Non Right Angled Triangles

1.3 SCALARS AND VECTORS

PAIR OF LINEAR EQUATIONS IN TWO VARIABLES

MATHEMATICS AND STATISTICS 1.6

MATH Final Review

Solutions to Assignment 1

Lecture 1 - Introduction and Basic Facts about PDEs

Symmetrical Components 1

p-adic Egyptian Fractions

PROPERTIES OF TRIANGLES

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

The Ellipse. is larger than the other.

y z A left-handed system can be rotated to look like the following. z

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

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

Nondeterministic Finite Automata

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

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233,

Unit-VII: Linear Algebra-I. To show what are the matrices, why they are useful, how they are classified as various types and how they are solved.

Behavior Composition in the Presence of Failure

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

Review of Gaussian Quadrature method

Applications of Definite Integral

(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.

ILLUSTRATING THE EXTENSION OF A SPECIAL PROPERTY OF CUBIC POLYNOMIALS TO NTH DEGREE POLYNOMIALS

m m m m m m m m P m P m ( ) m m P( ) ( ). The o-ordinte of the point P( ) dividing the line segment joining the two points ( ) nd ( ) eternll in the r

Expectation and Variance

Lecture 2: Cayley Graphs

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

m A 1 1 A ! and AC 6

Ch. 2.3 Counting Sample Points. Cardinality of a Set

Introduction to Olympiad Inequalities

Lesson 2.1 Inductive Reasoning

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

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

LESSON 11: TRIANGLE FORMULAE

REVIEW Chapter 1 The Real Number System

Section 2.3. Matrix Inverses

Algorithm Design and Analysis

CM10196 Topic 4: Functions and Relations

ON LEFT(RIGHT) SEMI-REGULAR AND g-reguar po-semigroups. Sang Keun Lee

Deriving (9.21) in Walsh (1998)

Bisimulation, Games & Hennessy Milner logic

Read section 3.3, 3.4 Announcements:

Vectors. a Write down the vector AB as a column vector ( x y ). A (3, 2) x point C such that BC = 3. . Go to a OA = a

SPH3UW Unit 7.5 Snell s Law Page 1 of Total Internal Reflection occurs when the incoming refraction angle is

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

Transcription:

9/6/7 Mustf Jrrr: Leture Notes in Disrete Mthemtis. Birzeit University Plestine 05 Funtions 7.. Introdution to Funtions 7. One-to-One Onto Inverse funtions mjrrr 05 Wth this leture nd downlod the slides Course Pge: http://www.jrrr.info/ourses/dmth/ More Online Courses t: http://www.jrrr.info Aknowledgement: This leture is sed on (ut not limited to) to hpter 5 in Disrete Mthemtis with Applitions y Susnn S. Epp (rd Edition).

9/6/7 Mustf Jrrr: Leture Notes in Disrete Mthemtis. Birzeit University Plestine 05 Funtions 7. Introdution to Funtions In this leture: qprt : Wht is funtion qprt : Equlity of Funtions qprt : Exmples of Funtions qprt : Cheking Well Defined Funtions Motivtion Mny issues in life n e mthemtized nd used s funtions: Div(x) mod(x). FtherOf(x) TruthTle (x) In this leture we fous on disrete funtions

9/6/7 Wht is Funtion أبناء Domin اباء Co-domin X f Y x x x x SonOf y y y y y 5 علاقة بین عنصرین كل عنصر في المجال یجب ان یكون لھ صورة واحدة في المجال المقابل. لا یوجد عنصر في المجال لا یوجد لھ صورة في المجال المقابل A funtion Figure is 7.. reltion from X the domin to Y the odomin tht stisfies properties: ) Every element is relted to some element in Y; ) No element in X is relted to more thn one element in Y 5 Definition Funtion Definition A funtion f from set X to set Y denoted f : X Y is reltion from X the domin to Y the o-domin tht stisfies two properties: () every element in X is relted to some element in Y nd()noelementinx is relted to more thn one element in Y.Thusgivennyelementx in X thereisuniqueelementiny tht is relted to x y f.ifwellthiselementy thenwesytht f sends x to y or f mps x to y ndwritex f y or f : x y.theuniqueelementtowhih f sends x is denoted f(x) nd is lled f of x or the output of f for the input x or the vlue of f t x or the imge of x under f. The set of ll vlues of f tken together is lled the rnge of f or the imge of X under f.symolilly rnge of f = imge of X under f = {y Y y = f (x) forsomex in X}. Given n element y in Y theremyexistelementsinx with y s their imge. If f (x) = y thenx is lled preimgeofy or n inverse imge of y. Thesetofll inverse imges of y is lled the inverse imge of y. Symolilly the inverse imge of y ={x X f (x) = y}. 6

9/6/7 Exmple Let X = { } nd Y = {}. Define funtion f from X to Y X f Y Figure 7... Write the domin nd o-domin of f.. Find f () f () nd f ().. Wht is the rnge of f? d. Is n inverse imge of? Is n inverse imge of? e. Find the inverse imges of nd. f. Represent f s set of ordered pirs. 7 Exmple Whih re funtions? () () () Figure 7.. 8

9/6/7 Exmple Whih re funtions? () () () Figure 7.. () is not sent to ny element in of Y () The element isn t sent to unique element of Y () Funtion 9 Mustf Jrrr: Leture Notes in Disrete Mthemtis. Birzeit University Plestine 05 Funtions 7. Introdution to Funtions In this leture: qprt : Wht is funtion qprt : Equlity of Funtions qprt : Exmples of Funtions qprt : Cheking Well Defined Funtions 0 5

9/6/7 Equlity of Funtions Theorem 7.. A Test for Funtion Equlity If F: X Y nd G: X Y re funtions then F = G if nd only if F(x) = G(x) for ll x X. Exmple: Let J = {0 } nd define funtions f nd g from J to J s follows: For ll x in J f(x) = (x + x + ) mod nd g(x) = (x + ) mod. Does f = g? Equl funtions Equlity of Funtions Theorem 7.. A Test for Funtion Equlity If F: X Y nd G: X Y re funtions then F = G if nd only if F(x) = G(x) for ll x X. Exmple: Let F: R R nd G: R R e funtions. Define new funtions F + G: R R nd G + F: R R s follows: For ll x R (F + G)(x) = F(x) + G(x) nd (G + F)(x) = G(x) + F(x). Does F + G = G + F? (F + G)(x) = F(x) + G(x) y definition of F + G = G(x) + F(x) y the ommuttive lw for ddition of rel numers = (G + F)(x) y definition of G + F Hene F + G = G + F. 6

9/6/7 Mustf Jrrr: Leture Notes in Disrete Mthemtis. Birzeit University Plestine 05 Funtions 7. Introdution to Funtions In this leture: qprt : Wht is funtion qprt : Equlity of Funtions qprt : Exmples of Funtions qprt : Cheking Well Defined Funtions Exmples of Funtions Identity Funtion Funtion tht lwys hve the input is the sme s the outputs re lled identity funtions Identity funtion send eh element of X to the element tht is identil to it. I X (x) = x for ll x in X. Exmples of identity funtions? 7

9/6/7 Exmples of Funtions Sequenes An infinite sequene is funtion defined on set of integers tht re greter thn or equl to prtiulr integer. E.g. Define the following sequene s funtion from the set of positive integers to the set of rel numers ()n ' 5 n + 5 Exmples of Funtions Funtion Defined on Power Set Drw n rrow digrm for F s follows: om Setion 5. tht 9(A) F: -({ }) -* Znonneg F(X) = the numer of elements in X. ({ }) Z nonneg {} {} {} { } { } { } { } 0 5 6 8

9/6/7 Exmples of Funtions Crtesin produt M is the multiplition funtion tht sends eh pir of rel numers to the produt of the two. R is the refletion funtion tht sends eh point in the plne tht orresponds to pir of rel numers to the mirror imge of the point ross the vertil xis. 7 g: S à Z Exmples of Funtions String Funtions g(s) = the numer of 's in s. Find the following.. g(). g(). g() d. g() 8 9

( ) 9/6/7 Exmples of Funtions Logrithmi funtions Definition Logrithms nd Logrithmi Funtions Let e positive rel numer with =. For eh positive rel numer x the logrithm with se of x written log x is the exponent to whih must e rised to otin x. Symolilly log x = y y = x. The logrithmi funtion with se is the funtion from R + to R tht tkes eh positive rel numer x to log x. log 9 = euse = 9. log (/) = - euse - = ½. log 0 () = 0 euse 0 0 =. log ( m ) = m euse the exponent to whih must e rised to otin m is m. log m = m euse log m is the exponent to whih must e rised to otin m. 9 Definition Exmples of Funtions Boolen Funtions An (n-ple) Boolen funtion f is funtion whose domin is the set of ll ordered n-tuples of 0 s nd s nd whose o-domin is the set {0 }. Moreformllythe domin of Boolen funtion n e desried s the Crtesin produt of n opies of the set {0 } { whihisdenoted{0 } } n.thus f :{0 } n {0 }. Input Output P Q R S 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 () ( ) ( 0) ( 0 ) ( 0 0) (0 ) (0 0) (0 0 ) (0 0 0) () 0 0 0

9/6/7 Mustf Jrrr: Leture Notes in Disrete Mthemtis. Birzeit University Plestine 05 Funtions 7. Introdution to Funtions In this leture: qprt : Wht is funtion qprt : Equlity of Funtions qprt : Exmples of Funtions qprt : Cheking Well Defined Funtions Well-defined Funtions Cheking Whether Funtion Is Well Defined A funtion is not well defined if it fils to stisfy t lest one of the requirements of eing funtion Exmple: Define funtion f : R R y speifying tht for ll rel numers x f(x) is the rel numer y suh tht x +y =. There re two resons why this funtion is not well defined: For lmost ll vlues of x either () there is no y tht stisfies the given eqution or () there re two different vlues of y tht stisfy the eqution Consider when x= Consider when x=0

9/6/7 Well-defined Funtions Cheking Whether Funtion Is Well Defined Rell tht f : Q Z defines this formul: f ( m ) = m for ll integers m nd n withn = 0. n Is f well defined funtion? No Exmple: Well-defined Funtions Cheking Whether Funtion or not Y= BortherOf(x) Y= Prent Of(x) Y= SonOf(x) Y= FtherOf(x) Y= Wife Of(x)...