Domain and Range
Finding domain and range of functions
Domain and Range
What are Domain and Range?
Domain: The set of all possible INPUT values (x-values) for a function.
Range: The set of all possible OUTPUT values (y-values or f(x)-values) for a function.
Think of it this way:
- Domain = What you can PUT INTO the function
- Range = What you can GET OUT OF the function
Why Domain and Range Matter
Not all inputs make sense for every function:
- Can't divide by zero
- Can't take square root of negative (in real numbers)
- Real-world constraints (can't have negative time)
Understanding domain and range helps you:
- Know when a function is defined
- Understand function behavior
- Solve real-world problems correctly
- Avoid mathematical errors
Interval Notation
We use interval notation to write domain and range efficiently.
Symbols:
- (a, b) means all numbers between a and b, NOT including a or b (open interval)
- [a, b] means all numbers between a and b, INCLUDING both a and b (closed interval)
- (a, b] means between a and b, NOT including a but INCLUDING b
- [a, b) means between a and b, INCLUDING a but NOT including b
- โ (infinity) always uses parentheses: (a, โ) or (-โ, b)
Examples:
- (2, 5) means 2 < x < 5
- [2, 5] means 2 โค x โค 5
- (-โ, 3] means x โค 3
- [4, โ) means x โฅ 4
- (-โ, โ) means all real numbers
Set Notation
Another way to express domain and range:
{x | condition} reads as "the set of all x such that condition"
Examples:
- {x | x > 0} means "all x greater than 0"
- {x | x โ 2} means "all x except 2"
- {x | x โ โ} means "all real numbers"
Domain of Linear Functions
Linear functions: f(x) = mx + b
Domain: ALL real numbers Written as: (-โ, โ) or {x | x โ โ}
Why? You can plug any number into a linear function.
Examples:
- f(x) = 2x + 3, Domain: (-โ, โ)
- g(x) = -x + 7, Domain: (-โ, โ)
- h(x) = 5, Domain: (-โ, โ)
Range of Linear Functions
Non-constant linear: Range is ALL real numbers (-โ, โ)
Constant function: f(x) = c Range is just {c} (a single value)
Examples:
- f(x) = 2x + 3, Range: (-โ, โ)
- g(x) = 5, Range: {5} or [5, 5]
Domain of Quadratic Functions
Quadratic functions: f(x) = axยฒ + bx + c
Domain: ALL real numbers (-โ, โ)
Why? You can square any real number.
Examples:
- f(x) = xยฒ, Domain: (-โ, โ)
- g(x) = -2xยฒ + 3x - 1, Domain: (-โ, โ)
Range of Quadratic Functions
Range depends on the vertex and direction of opening.
If parabola opens UP (a > 0): Range: [k, โ) where k is the y-coordinate of the vertex (minimum value)
If parabola opens DOWN (a < 0): Range: (-โ, k] where k is the y-coordinate of the vertex (maximum value)
Example 1: f(x) = xยฒ - 4x + 3
Find vertex: x = -(-4)/(2ยท1) = 2 f(2) = 4 - 8 + 3 = -1 Vertex: (2, -1)
Opens up (a = 1 > 0) Range: [-1, โ)
Example 2: g(x) = -xยฒ + 6x - 5
Vertex: x = -6/(2ยท(-1)) = 3 g(3) = -9 + 18 - 5 = 4 Vertex: (3, 4)
Opens down (a = -1 < 0) Range: (-โ, 4]
Domain Restrictions: Division
Cannot divide by zero!
When a function has a variable in the denominator, exclude values that make the denominator zero.
Example 1: f(x) = 1/x
Denominator = x Set equal to zero: x = 0 Domain: All real numbers EXCEPT 0 Written as: (-โ, 0) โช (0, โ) or {x | x โ 0}
Example 2: g(x) = 3/(x - 5)
Denominator = x - 5 Set equal to zero: x - 5 = 0, so x = 5 Domain: All real numbers EXCEPT 5 Written as: (-โ, 5) โช (5, โ) or {x | x โ 5}
Example 3: h(x) = (2x + 1)/(xยฒ - 4)
Denominator = xยฒ - 4 Set equal to zero: xยฒ - 4 = 0 xยฒ = 4 x = ยฑ2
Domain: All real numbers EXCEPT 2 and -2 Written as: (-โ, -2) โช (-2, 2) โช (2, โ) or {x | x โ ยฑ2}
Domain Restrictions: Square Roots
Cannot take square root of negative number (in real numbers).
When a function has a square root, the expression inside must be โฅ 0.
Example 1: f(x) = โx
Inside square root: x Requirement: x โฅ 0 Domain: [0, โ)
Example 2: g(x) = โ(x - 3)
Inside: x - 3 Requirement: x - 3 โฅ 0 Solve: x โฅ 3 Domain: [3, โ)
Example 3: h(x) = โ(5 - x)
Inside: 5 - x Requirement: 5 - x โฅ 0 Solve: -x โฅ -5 Multiply by -1 (flip inequality): x โค 5 Domain: (-โ, 5]
Example 4: f(x) = โ(xยฒ - 9)
Inside: xยฒ - 9 Requirement: xยฒ - 9 โฅ 0 xยฒ โฅ 9 |x| โฅ 3 This means x โค -3 or x โฅ 3 Domain: (-โ, -3] โช [3, โ)
Combined Restrictions
Sometimes functions have BOTH division and square roots.
Example: f(x) = โx / (x - 4)
Square root restriction: x โฅ 0 Division restriction: x โ 4
Combined domain: [0, 4) โช (4, โ)
We need x โฅ 0 AND x โ 4.
Finding Range from Graphs
From a graph:
- Look at the y-axis
- Identify the lowest and highest y-values the graph reaches
- Write the range
Example: If a graph goes from y = -2 up to y = 5 (including both) Range: [-2, 5]
Example: If a parabola opening up has vertex at y = 3 Range: [3, โ)
Example: If a parabola opening down has vertex at y = -1 Range: (-โ, -1]
Finding Domain from Graphs
From a graph:
- Look at the x-axis
- Identify all x-values that have corresponding points on the graph
- Write the domain
Example: If a graph extends forever left and right Domain: (-โ, โ)
Example: If a graph starts at x = 2 and extends right Domain: [2, โ)
Example: If there's a gap (like at x = 3) Domain might be: (-โ, 3) โช (3, โ)
Absolute Value Functions
f(x) = |x| Domain: (-โ, โ) Range: [0, โ) (absolute value is never negative)
f(x) = |x - h| + k Domain: (-โ, โ) Range: [k, โ) if upright V, (-โ, k] if upside-down
Example: f(x) = |x - 2| + 3 Domain: (-โ, โ) Range: [3, โ) The vertex of the V is at (2, 3).
Piecewise Functions
Domain is typically all real numbers (unless specified). Range depends on the individual pieces.
Example: f(x) = x + 1 if x < 0 f(x) = xยฒ if x โฅ 0
Domain: (-โ, โ)
For range, consider both pieces:
- When x < 0: f(x) = x + 1 gives values from (-โ, 1)
- When x โฅ 0: f(x) = xยฒ gives values from [0, โ)
Range: (-โ, 1) โช [0, โ) = (-โ, โ)
Real-World Domain and Range
Context matters! Physical constraints restrict domain and range.
Example 1: Area of square A(s) = sยฒ where s is side length
Mathematical domain: (-โ, โ) Real-world domain: (0, โ) because side length must be positive
Mathematical range: [0, โ) Real-world range: (0, โ) because area must be positive
Example 2: Projectile h(t) = -16tยฒ + 64t where t is time
Real-world domain: [0, 4] (from launch until it hits ground) Real-world range: [0, 64] (from ground to maximum height)
Example 3: Cost function C(n) = 50 + 10n where n is number of items
Real-world domain: {0, 1, 2, 3, ...} (can't buy 2.5 items) Real-world range: {50, 60, 70, 80, ...} (discrete values)
Practice: Finding Domain
For each function, find the domain:
Problem 1: f(x) = 3x - 7 Linear, no restrictions Domain: (-โ, โ)
Problem 2: g(x) = 1/(x + 2) Denominator zero when x = -2 Domain: (-โ, -2) โช (-2, โ)
Problem 3: h(x) = โ(x + 4) Inside must be โฅ 0: x + 4 โฅ 0, so x โฅ -4 Domain: [-4, โ)
Problem 4: f(x) = xยฒ No restrictions Domain: (-โ, โ)
Problem 5: g(x) = โ(2x - 6) Inside โฅ 0: 2x - 6 โฅ 0, so 2x โฅ 6, thus x โฅ 3 Domain: [3, โ)
Practice: Finding Range
Problem 1: f(x) = x - 5 Linear (non-constant) Range: (-โ, โ)
Problem 2: g(x) = xยฒ + 1 Parabola opening up, vertex at (0, 1) Range: [1, โ)
Problem 3: h(x) = -xยฒ + 4 Parabola opening down, vertex at (0, 4) Range: (-โ, 4]
Problem 4: f(x) = |x| - 3 V-shape with vertex at (0, -3), opens up Range: [-3, โ)
Problem 5: g(x) = 7 Constant function Range: {7}
Union Notation
Use โช (union) to combine separate intervals.
Example: x < 2 or x > 5 Written as: (-โ, 2) โช (5, โ)
Example: All real numbers except x = 3 Written as: (-โ, 3) โช (3, โ)
Example: -4 โค x < -1 or 2 < x โค 7 Written as: [-4, -1) โช (2, 7]
Common Mistakes to Avoid
-
Using wrong brackets Remember: ( ) for open, [ ] for closed Infinity ALWAYS uses ( )
-
Forgetting to solve inequalities โ(x - 3) requires x - 3 โฅ 0, which gives x โฅ 3
-
Confusing domain and range Domain = inputs (x), Range = outputs (y)
-
Missing restrictions Always check for division by zero and square roots
-
Ignoring graph direction Parabola up: range [k, โ) Parabola down: range (-โ, k]
-
Writing infinity with brackets Never write [โ) or (-โ] Always (โ) and (-โ)
Domain and Range from Tables
Table: | x | y | |----|-----| | -2 | 3 | | 0 | 5 | | 2 | 7 | | 4 | 9 |
Domain: {-2, 0, 2, 4} (discrete values shown) Range: {3, 5, 7, 9}
If the pattern continues forever: Domain: all even integers Range: all odd integers starting from 3
Continuous vs. Discrete
Continuous domain/range: Any value in an interval Example: (-โ, โ), [2, 5]
Discrete domain/range: Only specific separate values Example: {0, 1, 2, 3, ...}, {-2, 0, 2, 4}
Real-world examples of discrete:
- Number of students (can't have 25.5 students)
- Number of cars (whole numbers only)
- Days of the week (discrete set)
Testing Your Understanding
Quick checks:
For domain:
- Can I divide by zero? If yes, exclude that x-value
- Is there a square root? If yes, set inside โฅ 0
- Are there real-world constraints? If yes, apply them
For range:
- Is it linear (non-constant)? Range is (-โ, โ)
- Is it quadratic? Find vertex, check if up or down
- Is there a minimum or maximum? Use [ or ]
- Can I reach all y-values or only some?
Step-by-Step Process
Finding Domain:
- Identify function type
- Check for division (denominator โ 0)
- Check for square roots (inside โฅ 0)
- Check for other restrictions
- Apply real-world constraints if applicable
- Write in interval notation
Finding Range:
- Determine function type
- For linear: usually (-โ, โ) unless constant
- For quadratic: find vertex and direction
- For other functions: analyze graph or behavior
- Apply real-world constraints if applicable
- Write in interval notation
Advanced Example
f(x) = โ(4 - xยฒ)
Domain: Inside square root: 4 - xยฒ โฅ 0 -xยฒ โฅ -4 xยฒ โค 4 |x| โค 2 -2 โค x โค 2 Domain: [-2, 2]
Range: When x = 0: f(0) = โ4 = 2 (maximum) When x = ยฑ2: f(ยฑ2) = โ0 = 0 (minimum) Range: [0, 2]
This is actually the upper half of a circle!
Quick Reference
Common Domains:
- Linear: (-โ, โ)
- Quadratic: (-โ, โ)
- f(x) = 1/x: (-โ, 0) โช (0, โ)
- f(x) = โx: [0, โ)
- Absolute value: (-โ, โ)
Common Ranges:
- Linear (non-constant): (-โ, โ)
- Constant: {c}
- Quadratic up: [k, โ)
- Quadratic down: (-โ, k]
- f(x) = โx: [0, โ)
- f(x) = |x|: [0, โ)
Tips for Success
- Always check for division by zero
- Square roots need non-negative inputs
- Graph the function if unsure about range
- Use correct bracket notation
- Consider real-world constraints
- Domain comes from input restrictions
- Range comes from output possibilities
- Practice with various function types
- When in doubt, make a table or graph
๐ Practice Problems
1Problem 1easy
โ Question:
Find the domain and range of: {(1, 3), (2, 5), (4, 7), (6, 9)}
๐ก Show Solution
Step 1: Understand the definitions: Domain = all x-values (inputs) Range = all y-values (outputs)
Step 2: List all x-values from the ordered pairs: x-values: 1, 2, 4, 6
Step 3: List all y-values from the ordered pairs: y-values: 3, 5, 7, 9
Step 4: Write in set notation: Domain: {1, 2, 4, 6} Range: {3, 5, 7, 9}
Answer: Domain: {1, 2, 4, 6}, Range: {3, 5, 7, 9}
2Problem 2easy
โ Question:
Find the domain of
๐ก Show Solution
This is a linear function. There are no restrictions (no division by zero, no square roots).
We can substitute any real number for .
Answer: Domain: all real numbers or
3Problem 3easy
โ Question:
What is the domain of f(x) = 2x + 5?
๐ก Show Solution
Step 1: Check for restrictions:
- Is there division? No
- Is there a square root of a variable? No
- Are there any other restrictions? No
Step 2: Determine the domain: Since this is a linear function with no restrictions, x can be any real number.
Step 3: Write the answer: Domain: All real numbers
In interval notation: (-โ, โ) In set-builder notation: {x | x โ โ}
Answer: All real numbers
4Problem 4medium
โ Question:
Find the domain of
๐ก Show Solution
Look for restrictions. We cannot divide by zero.
Set the denominator equal to zero:
We must exclude from the domain.
Answer: Domain: all real numbers except
In interval notation:
5Problem 5medium
โ Question:
What is the domain of g(x) = 1/(x - 3)?
๐ก Show Solution
Step 1: Identify restrictions: This is a rational function (has division). The denominator cannot equal zero.
Step 2: Find when the denominator is zero: x - 3 = 0 x = 3
Step 3: State the domain: x can be any real number except 3
Step 4: Write the answer in different notations:
Words: All real numbers except 3
Interval notation: (-โ, 3) โช (3, โ)
Set-builder notation: {x | x โ 3}
Answer: All real numbers except 3
6Problem 6medium
โ Question:
What is the domain of h(x) = โ(x + 4)?
๐ก Show Solution
Step 1: Identify the restriction: For a square root function, the radicand (expression under the root) must be non-negative. We need: x + 4 โฅ 0
Step 2: Solve the inequality: x + 4 โฅ 0 x โฅ -4
Step 3: Interpret the result: x must be greater than or equal to -4
Step 4: Write the answer in different notations:
Words: All real numbers greater than or equal to -4
Interval notation: [-4, โ)
Set-builder notation: {x | x โฅ -4}
Answer: x โฅ -4 or [-4, โ)
7Problem 7hard
โ Question:
Find the range of
๐ก Show Solution
This is a quadratic function that opens upward ().
Step 1: Find the vertex (the minimum point)
Step 2: Find the y-coordinate of the vertex
The vertex is .
Since the parabola opens upward, the minimum y-value is and it goes to .
Answer: Range:
8Problem 8hard
โ Question:
Find the domain and range of f(x) = xยฒ - 4
๐ก Show Solution
Step 1: Find the domain: This is a quadratic function with no restrictions. Domain: All real numbers or (-โ, โ)
Step 2: Understand the graph: f(x) = xยฒ - 4 is a parabola that opens upward (because coefficient of xยฒ is positive).
Step 3: Find the vertex (minimum point): This is in the form f(x) = (x - 0)ยฒ - 4 Vertex is at (0, -4)
Step 4: Determine the range: Since the parabola opens upward and the minimum y-value is -4, all y-values are โฅ -4.
Step 5: Write the range: Range: [-4, โ) or {y | y โฅ -4}
Answer: Domain: (-โ, โ), Range: [-4, โ)
Practice with Flashcards
Review key concepts with our flashcard system
Browse All Topics
Explore other calculus topics