Skip to main content
Home › Categories › Mathematics, Logic & Statistics › Functions: Domain, Range, Notation, and Graphs

Functions: Domain, Range, Notation, and Graphs

Author: ZUVDEX Team 4 min read
functions domain and range function notation domain of a function range graphing functions composite functions

A function assigns exactly one output to each allowed input. Function notation, graphs, tables, and rules are different ways to represent the same input-output relationship; domain and range specify which inputs and outputs are included.

Key Highlights

  • A relation is a function when every input in its domain has one output.
  • The domain is the set of allowed inputs; the range is the set of outputs actually produced.
  • Composition applies one function to another function’s output, with domain restrictions checked at each stage.
  • An inverse reverses input and output only when the original function is one-to-one on the chosen domain.

Definition and notation

A function f maps each input x in a domain to exactly one output f(x). The notation f(x) means “the value of f at x”; it is not multiplication of f by x. A relation with one input paired to two different outputs is not a function. The vertical-line test is a visual version of this rule for graphs: if a vertical line intersects the graph more than once, the relation fails to be a function of x.

Functions may be described by formulas, tables, graphs, words, or algorithms. For f(x)=2x+1, f(3)=7. A piecewise function uses different rules on specified parts of the domain, so endpoints and interval conditions matter.

Domain and range

The domain contains inputs for which the rule is defined and meaningful; the range contains outputs the function actually produces. For f(x)=√(x−2), real-valued inputs must satisfy x≥2, so the domain is [2,∞). Since a square root is nonnegative, the range is [0,∞). For a rational function, any value that makes a denominator zero is excluded.

Do not confuse a formula’s possible domain with the context domain. A mathematical formula may accept negative values, while a real application such as the side length of a square restricts inputs to nonnegative values. State the assumption being used.

Graphs and transformations

A graph plots ordered pairs (x,f(x)). Translating a graph vertically changes the output: f(x)+k shifts it up by k. Replacing x with x−h shifts the graph right by h. Multiplication by a factor can stretch or reflect the graph. These transformations are easiest to verify by tracking a few points, rather than memorizing signs without context.

For example, y=(x−2)²+1 is the graph of y=x² shifted right 2 and up 1. Its vertex is (2,1). The domain remains all real numbers; the range becomes y≥1.

Composition and inverse functions

The composition (f∘g)(x)=f(g(x)) applies g first, then f. If g(x)=x+2 and f(x)=x², then (f∘g)(x)=(x+2)². The allowed inputs must be in the domain of g and must produce outputs that are in the domain of f.

An inverse function f⁻¹ undoes f: f⁻¹(f(x))=x on the appropriate domain. A function needs to be one-to-one for its inverse to also be a function; restricting a parabola to one side of its vertex can make it one-to-one. To find a candidate inverse, write y=f(x), switch x and y, solve for y, and verify both compositions on their domains.

Check a function model

When modeling a real situation, specify the units and meaning of inputs and outputs. A function can fit observed data yet behave poorly outside the observed range. Extrapolation should be justified, and a graph should include meaningful axes and scale. Continue to linear functions, quadratic functions, and mathematical foundations for machine learning.

Representations and model selection

A table can reveal a pattern, a formula can support exact calculation, and a graph can make behavior visible. None is automatically superior: choose the representation that answers the question. Finite observations never determine a unique function without additional assumptions. Many curves can pass through the same points, so model choice should reflect the mechanism, data quality, and intended range.

When comparing two functions, examine where both are defined and what their outputs mean. If f maps dollars to kilograms and g maps kilograms to packages, then g∘f has units of packages per dollar only if the operations and unit meanings are compatible. A mathematically legal composition can still be nonsensical if the input and output types do not align.

FAQs

Why should I check a mathematical solution?

Substitute the result into the original equation or definition and confirm that all domain restrictions and units are satisfied.

Is a graph a substitute for algebraic reasoning?

A graph helps interpret and estimate behavior, but exact conclusions should be supported by algebra or a stated theorem when precision matters.

How do I avoid memorizing rules without understanding them?

Connect each operation to its meaning, test a simple example, and note the conditions under which the rule is valid.

References & Sources

  • OpenStax, Algebra and Trigonometry 2e — Functions: https://openstax.org/books/algebra-and-trigonometry-2e/pages/3-1-functions-and-function-notation
  • OpenStax, Algebra and Trigonometry 2e — Domain and Range: https://openstax.org/books/algebra-and-trigonometry-2e/pages/3-2-domain-and-range
  • OpenStax, Algebra and Trigonometry 2e: https://openstax.org/details/books/algebra-and-trigonometry-2e