DM - Relations-Functions
DM - Relations-Functions
MATH
Relations, functions
RELATION
Write a relation matrix representing x>y (‘greater than’) for the set
of values {1, 2, 3, 4, 5, 6}
CATEGORIES OF RELATION
• Reflexive: Every element relates to itself. For example, equality.
Every element is equal to itself
• Symmetric: if one element relates to another element, then the
second element also relates to the first element. For example,
friendship. X is a friend of Y, so Y is a friend of X also.
• Transitive: if one element relates to another element and the
second element relates to the third, then first also relates to the
third
EXAMPLES
Categorize the following relations:
1) ‘is less than or equal to’
• 𝑥 ≤ 𝑥 is always true, so reflexive
• 𝑥 ≤ 𝑦 𝑎𝑙𝑠𝑜 𝑖𝑠 𝑦 ≤ 𝑥? , not symmetric
• 𝑥 ≤ 𝑦, 𝑦 ≤ 𝑧 𝑡ℎ𝑒𝑛 𝑥 ≤ 𝑧, so transitive
PRACTICE PROBLEMS
1) ‘is divisible by’
2) ‘has the same parity as’ [is the same integer whether odd or
even]
3) ‘is a sister of’
4) ‘is a father of’
5) ‘has the same parents’
PRACTICE PROBLEM
PRACTICE PROBLEM
FUNCTION
Solution: The domain of this function is all real numbers. The range
of this function is all real numbers greater than or equal to 0,
because the square of any real number is always greater than or
equal to 0. The codomain of this function is all real numbers,
because the function could output any real number.
EXAMPLES
f(x) = {2x + 1 if x < 0
-x^2 + 3 if x >= 0}
Solution:
The domain of this function is all real numbers. The range of this function
is all real numbers greater than or equal to -1, because the minimum
value of the function is -1 (which is achieved when x = 0). The codomain
of this function is all real numbers, because the function could output any
real number.
ONTO, ONE-TO-ONE
• A function is onto if its range is equal to its codomain.
• A function is one-to-one if no two distinct elements of the
domain have the same image.
COMPOSITE FUNCTION
EXAMPLE
SOLUTION
SOLUTION
EXAMPLE
SOLUTION
INVERSE FUNCTION
EXAMPLE
SOLUTION
PRACTICE
PROBLEMS
PRACTICE PROBLEM
PRACTICE
PROBLEM
PRACTICE
PROBLEM