Functions, Domain, and Range
Functions
Identifying Functions
Vertical Line Test: A graph represents a function if any vertical line drawn intersects the curve at no more than one point.
If a vertical line intersects the graph at more than one point, the graph does not represent a function.
Example:
- A curve where any vertical line intersects at only one point is a function.
- A curve where a vertical line intersects at multiple points is not a function.
Definition of a Function
- A function is defined as a set of ordered pairs.
Ordered Pairs
- Given sets A and B, the Cartesian product A × B is a set of ordered pairs.
- Example: If and , then .
- Each member of the set A × B is an ordered pair (e.g., (1, 2), (1, 3)).
Relation
- Any set of ordered pairs is called a relation.
- A × B is a relation.
Function (Formal Definition)
- A function is a special type of relation in which no two distinct elements (ordered pairs) have the same first entry.
- If is an element,
ais the first entry, andbis the second entry.
- If is an element,
- In a function, if two ordered pairs have the same first entry, their second entries must also be the same.
Examples
- Example A: is a function because all first entries are distinct.
- Example B: is NOT a function because the first entry
2is repeated with different second entries (-1 and 4).- For g to be a function, If the first entries are the same, the second entries must also be the same.
- Example C: is a function because the first entries (a, c, b) are distinct.
Domain and Range
Domain
- The domain of a function is the collection of all first entries (x-values) in the ordered pairs.
- Analogy: The domain represents the valid inputs into a CPU (Central Processing Unit), where the output is a real number.
- If an input results an undefined or error output, that input is not in the domain.
Example Domain
- For , the domain is .
Range
- The range of a function is the collection of all second entries (y-values) in the ordered pairs.
- For the same example the range is .
- Note: Elements in a set are not repeated.
- For the same example the range is .
Mathematical Definition of Domain and Range
- Let be a function.
- The domain (D) of f is the collection of x-values such that is defined (a real number).
- The range (R) is given by the y-values (f(x)) for x in D.
Calculator Analogy
- If a calculator returns "error," the input is not in the domain.
Determining Domain Algebraically
Example 1
- Consider .
- If , (real number), so 0 is in the domain.
- If , (undefined), so 1 is not in the domain.
- The domain of is all real numbers except .
- In interval notation: .
Example 2
- Consider .
- If , (not real), so -1 is not in the domain.
- If , (not real), so 0 is not in the domain.
- To find the domain, set the expression inside the square root to greater than or equal to zero:
- The domain of is all real numbers greater than or equal to 2.
- In interval notation: .
- Graphing the function shows that x must be at least 2, with y increasing from 0.
- For a function of the form , the function starts at the the x value of 'a' and continues to increase.
Range of Function
- Let f be a function with domain D. Then the range R is given by the y values f(x) such that
Example (Range)
- For , the domain is
x >= 2.- To sketch the graph, take x-values from 2 and above.
- If
x = 2,g(2) = 0. - If
x = 3,g(3) = 1. - If
x = 4,g(4) = \sqrt{2}. - The y-values are increasing, with the least value being 0.
- The range is from 0 to infinity: .
Additional example and discussion
Example 3
- Consider .
- To find the domain, set the expression inside the square root to zero.
- If x < 2, the output is not real.
- There isn't a hole at 2 because the formula does not exist.
- In interval notation: .
- To find the range, find all possible output values in interval
- As x gets very large, the denominator also gets very large too.
Thus, the reciprocal would get very small getting closer to 0. - Thus, the range of all posible y values is in the form (0,1].