Functions Definition a Function F from a to B Is a Relation from a to B Such That

Total Page:16

File Type:pdf, Size:1020Kb

Functions Definition a Function F from a to B Is a Relation from a to B Such That Functions Definition A function f from A to B is a relation from A to B such that: (i) Dom(f) = A, and (ii) If (x,y) ∈ f and (x,z) ∈ f then y = z. If A = B, we say that f is a function on A. In terms of ordered pairs, (i) and (ii) say that every element of A appears as a first coordinate in one and only one ordered pair. If f is a function and (x,y) ∈ f then we will write y = f(x). Since f is the name of a relation we could write x f y, but absolutely no one ever writes that. More Terminology Functions are also called mappings. We usually write f: A → B read as "f maps A to B" The set B is called the codomain of f. Recall that the range of f, Rng(f) is the set of second coordinates of the relation f. So, Rng(f) ⊆ B, but they need not be equal. Example: Consider f : {1,2,3} → {a,b,c,d,e} given by f = {(1,a), (2,b), (3,c)} f is a function, Rng(f) = {a,b,c}, Codomain of f = {a,b,c,d,e}, Dom (f) = {1,2,3}, f(1) = a, f(2) = b and f(3) = c. More Examples Consider: f : {1,2,3,4} → {a,b,c,d,e} given by f = {(1,a), (2,b), (3,c)} This is not a function since Dom(f) ≠ A. Consider: f : {1,2,3} → {a,b,c,d,e} given by f = {(1,a), (2,b), (3,c), (1,e)} This is not a function since 1 appears as a first coordinate in more than one ordered pair. More Terminology If f: A → B is a function and f(x) = y we say that: y is the value of f at x; y is the image of x under f; x is the pre-image of y under f; x is an argument of f. Notice that f(x) is the image of x under f, it is NOT the name of the function, f is the name of the function. It is an abuse of the language to call f(x) a function, although many people do. Functions Notice that each argument of a function has exactly one image, but an element of the codomain may have several pre-images or none at all. Given a function f: A → B we may write f = {(x, f(x)) | x ∈ A }. This underscores the notion that a function is a set ... however, we don't often think of functions that way. Typically, we specify a function by giving a "rule" for computing the image of an arbitrary argument such as: f(x) = 2x -3 where x ∈ ℤ. Note that giving the "rule" by itself does not define a function, you must also specify the domain ( x ∈ ℤ in the above example). Real-Valued Functions A real-valued function is a function whose codomain is ℝ. A real-valued function of a real variable is a function whose codomain is R and whose domain is a subset of ℝ. Real-valued functions of a real variable are so common in some branches of mathematics that we have a special convention concerning them: If the domain of a function is not specified, it is assumed to be a real-valued function of a real variable whose domain is the largest set of real numbers for which the "rule" produces a real value. Real-Valued Functions Examples: f(x) = 5x2 -2x + ½ by convention is a function f : ℝ ℝ. x2−2 x3 f x= x1 x−5 by convention is a function f :ℝ−{−1,5}ℝ. f x= x2−4 by convention is a function f :ℝ−{−2,2}ℝ. Equality of Functions Since functions are sets of ordered pairs, we already know what it means for two functions to be equal, since we know what it means for two sets to be equal and we know what it means for two ordered pairs to be equal. But we shall restate this in the function terminology: Two functions f and g are equal iff (a) Dom(f) = Dom(g), and (b) ∀ x ∈ Dom(f), f(x) = g(x). Examples x2−1 for x≠1 f x={ x−1 } and g x=x1 2 for x=1 are the same function, but f(x) = 2x and g(x) = 2x for x ∈ ℤ are not the same function. Inverses and Compositions Since functions are special types of relations, the definitions of inverses and compositions of relations applies to them. However, the definitions of inverses and compositions do not guarantee that the inverse or composition of functions will be a function. For instance, the function given by f(x) = x2 contains the ordered pairs (1, 1), (-1, 1), (2, 4), (-2, 4) , ... etc. The inverse would contain (1,1), (1,-1), (4,2), (4,-2), ... etc. and it is not a function (but it still is a relation). Only under special conditions, which we shall see later, will the inverse of a function be a function. Composition of Functions Recall that if f: A → B and g: B → C are functions then g⊙ f = {(x,z) | ∃ y ∈ B so that (x,y) ∈ f and (y,z) ∈ g }. Using our functional notation we can rewrite this as: g⊙ f = {(x,z) | ∃ y ∈ B so that f(x) = y and g(y) = z }. Now, because f is a function, for each x ∈ A, there is a y ∈ B (and only one) so that f(x) = y and because g is a function, there will be a z ∈ C (again, only one) so that g(y) = z. So, we can go further and write: g⊙ f (x) = z = g(y), where y = f(x) or even more compactly: g⊙ f (x) = g(f(x)) . The formula above is the reason for choosing the "backwards" notation for composition. Composition of Functions Theorem: If f: A → B and g: B → C are functions then g⊙ f : A → C is a function. Pf: We already know that g⊙ f is a relation between A and C. Suppose that (x,y) ∈ g⊙ f and (x,z) ∈ g⊙ f . We then have y = g⊙ f (x) = g(f(x)) and z = g⊙ f (x) = g(f(x)). Since g is a function y = z. Dom(g⊙ f ) ⊆ A by the definition of composition. Suppose a ∈ A. Since f is a function, Dom(f) = A and f(a) ∈ B. Because g is a function and Dom(g) = B, g(f(a)) exists in C. Thus, a ∈ Dom(g⊙ f ) so A ⊆ Dom(g⊙ f ). We now have Dom(g⊙ f ) = A, so g⊙ f is a function. Restrictions If f: A → B is a function and D ⊆ A, we can define a new function, the restriction of f to D, denoted by f | , by keeping only the D ordered pairs of f which have their first coordinate in D. The domain of the restriction of f to D is D. It is clear that the restriction of a function is also a function. Surjections We know that for a function f: A → B, the range of f need not be the same as the codomain. Definition: A function f: A → B is onto B iff Rng(f) = B. Such functions are referred to as onto functions or surjections. Note that the common English word "onto" has a technical mathematical meaning. One should be careful when using this word in any mathematical context. Also, realize that you can not tell if a function is onto unless you know the codomain. The range can be calculated, but generally you have to be told what the codomain is. Examples Let f: ℤℤ be given by f(x) = x2. This function is not onto since, for instance, 6 in the codomain is not in the range of f. For this function, the Rng(f) consists only of squares, and the codomain ℤ also contains non-squares. Let f: ℝ [0, ∞) be given by f(x) = x2. This function is a surjection because Rng(f) = [0, ∞). That is, every non-negative real number is the square of a real number. More precisely, if real number c ≥ 0 is the square of √c, which is a real number, i.e., f(√c) = c. Proving a Function is Onto Suppose that f: A → B is a function that we wish to prove is a surjection. Since we always have Rng(f) ⊆ B, we need to prove B ⊆ Rng(f). That is we need to show that (∀ b) ( b ∈ B ⇒ b ∈ Rng(f)). To show that b ∈ Rng(f), we have to find an x in Dom(f) = A so that f(x) = b. Example: Show that the function given by f(x) = 2x + 3 is onto. By convention, the codomain of this function is ℝ and the domain is also ℝ. Let z ∈ ℝ be an arbitrary element of the codomain. We seek an x in the domain, so that f(x) = z, i.e., 2x + 3 = z. Solving for x we get x = ½(z – 3). Now this x is a real number if z is a real number, so is in the domain of f and f(½(z – 3)) = z. So f is onto. Proving a Function is Not Onto Suppose that f: A → B is a function that we wish to prove is not a surjection. We usually show that a function is not onto by providing a counterexample, i.e., an element of the codomain which is not in the range of the function.
Recommended publications
  • Basic Structures: Sets, Functions, Sequences, and Sums 2-2
    CHAPTER Basic Structures: Sets, Functions, 2 Sequences, and Sums 2.1 Sets uch of discrete mathematics is devoted to the study of discrete structures, used to represent discrete objects. Many important discrete structures are built using sets, which 2.2 Set Operations M are collections of objects. Among the discrete structures built from sets are combinations, 2.3 Functions unordered collections of objects used extensively in counting; relations, sets of ordered pairs that represent relationships between objects; graphs, sets of vertices and edges that connect 2.4 Sequences and vertices; and finite state machines, used to model computing machines. These are some of the Summations topics we will study in later chapters. The concept of a function is extremely important in discrete mathematics. A function assigns to each element of a set exactly one element of a set. Functions play important roles throughout discrete mathematics. They are used to represent the computational complexity of algorithms, to study the size of sets, to count objects, and in a myriad of other ways. Useful structures such as sequences and strings are special types of functions. In this chapter, we will introduce the notion of a sequence, which represents ordered lists of elements. We will introduce some important types of sequences, and we will address the problem of identifying a pattern for the terms of a sequence from its first few terms. Using the notion of a sequence, we will define what it means for a set to be countable, namely, that we can list all the elements of the set in a sequence.
    [Show full text]
  • Domain and Range of a Function
    4.1 Domain and Range of a Function How can you fi nd the domain and range of STATES a function? STANDARDS MA.8.A.1.1 MA.8.A.1.5 1 ACTIVITY: The Domain and Range of a Function Work with a partner. The table shows the number of adult and child tickets sold for a school concert. Input Number of Adult Tickets, x 01234 Output Number of Child Tickets, y 86420 The variables x and y are related by the linear equation 4x + 2y = 16. a. Write the equation in function form by solving for y. b. The domain of a function is the set of all input values. Find the domain of the function. Domain = Why is x = 5 not in the domain of the function? 1 Why is x = — not in the domain of the function? 2 c. The range of a function is the set of all output values. Find the range of the function. Range = d. Functions can be described in many ways. ● by an equation ● by an input-output table y 9 ● in words 8 ● by a graph 7 6 ● as a set of ordered pairs 5 4 Use the graph to write the function 3 as a set of ordered pairs. 2 1 , , ( , ) ( , ) 0 09321 45 876 x ( , ) , ( , ) , ( , ) 148 Chapter 4 Functions 2 ACTIVITY: Finding Domains and Ranges Work with a partner. ● Copy and complete each input-output table. ● Find the domain and range of the function represented by the table. 1 a. y = −3x + 4 b. y = — x − 6 2 x −2 −10 1 2 x 01234 y y c.
    [Show full text]
  • Adaptive Lower Bound for Testing Monotonicity on the Line
    Adaptive Lower Bound for Testing Monotonicity on the Line Aleksandrs Belovs∗ Abstract In the property testing model, the task is to distinguish objects possessing some property from the objects that are far from it. One of such properties is monotonicity, when the objects are functions from one poset to another. This is an active area of research. In this paper we study query complexity of ε-testing monotonicity of a function f :[n] → [r]. All our lower bounds are for adaptive two-sided testers. log r • We prove a nearly tight lower bound for this problem in terms of r. TheboundisΩ log log r when ε =1/2. No previous satisfactory lower bound in terms of r was known. • We completely characterise query complexity of this problem in terms of n for smaller values of ε. The complexity is Θ ε−1 log(εn) . Apart from giving the lower bound, this improves on the best known upper bound. Finally, we give an alternative proof of the Ω(ε−1d log n−ε−1 log ε−1) lower bound for testing monotonicity on the hypergrid [n]d due to Chakrabarty and Seshadhri (RANDOM’13). 1 Introduction The framework of property testing was formulated by Rubinfeld and Sudan [19] and Goldreich et al. [16]. A property testing problem is specified by a property P, which is a class of functions mapping some finite set D into some finite set R, and proximity parameter ε, which is a real number between 0 and 1. An ε-tester is a bounded-error randomised query algorithm which, given oracle access to a function f : D → R, distinguishes between the case when f belongs to P and the case when f is ε-far from P.
    [Show full text]
  • Basic Concepts of Set Theory, Functions and Relations 1. Basic
    Ling 310, adapted from UMass Ling 409, Partee lecture notes March 1, 2006 p. 1 Basic Concepts of Set Theory, Functions and Relations 1. Basic Concepts of Set Theory........................................................................................................................1 1.1. Sets and elements ...................................................................................................................................1 1.2. Specification of sets ...............................................................................................................................2 1.3. Identity and cardinality ..........................................................................................................................3 1.4. Subsets ...................................................................................................................................................4 1.5. Power sets .............................................................................................................................................4 1.6. Operations on sets: union, intersection...................................................................................................4 1.7 More operations on sets: difference, complement...................................................................................5 1.8. Set-theoretic equalities ...........................................................................................................................5 Chapter 2. Relations and Functions ..................................................................................................................6
    [Show full text]
  • Enumeration of Finite Automata 1 Z(A) = 1
    INFOI~MATION AND CONTROL 10, 499-508 (1967) Enumeration of Finite Automata 1 FRANK HARARY AND ED PALMER Department of Mathematics, University of Michigan, Ann Arbor, Michigan Harary ( 1960, 1964), in a survey of 27 unsolved problems in graphical enumeration, asked for the number of different finite automata. Re- cently, Harrison (1965) solved this problem, but without considering automata with initial and final states. With the aid of the Power Group Enumeration Theorem (Harary and Palmer, 1965, 1966) the entire problem can be handled routinely. The method involves a confrontation of several different operations on permutation groups. To set the stage, we enumerate ordered pairs of functions with respect to the product of two power groups. Finite automata are then concisely defined as certain ordered pah's of functions. We review the enumeration of automata in the natural setting of the power group, and then extend this result to enumerate automata with initial and terminal states. I. ENUMERATION THEOREM For completeness we require a number of definitions, which are now given. Let A be a permutation group of order m = ]A I and degree d acting on the set X = Ix1, x~, -.. , xa}. The cycle index of A, denoted Z(A), is defined as follows. Let jk(a) be the number of cycles of length k in the disjoint cycle decomposition of any permutation a in A. Let al, a2, ... , aa be variables. Then the cycle index, which is a poly- nomial in the variables a~, is given by d Z(A) = 1_ ~ H ~,~(°~ . (1) ~$ a EA k=l We sometimes write Z(A; al, as, ..
    [Show full text]
  • Module 1 Lecture Notes
    Module 1 Lecture Notes Contents 1.1 Identifying Functions.............................1 1.2 Algebraically Determining the Domain of a Function..........4 1.3 Evaluating Functions.............................6 1.4 Function Operations..............................7 1.5 The Difference Quotient...........................9 1.6 Applications of Function Operations.................... 10 1.7 Determining the Domain and Range of a Function Graphically.... 12 1.8 Reading the Graph of a Function...................... 14 1.1 Identifying Functions In previous classes, you should have studied a variety basic functions. For example, 1 p f(x) = 3x − 5; g(x) = 2x2 − 1; h(x) = ; j(x) = 5x + 2 x − 5 We will begin this course by studying functions and their properties. As the course progresses, we will study inverse, composite, exponential, logarithmic, polynomial and rational functions. Math 111 Module 1 Lecture Notes Definition 1: A relation is a correspondence between two variables. A relation can be ex- pressed through a set of ordered pairs, a graph, a table, or an equation. A set containing ordered pairs (x; y) defines y as a function of x if and only if no two ordered pairs in the set have the same x-coordinate. In other words, every input maps to exactly one output. We write y = f(x) and say \y is a function of x." For the function defined by y = f(x), • x is the independent variable (also known as the input) • y is the dependent variable (also known as the output) • f is the function name Example 1: Determine whether or not each of the following represents a function. Table 1.1 Chicken Name Egg Color Emma Turquoise Hazel Light Brown George(ia) Chocolate Brown Isabella White Yvonne Light Brown (a) The set of ordered pairs of the form (chicken name, egg color) shown in Table 1.1.
    [Show full text]
  • Formal Construction of a Set Theory in Coq
    Saarland University Faculty of Natural Sciences and Technology I Department of Computer Science Masters Thesis Formal Construction of a Set Theory in Coq submitted by Jonas Kaiser on November 23, 2012 Supervisor Prof. Dr. Gert Smolka Advisor Dr. Chad E. Brown Reviewers Prof. Dr. Gert Smolka Dr. Chad E. Brown Eidesstattliche Erklarung¨ Ich erklare¨ hiermit an Eides Statt, dass ich die vorliegende Arbeit selbststandig¨ verfasst und keine anderen als die angegebenen Quellen und Hilfsmittel verwendet habe. Statement in Lieu of an Oath I hereby confirm that I have written this thesis on my own and that I have not used any other media or materials than the ones referred to in this thesis. Einverstandniserkl¨ arung¨ Ich bin damit einverstanden, dass meine (bestandene) Arbeit in beiden Versionen in die Bibliothek der Informatik aufgenommen und damit vero¨ffentlicht wird. Declaration of Consent I agree to make both versions of my thesis (with a passing grade) accessible to the public by having them added to the library of the Computer Science Department. Saarbrucken,¨ (Datum/Date) (Unterschrift/Signature) iii Acknowledgements First of all I would like to express my sincerest gratitude towards my advisor, Chad Brown, who supported me throughout this work. His extensive knowledge and insights opened my eyes to the beauty of axiomatic set theory and foundational mathematics. We spent many hours discussing the minute details of the various constructions and he taught me the importance of mathematical rigour. Equally important was the support of my supervisor, Prof. Smolka, who first introduced me to the topic and was there whenever a question arose.
    [Show full text]
  • A Denotational Semantics Approach to Functional and Logic Programming
    A Denotational Semantics Approach to Functional and Logic Programming TR89-030 August, 1989 Frank S.K. Silbermann The University of North Carolina at Chapel Hill Department of Computer Science CB#3175, Sitterson Hall Chapel Hill, NC 27599-3175 UNC is an Equal OpportunityjAfflrmative Action Institution. A Denotational Semantics Approach to Functional and Logic Programming by FrankS. K. Silbermann A dissertation submitted to the faculty of the University of North Carolina at Chapel Hill in par­ tial fulfillment of the requirements for the degree of Doctor of Philosophy in Computer Science. Chapel Hill 1989 @1989 Frank S. K. Silbermann ALL RIGHTS RESERVED 11 FRANK STEVEN KENT SILBERMANN. A Denotational Semantics Approach to Functional and Logic Programming (Under the direction of Bharat Jayaraman.) ABSTRACT This dissertation addresses the problem of incorporating into lazy higher-order functional programming the relational programming capability of Horn logic. The language design is based on set abstraction, a feature whose denotational semantics has until now not been rigorously defined. A novel approach is taken in constructing an operational semantics directly from the denotational description. The main results of this dissertation are: (i) Relative set abstraction can combine lazy higher-order functional program­ ming with not only first-order Horn logic, but also with a useful subset of higher­ order Horn logic. Sets, as well as functions, can be treated as first-class objects. (ii) Angelic powerdomains provide the semantic foundation for relative set ab­ straction. (iii) The computation rule appropriate for this language is a modified parallel­ outermost, rather than the more familiar left-most rule. (iv) Optimizations incorporating ideas from narrowing and resolution greatly improve the efficiency of the interpreter, while maintaining correctness.
    [Show full text]
  • The Domain of Solutions to Differential Equations
    connect to college success™ The Domain of Solutions To Differential Equations Larry Riddle available on apcentral.collegeboard.com connect to college success™ www.collegeboard.com The College Board: Connecting Students to College Success The College Board is a not-for-profit membership association whose mission is to connect students to college success and opportunity. Founded in 1900, the association is composed of more than 4,700 schools, colleges, universities, and other educational organizations. Each year, the College Board serves over three and a half million students and their parents, 23,000 high schools, and 3,500 colleges through major programs and services in college admissions, guidance, assessment, financial aid, enrollment, and teaching and learning. Among its best-known programs are the SAT®, the PSAT/NMSQT®, and the Advanced Placement Program® (AP®). The College Board is committed to the principles of excellence and equity, and that commitment is embodied in all of its programs, services, activities, and concerns. Equity Policy Statement The College Board and the Advanced Placement Program encourage teachers, AP Coordinators, and school administrators to make equitable access a guiding principle for their AP programs. The College Board is committed to the principle that all students deserve an opportunity to participate in rigorous and academically challenging courses and programs. All students who are willing to accept the challenge of a rigorous academic curriculum should be considered for admission to AP courses. The Board encourages the elimination of barriers that restrict access to AP courses for students from ethnic, racial, and socioeconomic groups that have been traditionally underrepresented in the AP Program.
    [Show full text]
  • Domain and Range of an Inverse Function
    Lesson 28 Domain and Range of an Inverse Function As stated in the previous lesson, when changing from a function to its inverse the inputs and outputs of the original function are switched. This is because when we find an inverse function, we are taking some original function and solving for its input 푥; so what used to be the input becomes the output, and what used to be the output becomes the input. −11 푓(푥) = Given to the left are the steps 1 + 3푥 to find the inverse of the −ퟏퟏ original function 푓. These 풇 = steps illustrates the changing ퟏ + ퟑ풙 of the inputs and the outputs (ퟏ + ퟑ풙) ∙ 풇 = −ퟏퟏ when going from a function to its inverse. We start out 풇 + ퟑ풙풇 = −ퟏퟏ with 푓 (the output) isolated and 푥 (the input) as part of ퟑ풙풇 = −ퟏퟏ − 풇 the expression, and we end up with 푥 isolated and 푓 as −ퟏퟏ − 풇 the input of the expression. 풙 = ퟑ풇 Keep in mind that once 푥 is isolated, we have basically −11 − 푥 푓−1(푥) = found the inverse function. 3푥 Since the inputs and outputs of a function are switched when going from the original function to its inverse, this means that the domain of the original function 푓 is the range of its inverse function 푓−1. This also means that the range of the original function 푓 is the domain of its inverse function 푓−1. In this lesson we will review how to find an inverse function (as shown above), and we will also review how to find the domain of a function (which we covered in Lesson 18).
    [Show full text]
  • Equivalents to the Axiom of Choice and Their Uses A
    EQUIVALENTS TO THE AXIOM OF CHOICE AND THEIR USES A Thesis Presented to The Faculty of the Department of Mathematics California State University, Los Angeles In Partial Fulfillment of the Requirements for the Degree Master of Science in Mathematics By James Szufu Yang c 2015 James Szufu Yang ALL RIGHTS RESERVED ii The thesis of James Szufu Yang is approved. Mike Krebs, Ph.D. Kristin Webster, Ph.D. Michael Hoffman, Ph.D., Committee Chair Grant Fraser, Ph.D., Department Chair California State University, Los Angeles June 2015 iii ABSTRACT Equivalents to the Axiom of Choice and Their Uses By James Szufu Yang In set theory, the Axiom of Choice (AC) was formulated in 1904 by Ernst Zermelo. It is an addition to the older Zermelo-Fraenkel (ZF) set theory. We call it Zermelo-Fraenkel set theory with the Axiom of Choice and abbreviate it as ZFC. This paper starts with an introduction to the foundations of ZFC set the- ory, which includes the Zermelo-Fraenkel axioms, partially ordered sets (posets), the Cartesian product, the Axiom of Choice, and their related proofs. It then intro- duces several equivalent forms of the Axiom of Choice and proves that they are all equivalent. In the end, equivalents to the Axiom of Choice are used to prove a few fundamental theorems in set theory, linear analysis, and abstract algebra. This paper is concluded by a brief review of the work in it, followed by a few points of interest for further study in mathematics and/or set theory. iv ACKNOWLEDGMENTS Between the two department requirements to complete a master's degree in mathematics − the comprehensive exams and a thesis, I really wanted to experience doing a research and writing a serious academic paper.
    [Show full text]
  • Math 101 B-Packet
    Math 101 B-Packet Scott Rome Winter 2012-13 1 Redefining functions This quarter we have defined a function as a rule which assigns exactly one output to each input, and so far we have been happy with this definition. Unfortunately, this way of thinking of a function is insufficient as things become more complicated in mathematics. For a better understanding of a function, we will first need to define it better. Definition 1.1. Let X; Y be any sets. A function f : X ! Y is a rule which assigns every element of X to an element of Y . The sets X and Y are called the domain and codomain of f respectively. x f(x) y Figure 1: This function f : X ! Y maps x 7! f(x). The green circle indicates the range of the function. Notice y is in the codomain, but f does not map to it. Remark 1.2. It is necessary to define the rule, the domain, and the codomain to define a function. Thus far in the class, we have been \sloppy" when working with functions. Remark 1.3. Notice how in the definition, the function is defined by three things: the rule, the domain, and the codomain. That means you can define functions that seem to be the same, but are actually different as we will see. The domain of a function can be thought of as the set of all inputs (that is, everything in the domain will be mapped somewhere by the function). On the other hand, the codomain of a function is the set of all possible outputs, and a function may not necessarily map to every element of the codomain.
    [Show full text]