Functions If (x, y 1 ), (x, y 2 ) S, then y 1 = y 2

Similar documents
3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

Functions as Relations

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Spring

4.3 Division of Polynomials

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Inverse Functions

Introduction to Topology

Midterm 1 Solutions. Monday, 10/24/2011

Solutions Quiz 9 Nov. 8, Prove: If a, b, m are integers such that 2a + 3b 12m + 1, then a 3m + 1 or b 2m + 1.

Review: Limits of Functions - 10/7/16

Section 7.2: One-to-One, Onto and Inverse Functions

arb where a A, b B and we say a is related to b. Howdowewritea is not related to b? 2Rw 1Ro A B = {(a, b) a A, b B}

1 Continuity and Limits of Functions

3.3 Limits and Infinity

Limits: How to approach them?

Sets and Functions. (As we will see, in describing a set the order in which elements are listed is irrelevant).

Infinite Continued Fractions

Notes. Functions. Introduction. Notes. Notes. Definition Function. Definition. Slides by Christopher M. Bourke Instructor: Berthe Y.

Discrete dynamics on the real line

1. Decide for each of the following expressions: Is it a function? If so, f is a function. (i) Domain: R. Codomain: R. Range: R. (iii) Yes surjective.

Section 3.3 Limits Involving Infinity - Asymptotes

Limits and Continuity

1.2 Functions and Their Properties PreCalculus

Calculus Problem Sheet Prof Paul Sutcliffe. 2. State the domain and range of each of the following functions

1.2 Functions What is a Function? 1.2. FUNCTIONS 11

Fundamental Theorem of Algebra (NEW): A polynomial function of degree n > 0 has n complex zeros. Some of these zeros may be repeated.

Rational Functions. A rational function is a function that is a ratio of 2 polynomials (in reduced form), e.g.

Section 6.2 Long Division of Polynomials

Section 3.1. ; X = (0, 1]. (i) f : R R R, f (x, y) = x y

Commutative Rings and Fields

4.1 Real-valued functions of a real variable

Chapter 2 Polynomial and Rational Functions

Chapter Five Notes N P U2C5

MATH 2400 LECTURE NOTES: POLYNOMIAL AND RATIONAL FUNCTIONS. Contents 1. Polynomial Functions 1 2. Rational Functions 6

MATH 250 TOPIC 11 LIMITS. A. Basic Idea of a Limit and Limit Laws. Answers to Exercises and Problems

Functions. Given a function f: A B:

Math 2414 Activity 1 (Due by end of class July 23) Precalculus Problems: 3,0 and are tangent to the parabola axis. Find the other line.

Inverses and Elementary Matrices

REVIEW FOR THIRD 3200 MIDTERM

AP Calculus AB Summer Assignment

Lemma 15.1 (Sign preservation Lemma). Suppose that f : E R is continuous at some a R.

ACCUPLACER MATH 0311 OR MATH 0120

ter. on Can we get a still better result? Yes, by making the rectangles still smaller. As we make the rectangles smaller and smaller, the

A. Incorrect! Apply the rational root test to determine if any rational roots exist.

f(s)ds, i.e. to write down the general solution in

can only hit 3 points in the codomain. Hence, f is not surjective. For another example, if n = 4

1. A Little Set Theory

6.5 Trigonometric Equations

THS Step By Step Calculus Chapter 1

(So SamID 1 ( ) = Ken W. Smith.)

AP Calculus AB Summer Assignment

Selected problems from past exams

0 Sets and Induction. Sets

Introduction to Decision Sciences Lecture 6

MATH 22 FUNCTIONS: COMPOSITION & INVERSES. Lecture N: 10/16/2003. Mad world! mad kings! mad composition! Shakespeare, King John, II:1

Functions. Chapter Continuous Functions

Limits and Their Properties

Unit 4 Day 8 Symmetry & Compositions

AP Calculus AB Summer Assignment

Example 1: What do you know about the graph of the function

(a) For an accumulation point a of S, the number l is the limit of f(x) as x approaches a, or lim x a f(x) = l, iff

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

Rings If R is a commutative ring, a zero divisor is a nonzero element x such that xy = 0 for some nonzero element y R.

In economics, the amount of a good x demanded is a function of the price of that good. In other words,

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

MATH 102 INTRODUCTION TO MATHEMATICAL ANALYSIS. 1. Some Fundamentals

We have been going places in the car of calculus for years, but this analysis course is about how the car actually works.

MATH 51H Section 4. October 16, Recall what it means for a function between metric spaces to be continuous:

Continuity at a Point

MAS221 Analysis, Semester 1,

ADVANCED CALCULUS - MTH433 LECTURE 4 - FINITE AND INFINITE SETS

Equations and Inequalities

Concept Category 5. Limits. Limits: graphically & algebraically Rate of Change

October 27, 2018 MAT186 Week 3 Justin Ko. We use the following notation to describe the limiting behavior of functions.

MATH 2200 Final Review

Infinite Limits. Infinite Limits. Infinite Limits. Previously, we discussed the limits of rational functions with the indeterminate form 0/0.

ACCUPLACER MATH 0310

1.10 Continuity Brian E. Veitch

2. FUNCTIONS AND ALGEBRA

Definition 8.1 Two inequalities are equivalent if they have the same solution set. Add or Subtract the same value on both sides of the inequality.

Sums and Products. a i = a 1. i=1. a i = a i a n. n 1

SETS AND FUNCTIONS JOSHUA BALLEW

LECTURE 22: COUNTABLE AND UNCOUNTABLE SETS

Section 20: Arrow Diagrams on the Integers

Cardinality and ordinal numbers

I know this time s homework is hard... So I ll do as much detail as I can.

QF101: Quantitative Finance August 22, Week 1: Functions. Facilitator: Christopher Ting AY 2017/2018

5 FUNCTIONS. 5.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

Lecture 7: Indeterminate forms; L Hôpitals rule; Relative rates of growth. If we try to simply substitute x = 1 into the expression, we get

MATH 13 FINAL EXAM SOLUTIONS

Row Reduction

1 Rational Exponents and Radicals

Math 19, Homework-1 Solutions

Week Some Warm-up Questions

Solutions to Practice Final

One-to-one functions and onto functions

2. If the values for f(x) can be made as close as we like to L by choosing arbitrarily large. lim

Polynomial Rings. i=0

Solutions to Homework Problems

9 FUNCTIONS. 9.1 The Definition of Function. c Dr Oksana Shatalov, Fall

Transcription:

Functions 4-3-2008 Definition. A function f from a set X to a set Y is a subset S of the product X Y such that if (, y 1 ), (, y 2 ) S, then y 1 = y 2. Instead of writing (, y) S, you usually write f() = y. Thus, when an ordered pair (, y) is in S, is the input to f and y is the corresponding output. The stipulation that If (, y 1 ), (, y 2 ) S, then y 1 = y 2 means that there is a unique output for each input. f : X Y means that f is a function from X to Y. X is called the domain, and Y is called the codomain. The range of f is the set of all outputs of the function: (range of f) = {y Y y = f() for some X}. Eample. Consider the following functions: f : R R given by f() = 2. g : R R 0 given by g() = 2. h : R 0 R given by h() = 2. These are different functions; they re defined by the same rule, but they have different domains or codomains. Eample. Suppose I try to define f : R R by f() = (an integer bigger than ). This does not define a function. For eample, f(2.6) could be 3, since 3 is an integer bigger than 2.6. But it could also be 4, or 67, or 101, or.... This rule does not produce a unique output for each input. Mathematicians say that such a function or such an attempted function is not well-defined. Eample. (The natural domain of a function) In basic algebra and calculus, functions are often given by rules, without mention of a domain and codomain; for eample, f() = 2. In this contet, the codomain is usually understood to be R. What about the domain? In this situation, the domain is understood to be the largest subset of R for which f is defined. (This is sometimes called the natural domain of f.) In the case of f() = 2 : I must have 0 in order for to be defined. I must have 2 in order to avoid division by zero. Hence, the domain of f is [0, 2) (2, + ). 1

Definition. Let X and Y be sets. A function f : X Y is: (a) Injective if for all 1, 2 X, f( 1 ) = f( 2 ) implies 1 = 2. (b) Surjective if for all y Y, there is an X such that f() = y. (c) Bijective if it is injective and surjective. Definition. Let S and T be sets, and let f : S T be a function from S to T. A function g : T S is called the inverse of f if g (f(s)) = s for all s S and f (g(t)) = t for all t T. Not all functions have inverses; if the inverse of f eists, it s denoted f 1. (Despite the crummy notation, f 1 does not mean 1 f.) You ve undoubtedly seen inverses of functions in other courses; for eample, the inverse of f() = 3 is f 1 () = 1/3. However, the functions I m discussing may not have anything to do with numbers, and may not be defined using formulas. Eample. Define f : R R by f() =. To find the inverse of f (if there is one), set y = + 1 + 1. Swap the s and y s, then solve for y in terms of : = Thus, f 1 () = y, (y + 1) = y, y + = y, = y y, = y(1 ), y = y + 1 1.. To prove that this works using the definition of an inverse function, do this: 1 ( ) f 1 (f()) = f 1 = + 1 + 1 1 + 1 f ( f 1 () ) = f ( ) = 1 = 1 1 + 1 = ( + 1) = 1 =, + (1 ) = 1 =. Recall that the graphs of f and f 1 are mirror images across the line y = : 10-10 - 10 - -10 2

I m mentioning this to connect this discussion to things you ve already learned. However, you should not make the mistake of equating this special case with the definition. The inverse of a function is not defined by swapping s and y s and solving or reflecting the graph about y =. A function might not involve numbers or formulas, and a function might not have a graph. The inverse of a function is what the definition says it is nothing more or less. The net lemma is very important, and I ll often use it in showing that a given function is bijective. Lemma. Let S and T be sets, and let f : S T be a function. f is invertible if and only if f is both injective and surjective. Proof. ( ) Suppose that f is both injective and surjective. I ll construct the inverse function f 1 : T S. Take t T. Since f is surjective, there is an element s S such that f(s) = t. Moreover, s is unique: If f(s) = t and f(s ) = t, then f(s) = f(s ). But f is injective, so s = s. Define f 1 (t) = s. I have defined a function f 1 : T S. I must show that it is the inverse of f. Let s S. By definition of f 1, to compute f 1 (f(s)) I must find an element Moe S such that f(moe) = f(s). But this is easy just take Moe = s. Thus, f 1 (f(s)) = s. Going the other way, let t T. By definition of f 1, to compute f ( f 1 (t) ) I find an element s S such that f(s) = t. Then f 1 (t) = s, so Therefore, f 1 really is the inverse of f. f ( f 1 (t) ) = f(s) = t. ( ) Suppose f has an inverse f 1 : T S. I must show f is injective and surjective. To show that f is surjective, take t T. Then f ( f 1 (t) ) = t, so I ve found an element of S namely f 1 (t) which f maps to t. Therefore, f is surjective. To show that f is injective, suppose s 1, s 2 S and f(s 1 ) = f(s 2 ). Then Therefore, f is injective. f 1 (f(s 1 )) = f 1 (f(s 2 )), so s 1 = s 2. Eample. (a) f : R R given by f() = 2 is neither injective nor surjective. It is not injective, since f( 3) = 9 and f(3) = 9: Different inputs may give the same output. It is not surjective, since there is no R such that f() = 1. (b) f : R R 0 given by f() = 2 is not injective, but it is surjective. It is not injective, since f( 3) = 9 and f(3) = 9: Different inputs may give the same output. It is surjective, since if y 0, y is defined, and f( y) = ( y) 2 = y. (c) f : R 0 R 0 given by f() = 2 is injective and surjective. It is injective, since if f( 1 ) = f( 2 ), then 2 1 = 2 2. But in this case, 1, 2 0, so 1 = 2 by taking square roots. It is surjective, since if y 0, y is defined, and f( y) = ( y) 2 = y. 3

Notice that in this eample, the same rule f() = 2 was used, but whether the function was injective or surjective changed. The domain and codomain are part of the definition of a function. Eample. Prove that f : R R given by f() = + 1 is injective. Suppose 1, 2 R and f( 1 ) = f( 2 ). I must prove that 1 = 2. f( 1 ) = f( 2 ) means that 1 + 1 = 2 + 1. Clearing denominators and doing some algebra, I get 1 Therefore, f is injective. 2 2 ( 1 + 1) = 1 ( 2 + 1), 2 1 + 2 = 1 2 + 1, 1 = 2. Eample. Define f : R R by f() = 7. (a) Prove directly that f is injective and surjective. Suppose f(a) = f(b). Then a 7 = b 7, so a = b, and hence a = b. Therefore, f is injective. Suppose y R. I must find such that f() = y. I want 7 = y. Working backwards, I find that = 1 (y + 7). Verify that it works: ( ) 1 f (y + 7) This proves that f is surjective. = 1 (y + 7) 7 = (y + 7) 7 = y. (b) Prove that f is injective and surjective by showing that f has an inverse f 1. Define f 1 () = 1 ( + 7). I ll prove that this is the inverse of f: ( ) 1 f(f 1 ()) = f ( + 7) = 1 ( + 7) 7 = ( + 7) 7 =, f 1 (f()) = f 1 ( 7) = 1 (( 7) + 7) = 1 =. Therefore, f 1 is the inverse of f. Since f is invertible, it s injective and surjective. Eample. In some cases, it may be difficult to prove that a function is surjective by a direct argument. Define f : R R by f() = 2 ( 1). f is not injective, since f(0) = 0 and f(1) = 0. The graph suggests that f is surjective. To say that every y R is an output of f means graphically that every horizontal line crosses the graph at least once (whereas injectivity means that every horizontal line crosses that graph at most once). 1-4 -2 2 4-1 -2 4

To prove that f is surjective, take y R. I must find R such that f() = y, i.e. such that 2 ( 1) = y. The problem is that finding in terms of y involves solving a cubic equation. This is possible, but it s easy to change the eample to produce a function where solving algebraically is impossible in principle. Instead, I ll proceed indirectly. lim + 2 ( 1) = + and lim 2 ( 1) =. It follows from the definition of these infinite limits that there are numbers 1 and 2 such that f( 1 ) < y and f( 2 ) > y. But f is continuous it s a polynomial so by the Intermediate Value Theorem, there is a point c such that 1 < c < 2 and f(c) = y. This proves that f is surjective. Note, however, that I haven t found c; I ve merely shown that such a value c must eist. Eample. Define f() = Prove that f is surjective, but not injective. { + 1 if < 0 2 if 0. 2 1-3 -2-1 1 2 3-1 -2 Let y R. If y < 0, then y 1 < 1 < 0, so f(y 1) = (y 1) + 1 = y. If y 0, then y is defined and y 0, so f( y) = ( y) 2 = y. This proves that f is surjective. However, ( f 3 ) = 3 4 4 + 1 = 1 4 Hence, f is not injective. and f ( ) 1 = 2 ( ) 2 1 = 1 2 4. Eample. Consider the function f : R 2 R 2 defined by f(, y) = (4 3y, 2 + y).

(a) Show that f is injective and surjective directly, using the definitions. First, I ll show that f is injective. Suppose f( 1, y 1 ) = f( 2, y 2 ). I want to show that ( 1, y 1 ) = ( 2, y 2 ). f( 1, y 1 ) = f( 2, y 2 ) means Equate corresponding components: Rewrite the equations: (4 1 3y 1, 2 1 + y 1 ) = (4 2 3y 2, 2 2 + y 2 ). 4 1 3y 1 = 4 2 3y 2, 2 1 + y 1 = 2 2 + y 2. 4( 1 2 ) = 3(y 1 y 2 ), 2( 1 2 ) = (y 1 y 2 ). The second of these equations gives y 1 y 2 = 2( 1 2 ). Substitute this into the first equation: 4( 1 2 ) = 3 ( 2)( 1 2 ), 4( 1 2 ) = 6( 1 2 ), 10( 1 2 ) = 0, 1 2 = 0, 1 = 2. Plugging this into y 1 y 2 = 2( 1 2 ) gives y 1 y 2 = 0, so y 1 = y 2. Therefore, ( 1, y 1 ) = ( 2, y 2 ), and f is injective. To show f is surjective, I take a point (a, b) R 2, the codomain. I must find (, y) such that f(, y) = (a, b). I want (4 3y, 2 + y) = (a, b). I ll work backwards from this equation. Equating corresponding components gives 4 3y = a, 2 + y = b. The second equation gives y = b 2, so plugging this into the first equation yields Plugging this back into y = b 2 gives Now check that this works: 4 3(b 2) = a, 10 3b = a, = 0.1a + 0.3b. y = b 2(0.1a + 0.3b) = 0.2a + 0.4b. f(0.1a + 0.3b, 0.2a + 0.4b) = (4(0.1a + 0.3b) 3( 0.2a + 0.4b), 2(0.1a + 0.3b) + ( 0.2a + 0.4b)) = (a, b). Therefore, f is surjective. (b) Show that f is injective and surjective by constructing an inverse f 1. I actually did the work of constructing the inverse in showing that f was surjective: I showed that if f(, y) = (a, b), that (, y) = (0.1a + 0.3b, 0.2a + 0.4b), or f(0.1a + 0.3b, 0.2a + 0.4b) = (a, b). But the second equation implies that if f 1 eists, it should be defined by Now I showed above that f 1 (a, b) = (0.1a + 0.3b, 0.2a + 0.4b). f(f 1 (a, b)) = f(0.1a + 0.3b, 0.2a + 0.4b) = (a, b). 6

For the other direction, f 1 (f(, y)) = f 1 (4 3y, 2 + y) = (0.1(4 3y) + 0.3(2 + y), 0.2(4 3y) + 0.4(2 + y)) = (, y). This proves that f 1, as defined above, really is the inverse of f. Hence, f is injective and surjective. Remark. In linear algebra, you learn more efficient ways to show that functions like the one above are bijective. Eample. Consider the function f : R 2 R 2 defined by Prove that f is neither injective nor surjective. f(, y) = (2 + 4y, 2y). f(0, 0) = (0, 0) and f(2, 1) = (0, 0). Therefore, f is not injective. To prove f is not surjective, I must find a point (a, b) R 2 which is not an output of f. I ll show that (1, 1) is not an output of f. Suppose on the contrary that f(, y) = (1, 1). Then This gives two equations: (2 + 4y, 2y) = (1, 1). 2 + 4y = 1, 2y = 1. Multiply the second equation by 2 to obtain 2+4y = 2. Now I have 2+4y = 1 and 2+4y = 2, so 1 = 2, a contradiction. Therefore, there is no such (, y), and f is not surjective. Eample. Let f : R 2 R 2 be defined by Is f injective? Is f surjective? f(, y) = (e + y, y 3 ). First, I ll show that f is injective. Suppose f(a, b) = f(c, d). I have to show that (a, b) = (c, d). f(a, b) = f(c, d) (e a + b, b 3 ) = (e c + d, d 3 ) Equating the second components, I get b 3 = d 3. By taking cube roots, I get b = d. Equating the first components, I get e a + b = e c + d. But b = d, so subtracting b = d I get e a = e c. Now taking the log of both sides gives a = c. Thus, (a, b) = (c, d), and f is injective. I ll show that f is not surjective by showing that there is no input (, y) which gives ( 1, 0) as an output. Suppose on the contrary that f(, y) = ( 1, 0). Then f(, y) = ( 1, 0) (e + y, y 3 ) = ( 1, 0) Equating the second components gives y 3 = 0, so y = 0. Equating the first components gives e +y = 1. But y = 0, so I get e = 1. This is impossible, since e is always positive. Therefore, f is not surjective. 7

Definition. Let A, B, and C be sets, and let f : A B and g : B C be functions. The composite of f and g is the function g f : A C defined by (g f)(a) = g(f(a)). I actually used composites earlier for eample, in defining the inverse of a function. In my opinion, the notation g f looks a lot like multiplication, so (at least when elements are involved) I prefer to write g(f()) instead. However, the composite notation is used often enough that you should be familiar with it. Eample. Define f : R R by f() = 3 and g : R R by g() = + 1. Then (g f)() = g(f()) = g( 3 ) = 3 + 1, (f g)() = f(g()) = f( + 1) = ( + 1) 3. Lemma. Let f : X Y and g : Y Z be invertible functions. Then g f is invertible, and its inverse is Proof. Let X and let z Z. Then (g f) 1 = f 1 g 1. (f 1 g 1 ) (g f)() = f 1 ( g 1 (g (f())) ) = f 1 (f()) =, (g f) (f 1 g 1 )(z) = g ( f ( f 1 (g(z)) )) = g (g(z)) = z. This proves that (g f) 1 = f 1 g 1. Corollary. The composite of bijective functions is bijective. Proof. I showed earlier that a function is bijective if and only if it has an inverse, so the corollary follows from the lemma. c 2008 by Bruce Ikenaga 8