Section 2.3 Functions. Definition: Let A and B be sets. A function (mapping, map) f from A to B, denoted f :A B, is a subset of A B such that

Similar documents
10.2 Graph Terminology and Special Types of Graphs

COMMON FRACTIONS. or a / b = a b. , a is called the numerator, and b is called the denominator.

Lecture 12 : Topological Spaces

1.1. Interval Notation and Set Notation Essential Question When is it convenient to use set-builder notation to represent a set of numbers?

Lecture 8: Graph-theoretic problems (again)

CS 241 Week 4 Tutorial Solutions

1.5 Extrema and the Mean Value Theorem

Bayesian Networks: Directed Markov Properties (Cont d) and Markov Equivalent DAGs

Chapter 4 Fuzzy Graph and Relation

MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

Solids. Solids. Curriculum Ready.

Greedy Algorithm. Algorithm Fall Semester

Introduction to Algebra

3. parallel: (b) and (c); perpendicular (a) and (b), (a) and (c)

CMPUT101 Introduction to Computing - Summer 2002

Area & Volume. Chapter 6.1 & 6.2 September 25, y = 1! x 2. Back to Area:

Chapter 9. Greedy Technique. Copyright 2007 Pearson Addison-Wesley. All rights reserved.

EXPONENTIAL & POWER GRAPHS

The Fundamental Theorem of Calculus

Dr. D.M. Akbar Hussain

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

Definition of Regular Expression

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

ZZ - Advanced Math Review 2017

Functions 2/1/2017. Exercises. Exercises. Exercises. and the following mathematical appetizer is about. Functions. Functions

Questions About Numbers. Number Systems and Arithmetic. Introduction to Binary Numbers. Negative Numbers?

Can Pythagoras Swim?

V = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V)

Suffix trees, suffix arrays, BWT

CS 340, Fall 2016 Sep 29th Exam 1 Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string.

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation

Class Overview. Database Design. Database Design Process. Database Design. Introduction to Data Management CSE 414

and vertically shrinked by

FEEDBACK: The standard error of a regression is not an unbiased estimator for the standard deviation of the error in a multiple regression model.

a(e, x) = x. Diagrammatically, this is encoded as the following commutative diagrams / X

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

Section 1.6. Inverse Functions

Subtracting Fractions

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών

GENG2140 Modelling and Computer Analysis for Engineers

3. Determine whether f is a function from the set of all bit strings to the set of integers if

Pipeline Example: Cycle 1. Pipeline Example: Cycle 2. Pipeline Example: Cycle 4. Pipeline Example: Cycle 3. 3 instructions. 3 instructions.

MATH 25 CLASS 5 NOTES, SEP

s1 s2 d B (F/D.IR.RS1 == D/X.IR.RD) (F/D.IR.RS2 == D/X.IR.RD) (F/D.IR.RS1 == X/M.IR.RD) (F/D.IR.RS2 == X/M.IR.RD) = 1 = 1

Functions. Edexcel GCE. Core Mathematics C3

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards

COMP 423 lecture 11 Jan. 28, 2008

Unit 5 Vocabulary. A function is a special relationship where each input has a single output.

Section 3.1: Sequences and Series

50 AMC LECTURES Lecture 2 Analytic Geometry Distance and Lines. can be calculated by the following formula:

Union-Find Problem. Using Arrays And Chains. A Set As A Tree. Result Of A Find Operation

Final Exam Review F 06 M 236 Be sure to look over all of your tests, as well as over the activities you did in the activity book

Math 142, Exam 1 Information.

SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES

10.5 Graphing Quadratic Functions

PROBLEM OF APOLLONIUS

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών. Lecture 3b Lexical Analysis Elias Athanasopoulos

Compilers. Chapter 4: Syntactic Analyser. 3 er course Spring Term. Precedence grammars. Precedence grammars

Lecture 7: Integration Techniques

Introduction to Integration

Ray surface intersections

MATH 2530: WORKSHEET 7. x 2 y dz dy dx =

12/9/14. CS151 Fall 20124Lecture (almost there) 12/6. Graphs. Seven Bridges of Königsberg. Leonard Euler

Rational Numbers---Adding Fractions With Like Denominators.

Compilers Spring 2013 PRACTICE Midterm Exam

Lists in Lisp and Scheme

EECS 281: Homework #4 Due: Thursday, October 7, 2004

1.5 Part - 2 Inverse Relations and Inverse Functions

Distance vector protocol

Table-driven look-ahead lexical analysis

Hyperbolas. Definition of Hyperbola

Lesson 4.4. Euler Circuits and Paths. Explore This

Theory of Computation CSE 105

x )Scales are the reciprocal of each other. e

Functions. How is this definition written in symbolic logic notation?

Information Retrieval and Organisation

box Boxes and Arrows 3 true 7.59 'X' An object is drawn as a box that contains its data members, for example:

The Greedy Method. The Greedy Method

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

Stained Glass Design. Teaching Goals:

6.045J/18.400J: Automata, Computability and Complexity. Quiz 2: Solutions. Please write your name in the upper corner of each page.

CSc 453 Compilers and Systems Software. 6 : Top-Down Parsing I

Answer Key Lesson 6: Workshop: Angles and Lines

Introducing fractions

Graph theory Route problems

5 ANGLES AND POLYGONS

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1):

CS201 Discussion 10 DRAWTREE + TRIES

UTMC APPLICATION NOTE UT1553B BCRT TO INTERFACE PSEUDO-DUAL-PORT RAM ARCHITECTURE INTRODUCTION ARBITRATION DETAILS DESIGN SELECTIONS

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork

Containers: Queue and List

Bruce McCarl's GAMS Newsletter Number 37

Here is an example where angles with a common arm and vertex overlap. Name all the obtuse angles adjacent to

Double Integrals. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Double Integrals

Duality in linear interval equations

COMPUTER SCIENCE 123. Foundations of Computer Science. 6. Tuples

2 Computing all Intersections of a Set of Segments Line Segment Intersection

Transcription:

Setion 2.3 Funtions Definition: Let n e sets. funtion (mpping, mp) f from to, enote f :, is suset of suh tht x[x y[y < x, y > f ]] n [< x, y 1 > f < x, y 2 > f ] y 1 = y 2 Note: f ssoites with eh x in one n only one y in. If f(x) = y is lle the omin n is lle the oomin. y is lle the imge of x uner f x is lle preimge of y (note there my e more thn one preimge of y ut there is only one imge of x). The rnge of f is the set of ll imges of points in uner f. We enote it y f(). Prepre y: Dvi F. Mllister TP 1 1999, 2007 MGrw-Hill

If S is suset of then Exmple: f(s) = {f(s) s in S}. Z f() = Z the imge of is Z the omin of f is = {,,, } the oomin is = {,, Z} f() = {, Z} the preimge of is the preimges of Z re, n f({,}) = {Z} Prepre y: Dvi F. Mllister TP 2 1999, 2007 MGrw-Hill

Injetions, Surjetions n ijetions Let f e funtion from to. Definition: f is one-to-one (enote 1-1) or injetive if preimges re unique. Note: this mens tht if then f() f(). Definition: f is onto or surjetive if every y in hs preimge. Note: this mens tht for every y in there must e n x in suh tht f(x) = y. Definition: f is ijetive if it is surjetive n injetive (one-to-one n onto). Exmples: The previous Exmple funtion is neither n injetion nor surjetion. Hene it is not ijetion. Z Surjetion ut not n injetion Prepre y: Dvi F. Mllister TP 3 1999, 2007 MGrw-Hill

V W Z Injetion ut not surjetion V W Surjetion n n injetion, hene ijetion Note: Whenever there is ijetion from to, the two sets must hve the sme numer of elements or the sme rinlity. Tht will eome our efinition, espeilly for infinite sets. Prepre y: Dvi F. Mllister TP 4 1999, 2007 MGrw-Hill

Exmples: Let = = R, the rels. Determine whih re injetions, surjetions, ijetions: f(x) = x, f(x) = x2, f(x) = x3, f(x) = x + sin(x), f(x) = x Let E e the set of even integers {0, 2, 4, 6,....}. Then there is ijetion f from N to E, the even nonnegtive integers, efine y f(x) = 2x. Hene, the set of even integers hs the sme rinlity s the set of nturl numers. OH, NO! IT CN T E...E IS ONL HLF S IG!!! Sorry! It gets worse efore it gets etter. Prepre y: Dvi F. Mllister TP 5 1999, 2007 MGrw-Hill

Inverse Funtions Definition: Let f e ijetion from to. Then the inverse of f, enote f-1, is the funtion from to efine s Exmple: f-1(y) = x iff f(x) = y Let f e efine y the igrm: f V W f -1 V W Note: No inverse exists unless f is ijetion. Prepre y: Dvi F. Mllister TP 6 1999, 2007 MGrw-Hill

Definition: Let S e suset of. Then f-1(s) = {x f(x) S} Note: f nee not e ijetion for this efinition to hol. Exmple: Let f e the following funtion: Z f -1 ({Z}) = {, } f -1 ({, }) = {, } Prepre y: Dvi F. Mllister TP 7 1999, 2007 MGrw-Hill

Composition Definition: Let f: C, g:. The omposition of f with g, enote f og, is the funtion from to C efine y Exmples: f og(x) = f(g(x)) g V W f C h i j fοg C h i j If f(x) = x2 n g(x) = 2x + 1, then f(g(x)) = (2x+1)2 n g(f(x)) = 2x2 + 1 Prepre y: Dvi F. Mllister TP 8 1999, 2007 MGrw-Hill

Definition: The floor funtion, enote f (x) = x or f(x) = floor(x), is the lrgest integer less thn or equl to x. The eiling funtion, enote f (x) = x or f(x) = eiling(x), is the smllest integer greter thn or equl to x. Exmples: 3.5 = 3, 3.5 = 4. Note: the floor funtion is equivlent to truntion for positive numers. Exmple: Suppose f: C, g: n f og is injetive. Wht n we sy out f n g? We know tht if then f(g()) f(g()) sine the omposition is injetive. Prepre y: Dvi F. Mllister TP 9 1999, 2007 MGrw-Hill

Sine f is funtion, it nnot e the se tht g() = g() sine then f woul hve two ifferent imges for the sme point. Hene, g() g() It follows tht g must e n injetion. However, f nee not e n injetion (you show). Prepre y: Dvi F. Mllister TP 10 1999, 2007 MGrw-Hill