SlideShare a Scribd company logo
Functions and how to prove 1-1 and onto
Tyler Murphy
March 10, 2014
Before we get into these, let’s first talk about some Definitions and notation.
When we talk about a relation, R between two sets A and B, we can define R as a set
of the ordered pairs in A x B.
Now, IF for all ordered pairs in R, we have that for every a ∈ A, there is ONLY one
b ∈ B paired with it, then we can say that R is a function from A to B. We can notate
this as:
R = f : A → B
This simply states that R is a function that goes from the domain A to the target B.
This is the vertical line test. For every x value, there is only one y associated with it.
For the rest of the notes, we will refer to our function by the name f
Terminology Definition
1-1 (one to one) The function passes the horizontal line test (hLT)
Onto Everything in the target gets hit. That is, ran(f) = Target.
Proving Onto
In order to prove a function is a onto, we have to prove that: Target ⊆ Range. Dy definition
we are given that Range ⊆ Target. Together these will give us that the Range = Target.
Example
Prove that f : R → R given the rule f(x) = x2 − x is onto.
scratch work (not in finished proof):
To be in the range, y must be equal to x2 − x.
1
So,
y = x2
− x
0 = x2
− x − y
x =
1 ± (−1)2 − (4)(1)(−y)
2(1)
(by quadratic eq)
x =
1 ±
√
1 + 4y
2
So this is the x value that gets mapped to any y in the target.
Proof. WTS: ∀y ∈ R, ∃x ∈ R such that f(x) = y. That is, if we choose any element y of
the target, we want to show that there is some element x in the domain that gets moved
to that y.
Let y ∈ R (target).
Let x =
1 ±
√
1 + 4y
2
, which is in dom(f) = R.
So, f(x) = f
1 ±
√
1 + 4y
2
=
1 ±
√
1 + 4y
2
2
−
1 ±
√
1 + 4y
2
.
Now we just need to do some algebra.
f(
1 ±
√
1 + 4y
2
) =
1 ± 2
√
1 + 4y + 1 + 4y
4
−
1 ±
√
1 + 4y
2
.
=
2 + 4y ±
√
1 + 4y
4
−
2 ± 2
√
1 + 4y
4
.
=
2 + 4y ±
√
1 + 4y − 2 − ±
√
1 + 4y
4
.
=
4y
4
.
= y.
So, since we have chosen y to be in the target and we have found some x in the domain
that goes to our y, we have proven onto.
Note: The key to proving onto is to take the rule of the function and work it backwards
from the target to the domain. You have y = f(x) = ruled applied to x. If you solve for x,
2
it will give you the x you need to get to a y in the target. However, be careful that when
you do this, the x value you get is still in the domain. Consider how this problem would
have gone if f : N → R. Then when we found in the scratch work x =
1 ±
√
1 + 4y
2
, we
would be outside the domain for all but a few values of y because 1 + 4y would have to be
an odd perfect square or else you wouldn’t end up with a natural number for x.
Proving 1-1
Proving 1-1 is much simpler than proving onto.
First, think about what it means to be 1-1. It means for every value of x, there is only
one associated y and for every y there is only one associated x. The first of these we get
for free when we are told it’s a function because all functions pass the vertical line test. So
we only need to prove that the function satisfies the horizontal line test.
Example 2
Prove that f : N → Z given by the rule f(x) = −2x + 10 is one to one.
Proof. Remember that we are proving an if, then statement. If f(a) = f(b), then a = b.
First, declare variables. Let f(a), f(b) ∈ ran(f).
Now suppose that f(a) = f(b).
Now, f(a) = −2a + 10 = −2b + 10 = f(b).
So −2a + 10 = −2b + 10.
So −2a = −2b by adding 10 to both sides.
So a = b by dividing both sides by -2.
So f is 1-1.
If you can prove BOTH of these for a function, then you have proved that the function
is a bijection. Having a bijection is extremely valuable. If you can create a bijection from
a set to the natural numbers, then that set is countable, which is handy information. From
that you also know that all subsets of your set are countable.
Be careful though. Just because you can create a bijection from one set to another
does NOT mean that those sets are countable. Consider f : R → R defined by f(x) = x.
This function is a bijection from the reals to the reals. However, the real numbers are
not countable. This is because there is no possible bijection from the reals to the natural
numbers. The key for countability is that the bijective function MUST go from a set to
the natural numbers.
3

More Related Content

What's hot

What's hot (20)

5.6 Function inverse. A handout.
5.6 Function inverse. A handout.5.6 Function inverse. A handout.
5.6 Function inverse. A handout.
 
mathematical functions
mathematical functions mathematical functions
mathematical functions
 
Maximums and minimum
Maximums and minimum Maximums and minimum
Maximums and minimum
 
Limit and continuity
Limit and continuityLimit and continuity
Limit and continuity
 
Limits, continuity, and derivatives
Limits, continuity, and derivativesLimits, continuity, and derivatives
Limits, continuity, and derivatives
 
Mvtword
MvtwordMvtword
Mvtword
 
Power Rule
Power RulePower Rule
Power Rule
 
5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.
 
Functions and its Applications in Mathematics
Functions and its Applications in MathematicsFunctions and its Applications in Mathematics
Functions and its Applications in Mathematics
 
Lesson 5: Continuity
Lesson 5: ContinuityLesson 5: Continuity
Lesson 5: Continuity
 
Aa4
Aa4Aa4
Aa4
 
2.8A Function Operations
2.8A Function Operations2.8A Function Operations
2.8A Function Operations
 
Basic Calculus 11 - Derivatives and Differentiation Rules
Basic Calculus 11 - Derivatives and Differentiation RulesBasic Calculus 11 - Derivatives and Differentiation Rules
Basic Calculus 11 - Derivatives and Differentiation Rules
 
5.5 Injective and surjective functions. A handout.
5.5 Injective and surjective functions. A handout.5.5 Injective and surjective functions. A handout.
5.5 Injective and surjective functions. A handout.
 
Lesson 3 Operation on Functions
Lesson 3 Operation on FunctionsLesson 3 Operation on Functions
Lesson 3 Operation on Functions
 
Calc 5.3
Calc 5.3Calc 5.3
Calc 5.3
 
Bai giang Dao ham rieng
Bai giang Dao ham riengBai giang Dao ham rieng
Bai giang Dao ham rieng
 
Function in Mathematics
Function in MathematicsFunction in Mathematics
Function in Mathematics
 
1.5 all notes
1.5 all notes1.5 all notes
1.5 all notes
 
Aa3
Aa3Aa3
Aa3
 

Similar to Functions

Application of derivatives
Application of derivativesApplication of derivatives
Application of derivatives
indu thakur
 
Cs229 cvxopt
Cs229 cvxoptCs229 cvxopt
Cs229 cvxopt
cerezaso
 
Chapter on Functions and Graphs.ppt
Chapter on Functions and Graphs.pptChapter on Functions and Graphs.ppt
Chapter on Functions and Graphs.ppt
PhongLan30
 

Similar to Functions (20)

functions-1.pdf
functions-1.pdffunctions-1.pdf
functions-1.pdf
 
Relations & functions
Relations & functionsRelations & functions
Relations & functions
 
Limits and continuity[1]
Limits and continuity[1]Limits and continuity[1]
Limits and continuity[1]
 
.
..
.
 
Aa2
Aa2Aa2
Aa2
 
CMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions RepresentationsCMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions Representations
 
Vector spaces
Vector spacesVector spaces
Vector spaces
 
Domain-and-Range-of-a-Function
Domain-and-Range-of-a-FunctionDomain-and-Range-of-a-Function
Domain-and-Range-of-a-Function
 
Math presentation on domain and range
Math presentation on domain and rangeMath presentation on domain and range
Math presentation on domain and range
 
math camp
math campmath camp
math camp
 
237654933 mathematics-t-form-6
237654933 mathematics-t-form-6237654933 mathematics-t-form-6
237654933 mathematics-t-form-6
 
Application of derivatives
Application of derivativesApplication of derivatives
Application of derivatives
 
Cs229 cvxopt
Cs229 cvxoptCs229 cvxopt
Cs229 cvxopt
 
2nd-year-Math-full-Book-PB.pdf
2nd-year-Math-full-Book-PB.pdf2nd-year-Math-full-Book-PB.pdf
2nd-year-Math-full-Book-PB.pdf
 
2018-G12-Math-E.pdf
2018-G12-Math-E.pdf2018-G12-Math-E.pdf
2018-G12-Math-E.pdf
 
Maths 12
Maths 12Maths 12
Maths 12
 
Analysis Solutions CIV
Analysis Solutions CIVAnalysis Solutions CIV
Analysis Solutions CIV
 
Relations and functions
Relations and functions Relations and functions
Relations and functions
 
Functions (1)
Functions (1)Functions (1)
Functions (1)
 
Chapter on Functions and Graphs.ppt
Chapter on Functions and Graphs.pptChapter on Functions and Graphs.ppt
Chapter on Functions and Graphs.ppt
 

More from Tyler Murphy

Intro to derivatives
Intro to derivativesIntro to derivatives
Intro to derivatives
Tyler Murphy
 
Drop trow game rules
Drop trow game rules Drop trow game rules
Drop trow game rules
Tyler Murphy
 

More from Tyler Murphy (20)

Job application 2020
Job application 2020Job application 2020
Job application 2020
 
The Table Method for Derivatives
The Table Method for DerivativesThe Table Method for Derivatives
The Table Method for Derivatives
 
Math 170 notation
Math 170 notationMath 170 notation
Math 170 notation
 
intro to Implicit differentiation
intro to Implicit differentiationintro to Implicit differentiation
intro to Implicit differentiation
 
Tower of hanoi problem
Tower of hanoi problemTower of hanoi problem
Tower of hanoi problem
 
Intro to derivatives
Intro to derivativesIntro to derivatives
Intro to derivatives
 
One sided limits
One sided limitsOne sided limits
One sided limits
 
Limits as x approaches infinity
Limits as x approaches infinityLimits as x approaches infinity
Limits as x approaches infinity
 
Computing limits
Computing limitsComputing limits
Computing limits
 
Introduction to limits
Introduction to limitsIntroduction to limits
Introduction to limits
 
Solving a trig equation
Solving a trig equationSolving a trig equation
Solving a trig equation
 
solving a trig problem and sketching a graph example problems
solving a trig problem and sketching a graph example problemssolving a trig problem and sketching a graph example problems
solving a trig problem and sketching a graph example problems
 
Finding a polyomial from data
Finding a polyomial from dataFinding a polyomial from data
Finding a polyomial from data
 
functions review
functions reviewfunctions review
functions review
 
Jason format preferences m170
Jason format preferences m170Jason format preferences m170
Jason format preferences m170
 
Final exam review
Final exam review Final exam review
Final exam review
 
Inclusion exclusion principle
Inclusion exclusion principleInclusion exclusion principle
Inclusion exclusion principle
 
Oral exam structure M189
Oral exam structure M189Oral exam structure M189
Oral exam structure M189
 
Class mods
Class mods Class mods
Class mods
 
Drop trow game rules
Drop trow game rules Drop trow game rules
Drop trow game rules
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
YibeltalNibretu
 

Recently uploaded (20)

[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
Forest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDFForest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDF
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 

Functions

  • 1. Functions and how to prove 1-1 and onto Tyler Murphy March 10, 2014 Before we get into these, let’s first talk about some Definitions and notation. When we talk about a relation, R between two sets A and B, we can define R as a set of the ordered pairs in A x B. Now, IF for all ordered pairs in R, we have that for every a ∈ A, there is ONLY one b ∈ B paired with it, then we can say that R is a function from A to B. We can notate this as: R = f : A → B This simply states that R is a function that goes from the domain A to the target B. This is the vertical line test. For every x value, there is only one y associated with it. For the rest of the notes, we will refer to our function by the name f Terminology Definition 1-1 (one to one) The function passes the horizontal line test (hLT) Onto Everything in the target gets hit. That is, ran(f) = Target. Proving Onto In order to prove a function is a onto, we have to prove that: Target ⊆ Range. Dy definition we are given that Range ⊆ Target. Together these will give us that the Range = Target. Example Prove that f : R → R given the rule f(x) = x2 − x is onto. scratch work (not in finished proof): To be in the range, y must be equal to x2 − x. 1
  • 2. So, y = x2 − x 0 = x2 − x − y x = 1 ± (−1)2 − (4)(1)(−y) 2(1) (by quadratic eq) x = 1 ± √ 1 + 4y 2 So this is the x value that gets mapped to any y in the target. Proof. WTS: ∀y ∈ R, ∃x ∈ R such that f(x) = y. That is, if we choose any element y of the target, we want to show that there is some element x in the domain that gets moved to that y. Let y ∈ R (target). Let x = 1 ± √ 1 + 4y 2 , which is in dom(f) = R. So, f(x) = f 1 ± √ 1 + 4y 2 = 1 ± √ 1 + 4y 2 2 − 1 ± √ 1 + 4y 2 . Now we just need to do some algebra. f( 1 ± √ 1 + 4y 2 ) = 1 ± 2 √ 1 + 4y + 1 + 4y 4 − 1 ± √ 1 + 4y 2 . = 2 + 4y ± √ 1 + 4y 4 − 2 ± 2 √ 1 + 4y 4 . = 2 + 4y ± √ 1 + 4y − 2 − ± √ 1 + 4y 4 . = 4y 4 . = y. So, since we have chosen y to be in the target and we have found some x in the domain that goes to our y, we have proven onto. Note: The key to proving onto is to take the rule of the function and work it backwards from the target to the domain. You have y = f(x) = ruled applied to x. If you solve for x, 2
  • 3. it will give you the x you need to get to a y in the target. However, be careful that when you do this, the x value you get is still in the domain. Consider how this problem would have gone if f : N → R. Then when we found in the scratch work x = 1 ± √ 1 + 4y 2 , we would be outside the domain for all but a few values of y because 1 + 4y would have to be an odd perfect square or else you wouldn’t end up with a natural number for x. Proving 1-1 Proving 1-1 is much simpler than proving onto. First, think about what it means to be 1-1. It means for every value of x, there is only one associated y and for every y there is only one associated x. The first of these we get for free when we are told it’s a function because all functions pass the vertical line test. So we only need to prove that the function satisfies the horizontal line test. Example 2 Prove that f : N → Z given by the rule f(x) = −2x + 10 is one to one. Proof. Remember that we are proving an if, then statement. If f(a) = f(b), then a = b. First, declare variables. Let f(a), f(b) ∈ ran(f). Now suppose that f(a) = f(b). Now, f(a) = −2a + 10 = −2b + 10 = f(b). So −2a + 10 = −2b + 10. So −2a = −2b by adding 10 to both sides. So a = b by dividing both sides by -2. So f is 1-1. If you can prove BOTH of these for a function, then you have proved that the function is a bijection. Having a bijection is extremely valuable. If you can create a bijection from a set to the natural numbers, then that set is countable, which is handy information. From that you also know that all subsets of your set are countable. Be careful though. Just because you can create a bijection from one set to another does NOT mean that those sets are countable. Consider f : R → R defined by f(x) = x. This function is a bijection from the reals to the reals. However, the real numbers are not countable. This is because there is no possible bijection from the reals to the natural numbers. The key for countability is that the bijective function MUST go from a set to the natural numbers. 3