Domain and Range of Functions

Total Page:16

File Type:pdf, Size:1020Kb

Domain and Range of Functions Lecture 2: Domain and range of functions Victoria LEBED, [email protected] MA1S11A: Calculus with Applications for Scientists October 3, 2017 Yesterday we saw examples of functions X defined on certain parts of the real line R only—e.g., the square root x √x, defined for x > 0; 7→ X defined by dierent formulas on dierent parts of R—e.g., the absolute value x |x|: 7→ x,x > 0, |x| = −x, x < 0. These parts are typically intervals, rays, and various combinations thereof. Today we will X learn how to handle these intervals, rays, etc. mathematically (this will be our tools), X discuss how to determine for which values of the independent variable a function is defined, and what values it takes (this is where we will apply our tools). 1 Reminder: intervals [a, b] stands for the closed interval consisting of all x for which a 6 x 6 b. Mathematically, this can be wrien in a very eicient way: [a, b]= { x R | a 6 x 6 b }. ∈ Read: [a, b] is the set of all real values x such that a 6 x 6 b holds. A more “human” reading: [a, b] is the set of all real x between a and b. Similarly, the open interval (a, b) is defined by (a, b)= { x R | a<x<b }. ∈ You might meet an alternative notation ]a, b[ for the open interval (a, b). Half-closed intervals: [a, b) = { x R | a 6 x<b }, ∈ (a, b] = { x R | a<x 6 b }. ∈ 2 Reminder: rays An open end of an interval may assume infinite values, in which case an interval becomes a ray: for example, [a, + )= { x R | a 6 x }, ∈ is closed ray, while (− ∞,b)= { x R | x<b }, ∈ is an open ray. ∞ (− , + ) is a symbol notation for the whole real line R. Intervals and rays are the simplest parts of R. More complicated parts are obtained∞ ∞ from these “building blocks” using operations: intersection, union, dierence. 3 Operations on intervals: example Alice and Bob are flatmates. Yesterday Alice was at home from 6am to midday, and Bob from 1am to 7am. estion 1. When were both of them at home? Solution. Consider the intervals A = [6, 12], and B = [1, 7]. The question asks to compute the intersection of these time intervals: A B = [6, 12] [1, 7] = [6, 7]. ∩ ∩ So, Alice and Bob were both at home from 6am to 7am. estion 2. When was at least one of them at home? Solution. We need to compute the union of our time intervals: A B = [6, 12] [1, 7] = [1, 12]. ∪ ∪ 3 Operations on intervals: example Alice and Bob are flatmates. Yesterday Alice was at home from 6am to midday, and Bob from 1am to 7am. estion 3. When was none one of them at home? Solution. We will use one more interval D = [0, 24], encoding the whole day (yesterday). We need to compute the dierence of time intervals: D \ (A B) = [0, 24] \ [1, 12] = [0, 1] [12, 24]. ∪ ∪ Unlike in the two first questions, we obtained a part of R which is disconnected, and thus is neither an interval nor a ray. These are the more complicated parts of R referred to above. 4 Operations on intervals: definitions Let A and B be two parts of R (e.g., intervals or rays). The intersection of A and B consists of those points that belong to both A and B: A B = { x R | x A and x B }. ∩ ∈ ∈ ∈ The union of A and B consists of those points that belong either to A or else to B: A B = { x R | x A or x B }. ∪ ∈ ∈ ∈ B This includes points belonging to both A and B. In maths, “or” is inclusive! The dierence of A and B consists of those points that belong to A but not to B: A\B = { x R | x A and x / B }. ∈ ∈ ∈ Remark. Similar definitions work for any sets. 5 Domain of a function The square root function x √x is an example of a function which is only 7→ defined for some values of the independent variable x, in this case for x > 0. Another example is the function x 1/x, in which case all values of x 7→ except for x = 0 are allowed. Definition. The domain of a function f consists of all values of x for which the value f(x) is defined. For a function defined by a table, its domain consists of numbers in the first row: x 1 1.5 2 2.5 3 3.5 4 y 0 1.25 3 5.25 8 11.25 15 5 Domain of a function For a function defined by a graph, its domain consists of the values for which the corresponding vertical line meets the graph: y 3 2 1 x −3 −2 −1 1 2 3 −1 −2 −3 In other words, the domain is the projection of the graph on the x-axis. estion. What is the domain of the function defined by the graph above? Answer. [−1.5, 1.5]. 6 Natural domain of a function With the expressions like √x or 1/x, we saw how the domain of a function may be restricted by a formula from which we compute its values. Definition. The natural domain of a function f defined by a formula consists of all values of x for which f(x) has a well defined real value. Example 1. The natural domain of f(x)= x3 consists of all real numbers (− , ), since for each real x its cube is a well defined real number. ∞ ∞ 7 Natural domain: examples 1 Example 2. The natural domain of f(x)= (x−1)(x−3) consists of all real numbers except for x = 1 and x = 3, since for those numbers division by zero occurs. One can write the answer as either { x R | x = 1 and x = 3 }, ∈ 6 6 or, using the union operation, (− , 1) (1, 3) (3, + ). ∪ ∪ ∞ ∞sin x Example 3. The natural domain of f(x)= tan x = cos x consists of all numbers except for those where cos x = 0. The cosine vanishes precisely at odd multiples of π/2, so the natural domain of tan is { x R | x = π/2, 3π/2, 5π/2, . } ∈ 6 ± ± ± = . (−3π/2, −π/2) (−π/2, π/2) (π/2, 3π/2) (3π/2, 5π/2) .... ∪ ∪ ∪ ∪ ∪ 7 Natural domain: examples Example 4. The natural domain of f(x)= √x2 − 5x + 6 consists of all numbers x for which x2 − 5x + 6 > 0 (in order for the square root to assume a real value). Since x2 − 5x + 6 = (x − 2)(x − 3) (we use the 5 √52−4 6 1 formula for roots of a quadratic equation, x = ± 2 · · ), we would like to find x for which (x − 2)(x − 3) > 0. 7 y 6 5 4 3 2 1 x −−11 1 2 3 4 Thus, the natural domain of f is (− , 2] [3, + ). ∪ ∞ ∞ 7 Natural domain: examples 2 Example 5. The natural domain of f(x)= x −5x+6 consists of all x = 2 x−2 6 since the only reason for the value of f to be undefined in this case is where division by zero occurs. However, since x2 − 5x + 6 = (x − 2)(x − 3), algebraically this expression can be simplified to x − 3. The laer expression is defined for x = 2 as well. B When performing algebraic operations, it is important to keep track of original domains! In this particular case we must write f(x)= x − 3 for x = 2 6 (and f(x) is undefined for x = 2). Thus we do not lose information on the original domain. y 2 1 x −−11 12345bc −2 −3 −4 8 Natural domain: algorithm Aer all the examples above, the following algorithm for describing the natural domain of a basic function defined by a formula should appear intuitive to you: 1) Whenever you see an expression of type pg(x) (or 2npg(x) with n N), ∈ determine all x for which g(x) > 0. h(x) 2) Whenever you see an expression of type g(x) , determine all x for which g(x) = 0. 6 sin(x) cos(x) B Beware of the functions tan(x)= cos(x) and cot(x)= sin(x) , which are implicit fractions! 3) Determine the intersection of all the parts of R obtained in the previous points. 9 Range of a function Let us look at the two functions we already examined when talking about domains: f(x)= 1/x and f(x)= √x. What values do those functions assume for the values of x ranging over their natural domains? The first function f(x)= 1/x assumes all nonzero values. Indeed, to aain the value v = 0, we should just observe that 1/(1/v)= v. 6 The second function f(x)= √x assumes all nonnegative values. Indeed, to aain the value v > 0, we should just observe that for such values we have √v2 = v. Definition. The range of a function f consists of all values f(x) it assumes when x ranges over its domain. For a function defined by a table, its range consists of numbers in the second row: x 1 1.5 2 2.5 3 3.5 4 y 0 1.25 3 5.25 8 11.25 15 9 Range of a function Definition. The range of a function f consists of all values f(x) it assumes when x ranges over its domain.
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]
  • 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]
  • The Church-Turing Thesis in Quantum and Classical Computing∗
    The Church-Turing thesis in quantum and classical computing∗ Petrus Potgietery 31 October 2002 Abstract The Church-Turing thesis is examined in historical context and a survey is made of current claims to have surpassed its restrictions using quantum computing | thereby calling into question the basis of the accepted solutions to the Entscheidungsproblem and Hilbert's tenth problem. 1 Formal computability The need for a formal definition of algorithm or computation became clear to the scientific community of the early twentieth century due mainly to two problems of Hilbert: the Entscheidungsproblem|can an algorithm be found that, given a statement • in first-order logic (for example Peano arithmetic), determines whether it is true in all models of a theory; and Hilbert's tenth problem|does there exist an algorithm which, given a Diophan- • tine equation, determines whether is has any integer solutions? The Entscheidungsproblem, or decision problem, can be traced back to Leibniz and was successfully and independently solved in the mid-1930s by Alonzo Church [Church, 1936] and Alan Turing [Turing, 1935]. Church defined an algorithm to be identical to that of a function computable by his Lambda Calculus. Turing, in turn, first identified an algorithm to be identical with a recursive function and later with a function computed by what is now known as a Turing machine1. It was later shown that the class of the recursive functions, Turing machines, and the Lambda Calculus define the same class of functions. The remarkable equivalence of these three definitions of disparate origin quite strongly supported the idea of this as an adequate definition of computability and the Entscheidungsproblem is generally considered to be solved.
    [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]
  • Turing Machines
    Syllabus R09 Regulation FORMAL LANGUAGES & AUTOMATA THEORY Jaya Krishna, M.Tech, Asst. Prof. UNIT-VII TURING MACHINES Introduction Until now we have been interested primarily in simple classes of languages and the ways that they can be used for relatively constrainted problems, such as analyzing protocols, searching text, or parsing programs. We begin with an informal argument, using an assumed knowledge of C programming, to show that there are specific problems we cannot solve using a computer. These problems are called “undecidable”. We then introduce a respected formalism for computers called the Turing machine. While a Turing machine looks nothing like a PC, and would be grossly inefficient should some startup company decide to manufacture and sell them, the Turing machine long has been recognized as an accurate model for what any physical computing device is capable of doing. TURING MACHINE: The purpose of the theory of undecidable problems is not only to establish the existence of such problems – an intellectually exciting idea in its own right – but to provide guidance to programmers about what they might or might not be able to accomplish through programming. The theory has great impact when we discuss the problems that are decidable, may require large amount of time to solve them. These problems are called “intractable problems” tend to present greater difficulty to the programmer and system designer than do the undecidable problems. We need tools that will allow us to prove everyday questions undecidable or intractable. As a result we need to rebuild our theory of undecidability, based not on programs in C or another language, but based on a very simple model of a computer called the Turing machine.
    [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]
  • First-Order Logic
    Chapter 5 First-Order Logic 5.1 INTRODUCTION In propositional logic, it is not possible to express assertions about elements of a structure. The weak expressive power of propositional logic accounts for its relative mathematical simplicity, but it is a very severe limitation, and it is desirable to have more expressive logics. First-order logic is a considerably richer logic than propositional logic, but yet enjoys many nice mathemati- cal properties. In particular, there are finitary proof systems complete with respect to the semantics. In first-order logic, assertions about elements of structures can be ex- pressed. Technically, this is achieved by allowing the propositional symbols to have arguments ranging over elements of structures. For convenience, we also allow symbols denoting functions and constants. Our study of first-order logic will parallel the study of propositional logic conducted in Chapter 3. First, the syntax of first-order logic will be defined. The syntax is given by an inductive definition. Next, the semantics of first- order logic will be given. For this, it will be necessary to define the notion of a structure, which is essentially the concept of an algebra defined in Section 2.4, and the notion of satisfaction. Given a structure M and a formula A, for any assignment s of values in M to the variables (in A), we shall define the satisfaction relation |=, so that M |= A[s] 146 5.2 FIRST-ORDER LANGUAGES 147 expresses the fact that the assignment s satisfies the formula A in M. The satisfaction relation |= is defined recursively on the set of formulae.
    [Show full text]
  • Functions and Relations
    Functions and relations • Relations • Set rules & symbols • Sets of numbers • Sets & intervals • Functions • Relations • Function notation • Hybrid functions • Hyperbola • Truncus • Square root • Circle • Inverse functions VCE Maths Methods - Functions & Relations 2 Relations • A relation is a rule that links two sets of numbers: the domain & range. • The domain of a relation is the set of the !rst elements of the ordered pairs (x values). • The range of a relation is the set of the second elements of the ordered pairs (y values). • (The range is a subset of the co-domain of the function.) • Some relations exist for all possible values of x. • Other relations have an implied domain, as the function is only valid for certain values of x. VCE Maths Methods - Functions & Relations 3 Set rules & symbols A = {1, 3, 5, 7, 9} B = {2, 4, 6, 8, 10} C = {2, 3, 5, 7} D = {4,8} (odd numbers) (even numbers) (prime numbers) (multiples of 4) • ∈ : element of a set. 3 ! A • ∉ : not an element of a set. 6 ! A • ∩ : intersection of two sets (in both B and C) B!C = {2} ∪ • : union of two sets (elements in set B or C) B!C = {2,3,4,5,6,7,8,10} • ⊂ : subset of a set (all elements in D are part of set B) D ! B • \ : exclusion (elements in set B but not in set C) B \C = {2,6,10} • Ø : empty set A!B =" VCE Maths Methods - Functions & Relations 4 Sets of numbers • The domain & range of a function are each a subset of a particular larger set of numbers.
    [Show full text]