✦ScienexySCIENCE KNOWLEDGE LIBRARY
reference · SCI-MAT-007-009

Domain and Range of Functions

The domain of a function is the set of permitted input values, while its range is the set of actual output values produced by those inputs. Identifying both is essential for evaluating functions, interpreting graphs, and applying calculus correctly.

  • f: D → C

  • Domain(f) = D

  • Range(f) = {f(x) : x ∈ D}

  • Range(f) ⊆ C

Explanation

Every mathematical function has a domain and a range. The domain is the set of all input values for which the function is defined according to its rule and mathematical context. The range is the set of all output values that the function actually produces when its inputs vary throughout the domain. A codomain is also specified in the formal definition of a function, but it does not necessarily equal the range. For example, if f maps the real numbers to the real numbers using f(x) = x², its domain is all real numbers, while its range is the set of nonnegative real numbers. Domain restrictions may arise from division by zero, even roots of negative real numbers, logarithms of nonpositive real numbers, inverse trigonometric functions, or physical restrictions in a model. The range is determined by analysing the possible outputs over the permitted domain. It may be found using algebra, inequalities, graph interpretation, calculus, or other mathematical methods. Domain and range are important in calculus because limits, continuity, derivatives, and integrals depend on where a function is defined and how it behaves. A function may have a restricted domain even when its algebraic expression appears simple. Domain and range should therefore be determined from the complete function definition and not from the formula alone when contextual restrictions are present.

Variables

  • f: the function.

  • D: the domain.

  • C: the codomain.

  • x: an input value.

  • f(x): the corresponding output.

  • Range(f): the set of all actual outputs.

  • R: the set of real numbers.

  • √x: the principal real square root when x ≥ 0.

Example or application

Consider f(x) = √(x − 2), with real-valued outputs. The expression under the square root must be nonnegative, so x − 2 ≥ 0 and x ≥ 2. Therefore, the domain is [2, ∞). The square root is always nonnegative, so the range is [0, ∞).

Definition

The domain of a function is the set of all permitted input values for which the function is defined, while the range is the set of all actual output values produced by the function over its domain.

Purpose

The purpose of determining domain and range is to establish where a function can be used and what outputs it can produce. This ensures that calculations, graphs, mathematical models, and calculus operations are applied only where the function is appropriately defined.

Importance

Domain and range determine the valid inputs and possible outputs of a mathematical model. They help identify discontinuities, restrictions, asymptotic behavior, and the intervals on which calculus operations can be performed. They are also necessary for inverse functions, composite functions, optimization, and mathematical modelling. In applied science, they ensure that a function is not used outside physically meaningful conditions.

Learning Objectives

  • Define the domain and range of a function.

  • Distinguish domain, range, and codomain.

  • Determine the domain of polynomial and rational functions.

  • Determine domain restrictions involving square roots and logarithms.

  • Find the range of simple functions.

  • Use graphs to interpret domain and range.

  • Express domains and ranges using interval and set-builder notation.

  • Understand how domain restrictions affect calculus operations.

  • Recognize the difference between mathematical and contextual restrictions.

Key Concepts

  • Domain: the set of permitted input values.

  • Range: the set of actual outputs produced by a function.

  • Codomain: the specified target set of a function.

  • Interval notation: a compact method of representing continuous sets of real numbers.

  • Set-builder notation: a method of describing a set through a defining condition.

  • Domain restriction: a condition that excludes inputs for which a function is undefined or inappropriate.

  • Vertical asymptote: a vertical line near which function values may grow without bound in magnitude.

  • Endpoint: a boundary value of an interval.

  • Image of a set: the collection of outputs produced by applying a function to elements of that set.

  • Inverse function: a function that reverses the input-output relationship when the original function is one-to-one on its domain.

Working Principle

The domain is determined by checking which inputs make every part of the function meaningful. For real-valued functions, denominators must be nonzero, even-root radicands must be nonnegative, and logarithm arguments must be positive. The range is determined by finding all possible outputs generated by those valid inputs. Algebraic transformations, inequalities, graphs, and calculus can be used to establish the range. The final result must respect the specified domain and codomain.

Process

Write the function and identify its mathematical setting. Check for denominators, roots, logarithms, inverse trigonometric functions, and contextual restrictions. Solve the resulting conditions to determine the domain. Next, analyse the outputs produced over that domain using algebra, inequalities, graph behavior, or calculus. Express the domain and range clearly using interval notation or set-builder notation. Verify that the result agrees with the function's graph and any stated physical constraints.

Applications

  • Calculus: identifying intervals where limits, continuity, and derivatives can be studied.

  • Physics: restricting mathematical models to physically meaningful time and position values.

  • Chemistry: determining valid concentration, temperature, and pressure inputs in models.

  • Economics: defining feasible production and price ranges.

  • Engineering: identifying valid operating ranges for system models.

  • Computer science: specifying valid input ranges and output types for mathematical functions.

  • Statistics: determining the support of probability distributions.

  • Geometry: describing the possible lengths, areas, and volumes in mathematical models.

Worked Example

Problem: Find the domain and range of f(x) = 1/(x − 3), with real inputs and outputs. Step 1: Identify the denominator x − 3. Step 2: A denominator cannot equal zero, so x − 3 ≠ 0. Step 3: Therefore, x ≠ 3, and the domain is (−∞, 3) ∪ (3, ∞). Step 4: Consider the output y = 1/(x − 3). Since the numerator is nonzero, y cannot equal zero. Step 5: Every other real output is possible because for any y ≠ 0, x = 3 + 1/y is a valid input. Therefore, the range is (−∞, 0) ∪ (0, ∞).

Common Misconceptions

  • The domain and range are always equal. They are determined by different aspects of a function.

  • The codomain is always the same as the range. The range is contained within the codomain but may be smaller.

  • The domain of every polynomial is all real numbers. This is true for ordinary real polynomials, but not for every type of function.

  • A denominator can equal zero if the numerator is also zero. The original rational expression remains undefined at a zero denominator unless a separate extension is explicitly defined.

  • A square root always allows negative inputs. For real-valued square roots, the radicand must be nonnegative.

  • The range can be found by looking only at a few table values. A finite sample does not establish every possible output.

  • A graph's visible window gives the complete domain and range. The viewing window may show only part of the actual graph.

Practice Questions

  • Define domain, range, and codomain.

  • Find the domain of f(x) = 1/(x + 4).

  • Find the domain of f(x) = √(x − 5).

  • Find the domain of f(x) = ln(x + 2).

  • Determine the range of f(x) = x² over all real numbers.

  • Determine the domain and range of f(x) = 1/x.

  • Explain why the range of a function is always contained in its codomain.

  • How can a graph help determine domain and range?

  • Find the domain of f(x) = √(9 − x²).

  • Explain why domain restrictions matter when studying limits and derivatives.

Key Takeaway

The domain identifies every valid input, and the range identifies every output actually produced. Both must be understood before evaluating, graphing, differentiating, integrating, or applying a function to a real-world model.

Prerequisites

  • Functions and function notation.

  • Real numbers and number intervals.

  • Algebraic equations and inequalities.

  • Rational expressions.

  • Square roots and logarithms.

  • Basic coordinate graphs.

Reference

  • James Stewart, Calculus: Early Transcendentals, Cengage Learning.

  • OpenStax, Precalculus 2e, Rice University.

  • OpenStax, Calculus Volume 1, Rice University.

Related Topics

  • Functions and Their Representations

  • Graphs of Functions

  • Algebraic Functions and Transcendental Functions

  • Polynomial and Rational Functions

  • Exponential and Logarithmic Functions

  • Composite and Inverse Functions

  • The Fundamental Idea of Limits

Sources and verification

Sources are shown as provided in the project data. Not every source has yet been independently verified. Please report errors or missing citations.

  • Source verification pending; check an authoritative textbook, university, standards body, or peer-reviewed source.

Suggest a correction or source · More in Calculus