Solved Exercises on Domain and Range of Functions in Precalculus

Master domain and range of functions: finding domains, ranges, and analyzing function behavior through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Linear Function Domain and Range
Exercise 1
Find the domain and range of the linear function:
\(f(x) = 3x - 2\)
Definition:

Domain: The set of all possible input values (x-values) for which a function is defined.
Range: The set of all possible output values (y-values) that a function can produce.

Finding domain and range method:
  1. Identify restrictions on the input (what x-values are allowed)
  2. Determine the output behavior (what y-values are possible)
  3. Express results in interval notation or set notation
Function
\(f(x) = 3x - 2\)
Domain
\((-\infty, \infty)\)
Range
\((-\infty, \infty)\)
Step 1: Analyze the function type

This is a linear function with no restrictions on x. There are no denominators, radicals, or logarithms that could limit the domain.

Step 2: Determine the domain

Since there are no restrictions (division by zero, negative under square root, etc.), x can be any real number. Domain: \((-\infty, \infty)\) or \(\mathbb{R}\).

Step 3: Determine the range

As x approaches \(-\infty\), \(f(x) = 3x - 2\) approaches \(-\infty\).
As x approaches \(\infty\), \(f(x) = 3x - 2\) approaches \(\infty\).
Since the function is continuous and increasing (slope = 3 > 0), it takes all real values. Range: \((-\infty, \infty)\) or \(\mathbb{R}\).

Domain: \((-\infty, \infty)\), Range: \((-\infty, \infty)\)
Final answer:

For \(f(x) = 3x - 2\): Domain = \((-\infty, \infty)\), Range = \((-\infty, \infty)\)

Applied rules:

• Linear functions: Have domain and range of all real numbers unless restricted

• Continuous functions: Take all intermediate values between extremes

• Interval notation: Parentheses indicate open intervals (not including endpoints)

2 Rational Function Domain and Range
Exercise 2
Find the domain and range of the rational function:
\(f(x) = \frac{2}{x - 4}\)
Definition:

Rational function: A function that can be expressed as the ratio of two polynomials. The domain excludes values that make the denominator zero.

Function
\(f(x) = \frac{2}{x - 4}\)
Domain
\((-\infty, 4) \cup (4, \infty)\)
Range
\((-\infty, 0) \cup (0, \infty)\)
Step 1: Identify domain restrictions

The denominator cannot equal zero: \(x - 4 \neq 0\), so \(x \neq 4\).
Domain: All real numbers except 4. In interval notation: \((-\infty, 4) \cup (4, \infty)\).

Step 2: Analyze the function behavior

As \(x \to 4^-\) (from the left), \(f(x) \to -\infty\)
As \(x \to 4^+\) (from the right), \(f(x) \to \infty\)
As \(x \to \pm\infty\), \(f(x) \to 0\)
The function never equals zero since the numerator is 2 (non-zero).

Step 3: Determine the range

Since the function approaches 0 but never reaches it (the numerator is always 2), and can take any positive or negative value except 0, the range is all real numbers except 0: \((-\infty, 0) \cup (0, \infty)\).

Domain: \((-\infty, 4) \cup (4, \infty)\), Range: \((-\infty, 0) \cup (0, \infty)\)
Final answer:

For \(f(x) = \frac{2}{x - 4}\): Domain = \((-\infty, 4) \cup (4, \infty)\), Range = \((-\infty, 0) \cup (0, \infty)\)

Applied rules:

• Division restriction: Denominator cannot equal zero

• Rational functions: May have horizontal asymptotes that exclude values from range

• Union notation: Use \(\cup\) to combine separate intervals

3 Square Root Function Domain and Range
Exercise 3
Find the domain and range of the square root function:
\(f(x) = \sqrt{x + 5}\)
Definition:

Radical function: A function containing a radical (square root, cube root, etc.). For even-indexed radicals (square roots, fourth roots), the expression under the radical must be non-negative.

Function
\(f(x) = \sqrt{x + 5}\)
Domain
\([-5, \infty)\)
Range
\([0, \infty)\)
Step 1: Find domain restrictions

For the square root to be real, the expression under the radical must be non-negative:
\(x + 5 \geq 0\)
\(x \geq -5\)
Domain: \([-5, \infty)\) (includes -5 since inequality is non-strict)

Step 2: Analyze the function behavior

At the left endpoint: \(f(-5) = \sqrt{-5 + 5} = \sqrt{0} = 0\)
As \(x \to \infty\), \(f(x) \to \infty\)
The function is increasing since the derivative is positive for \(x > -5\).

Step 3: Determine the range

The minimum value occurs at \(x = -5\), where \(f(-5) = 0\).
As x increases, f(x) increases without bound.
Range: \([0, \infty)\) (starts at 0 and includes all positive values)

Step 4: Verify with examples

Test: At \(x = 4\), \(f(4) = \sqrt{4 + 5} = \sqrt{9} = 3\) ✓
Test: At \(x = -6\), \(f(-6) = \sqrt{-6 + 5} = \sqrt{-1}\) (undefined) ✓

Domain: \([-5, \infty)\), Range: \([0, \infty)\)
Final answer:

For \(f(x) = \sqrt{x + 5}\): Domain = \([-5, \infty)\), Range = \([0, \infty)\)

Applied rules:

• Even roots: Require non-negative radicand (expression under radical)

• Interval notation: Brackets indicate inclusion, parentheses indicate exclusion

• Square root behavior: Minimum value at domain endpoint, increases to infinity

Domain and Range: Rules, Methods, Laws, Definitions
\(\text{Domain} = \{x \mid f(x) \text{ is defined}\}\)
Definition of Domain
Range Definition
\(\text{Range} = \{y \mid y = f(x) \text{ for some } x \text{ in domain}\}\)
Definition of Range
Common Restrictions
Denominator ≠ 0, Radicand ≥ 0
Domain Limitations
Interval Notation
\((a,b), [a,b], (a,\infty)\)
Notation for Sets
Key definitions:

Domain: The set of all possible input values (x-values) for which a function is mathematically defined and produces a real output value.

Range: The set of all possible output values (y-values) that a function can produce when all valid input values are used.

Interval Notation: A way to represent sets of real numbers using parentheses and brackets to indicate whether endpoints are included or excluded.

Complete methodology:
  1. Identify function type: Determine if it's linear, quadratic, rational, radical, exponential, etc.
  2. Find domain restrictions: Look for division by zero, negative under even roots, logarithm of non-positive numbers
  3. Analyze function behavior: Consider end behavior, extrema, and continuity
  4. Determine range: Based on function behavior and domain constraints
  5. Express results: Use proper interval or set notation
Tip 1: Always start with domain restrictions - they're usually easier to find.
Tip 2: Graph the function to visualize domain and range.
Tip 3: For rational functions, check for horizontal asymptotes that may exclude values from the range.
Tip 4: Remember that even roots require non-negative radicands.
Common Restrictions: Division by zero, negative under even roots, logarithm of non-positive numbers, arcsine/arccosine of values outside [-1,1].
Notation Keys: Parentheses mean exclusion, brackets mean inclusion, union symbol ∪ connects separate intervals.
Function-Specific Rules:

• Polynomials: Domain is all real numbers, range depends on degree and leading coefficient

• Rational: Exclude values that make denominator zero from domain

• Radicals: Even roots require non-negative radicands

• Logarithmic: Argument must be positive

• Trigonometric: Domain is usually all reals, range is bounded

Domain and Range Summary

📊
Domain Restrictions
Division: Denominator ≠ 0
Even Roots: Radicand ≥ 0
Logarithms: Argument > 0

Always check for these common restrictions first.

Range Analysis
Consider min/max values
Check end behavior
Look for exclusions

Analyze function behavior to determine possible outputs.

Domain/Range Workflow
1
Identify Function Type
2
Find Domain Restrictions
3
Analyze Behavior
4
Determine Range
Notation Guide
• (a,b) = exclusive endpoints
• [a,b] = inclusive endpoints
• ∪ = union of intervals
• ∞ = infinity (always exclusive)
Remember: Domain first, then range!
Solution: Exercises 4 to 5
4 Quadratic Function Domain and Range
Exercise 4
Find the domain and range of the quadratic function:
\(f(x) = -2x^2 + 4x + 1\)
Definition:

Quadratic function: A polynomial function of degree 2, typically in the form \(f(x) = ax^2 + bx + c\). Its graph is a parabola that opens upward if \(a > 0\) or downward if \(a < 0\).

Function
\(f(x) = -2x^2 + 4x + 1\)
Domain
\((-\infty, \infty)\)
Range
\((-\infty, 3]\)
Step 1: Determine the domain

Since this is a polynomial function, there are no restrictions on x. Domain: \((-\infty, \infty)\).

Step 2: Analyze the parabola characteristics

Since \(a = -2 < 0\), the parabola opens downward, meaning it has a maximum value at its vertex.

Step 3: Find the vertex

The x-coordinate of the vertex is: \(x = -\frac{b}{2a} = -\frac{4}{2(-2)} = -\frac{4}{-4} = 1\)
The y-coordinate is: \(f(1) = -2(1)^2 + 4(1) + 1 = -2 + 4 + 1 = 3\)
Vertex: (1, 3)

Step 4: Determine the range

Since the parabola opens downward and has its maximum value at the vertex (1, 3), the function can take any value less than or equal to 3. Range: \((-\infty, 3]\).

Domain: \((-\infty, \infty)\), Range: \((-\infty, 3]\)
Final answer:

For \(f(x) = -2x^2 + 4x + 1\): Domain = \((-\infty, \infty)\), Range = \((-\infty, 3]\)

Applied rules:

• Polynomial domain: Always all real numbers

• Parabola direction: Determined by sign of leading coefficient

• Vertex formula: \(x = -\frac{b}{2a}\) for quadratic \(ax^2 + bx + c\)

5 Complex Rational Function Domain and Range
Exercise 5
Find the domain and range of the rational function:
\(f(x) = \frac{x + 2}{x^2 - 9}\)
Definition:

Complex rational function: A rational function where both numerator and denominator are polynomials. The domain excludes values that make the denominator zero.

Function
\(f(x) = \frac{x + 2}{x^2 - 9}\)
Domain
\((-\infty, -3) \cup (-3, 3) \cup (3, \infty)\)
Range
\((-\infty, \infty)\)
Step 1: Factor the denominator

\(x^2 - 9 = (x - 3)(x + 3)\)
The function is undefined when the denominator equals zero: \(x = 3\) or \(x = -3\).

Step 2: Determine the domain

Exclude \(x = -3\) and \(x = 3\) from the domain.
Domain: \((-\infty, -3) \cup (-3, 3) \cup (3, \infty)\).

Step 3: Analyze the function behavior

Vertical asymptotes at \(x = -3\) and \(x = 3\).
As \(x \to \pm\infty\), \(f(x) \to 0\) (since degree of denominator > degree of numerator).
The function has local maximum and minimum values in each interval.

Step 4: Determine the range

Although the function approaches 0 as \(x \to \pm\infty\), and has vertical asymptotes, it can take any real value because the function spans from \(-\infty\) to \(\infty\) across its three intervals. Range: \((-\infty, \infty)\).

Domain: \((-\infty, -3) \cup (-3, 3) \cup (3, \infty)\), Range: \((-\infty, \infty)\)
Final answer:

For \(f(x) = \frac{x + 2}{x^2 - 9}\): Domain = \((-\infty, -3) \cup (-3, 3) \cup (3, \infty)\), Range = \((-\infty, \infty)\)

Applied rules:

• Factoring: Helps identify domain restrictions quickly

• Vertical asymptotes: Occur where denominator is zero and numerator is non-zero

• Horizontal asymptotes: Depend on degrees of numerator and denominator

Domain and Range: Comprehensive Guide
\(\text{Domain: } \{x \in \mathbb{R} \mid f(x) \in \mathbb{R}\}\)
Mathematical Definition of Domain
Key definitions:

Domain: The set of all input values (x-values) for which a function is defined and produces a real output value. It represents all possible values that can be substituted into the function.

Range: The set of all output values (y-values) that a function can produce when all valid input values are used. It represents all possible results of the function.

Interval Notation: A mathematical notation that describes a set of real numbers using intervals. Parentheses () indicate exclusion of endpoints, brackets [] indicate inclusion of endpoints.

Complete methodology:
  1. Identify the function type: Determine if it's polynomial, rational, radical, exponential, logarithmic, trigonometric, etc.
  2. Find domain restrictions: Look for values that would make the function undefined (division by zero, negative under even root, logarithm of non-positive, etc.)
  3. Analyze function behavior: Consider continuity, extrema, end behavior, and any constraints
  4. Determine the range: Based on the function's behavior over its entire domain
  5. Express in proper notation: Use interval notation, set notation, or inequalities as appropriate
Tip 1: Always factor denominators and radicands to identify restrictions more easily.
Tip 2: For quadratic functions, find the vertex to determine the range.
Tip 3: Graph the function to visualize domain and range, especially for complex functions.
Tip 4: Remember that rational functions with higher degree denominators often have horizontal asymptotes.
Common errors: Forgetting to exclude values that make denominators zero, incorrectly handling radical restrictions, confusing domain and range.
Exam preparation: Memorize common function restrictions, practice factoring, understand function behaviors and asymptotes.
Function-Specific Rules:

• Linear functions: Domain and range are both \((-\infty, \infty)\) unless restricted

• Quadratic functions: Domain is \((-\infty, \infty)\), range depends on vertex and direction of opening

• Rational functions: Exclude values that make denominator zero from domain

• Radical functions: Even roots require non-negative radicands, odd roots allow all reals

• Logarithmic functions: Domain requires positive argument

Exercise with Visualization: Function Domains and Ranges
Exercise 6: Comparing Function Behaviors
Consider the following functions:
\(f_1(x) = x^2\)
\(f_2(x) = \sqrt{x}\)
\(f_3(x) = \frac{1}{x}\)
\(f_4(x) = x^3\)

Analysis: The chart shows how different function types have distinct domain and range characteristics.

  • \(f_1(x) = x^2\): Domain \((-\infty, \infty)\), Range \([0, \infty)\)
  • \(f_2(x) = \sqrt{x}\): Domain \([0, \infty)\), Range \([0, \infty)\)
  • \(f_3(x) = \frac{1}{x}\): Domain \((-\infty, 0) \cup (0, \infty)\), Range \((-\infty, 0) \cup (0, \infty)\)
  • \(f_4(x) = x^3\): Domain \((-\infty, \infty)\), Range \((-\infty, \infty)\)

Questions & Answers

Question: I'm having trouble understanding why the range of \(f(x) = \sqrt{x}\) is \([0, \infty)\) instead of \((-\infty, \infty)\). Doesn't the square root of a number sometimes give negative results?

Answer: This is a very common misconception! The key is understanding the definition of the principal square root:

  • The principal square root: When we write \(\sqrt{x}\), we're referring to the principal (non-negative) square root of x
  • By definition: \(\sqrt{x} \geq 0\) for all \(x \geq 0\)
  • Example: \(\sqrt{9} = 3\) (not \(\pm 3\))

If we wanted both positive and negative square roots, we would write \(\pm\sqrt{x}\). But the function \(f(x) = \sqrt{x}\) is defined to return only the non-negative value.

Therefore, since the smallest value of \(\sqrt{x}\) occurs at \(x = 0\) where \(f(0) = \sqrt{0} = 0\), and as x increases, \(\sqrt{x}\) increases without bound, the range is \([0, \infty)\).

This ensures that \(\sqrt{x}\) defines a function (passing the vertical line test).

Question: How do I find the domain of a function like \(f(x) = \sqrt{x - 3} + \frac{1}{x - 5}\)? Do I need to consider both parts separately?

Answer: Yes, you need to consider each part of the function separately and then find their intersection:

  1. For the square root part: \(\sqrt{x - 3}\) requires \(x - 3 \geq 0\), so \(x \geq 3\)
  2. For the rational part: \(\frac{1}{x - 5}\) requires \(x - 5 \neq 0\), so \(x \neq 5\)
  3. Combine requirements: Both conditions must be satisfied simultaneously

The domain is the intersection of \(x \geq 3\) AND \(x \neq 5\).
This gives us: \([3, 5) \cup (5, \infty)\)

In general, when a function is composed of multiple parts, the domain is the intersection of the domains of all parts. Each operation must be valid for the function to be defined.

You can verify: At \(x = 3\): \(f(3) = \sqrt{0} + \frac{1}{-2} = 0 - 0.5 = -0.5\) ✓
At \(x = 5\): \(f(5) = \sqrt{2} + \frac{1}{0}\) (undefined) ✓
At \(x = 6\): \(f(6) = \sqrt{3} + \frac{1}{1} = \sqrt{3} + 1\) ✓

Question: For rational functions, how do I know when the range includes all real numbers versus when it has exclusions?

Answer: The range of rational functions depends on their horizontal asymptotes and whether they cross them:

  • Horizontal asymptote at y = L: If the function approaches but never reaches L, then L is excluded from the range
  • Degree comparison:
    • If degree of numerator < degree of denominator: HA at y = 0
    • If degrees are equal: HA at y = ratio of leading coefficients
    • If degree of numerator > degree of denominator: No HA (range often all reals)
  • Functions that cross their HA: May still have exclusions depending on the specific function

For example:
\(f(x) = \frac{1}{x}\) has range \((-\infty, 0) \cup (0, \infty)\) (excludes 0)
\(f(x) = \frac{x}{x^2 + 1}\) has range \([-0.5, 0.5]\) (bounded)
\(f(x) = \frac{x^2}{x - 1}\) has range \((-\infty, \infty)\) (all reals)

To determine this precisely, you often need to solve \(y = f(x)\) for x and see what y-values allow real solutions.

Question: What's the difference between domain/range in interval notation versus set notation, and when should I use each?

Answer: Both notations express the same mathematical concept but in different ways:

  • Interval notation: Uses parentheses and brackets to describe continuous sets of numbers
    • \((a, b)\) = all numbers between a and b, excluding a and b
    • \([a, b]\) = all numbers between a and b, including a and b
    • \([a, b) \cup (c, d]\) = union of two intervals
  • Set notation: Uses set-builder notation to describe conditions
    • \(\{x \in \mathbb{R} \mid x > 2\}\) = all real numbers greater than 2
    • \(\{y \in \mathbb{R} \mid y \neq 0\}\) = all real numbers except 0

When to use each:

  • Interval notation: Best for continuous ranges, more concise
  • Set notation: Better for discrete sets or complex conditions
  • Both acceptable: Unless specified otherwise, either is fine

Example equivalence:
Interval: \([1, 5)\) ↔ Set: \(\{x \in \mathbb{R} \mid 1 \leq x < 5\}\)