A function is a rule that assigns exactly one output to each allowable input. This idea, one output per input, is the cornerstone of all of calculus. Understanding domains, ranges, and how to read a function's graph are prerequisites for every topic that follows.
| Concept | Description |
|---|---|
| Domain () | Set of allowable inputs |
| Range () | Set of actual outputs |
| Co-domain | Target set in |
| Graph of | Set of all points |
Definition of a Function
A function from a set to a set is a rule that assigns, to each element in , one and only one element in . We write .
Sets and are called the domain and co-domain of , respectively. To say that is a function with domain and co-domain , we write .
- If , we call the independent variable (the argument or input) and the dependent variable (the value of at , the image of under , or the output).
- In elementary calculus, and are assumed to be subsets of unless stated otherwise.
Strictly speaking, is the value of at , but we commonly say "the function " or "the function ." For example, the function that squares its input can be described as:
- "the function "
- "the function " (if we call the dependent variable )
- "the function "
All three descriptions refer to the same object.
The Graph of a Function
The graph of a function is the set of all ordered pairs where is in the domain of and . In rectangular coordinates, the graph is a curve (or collection of curves) in the plane. It provides a visual picture of how the output of depends on the input.
Determining the Domain and Range from the Graph
- To check whether a specific -value is in the range: draw a horizontal line at that -value. If it intersects the graph, the value is in the range. The horizontal projection of the graph onto the -axis is the range.
- To check whether a specific -value is in the domain: draw a vertical line at that -value. If it intersects the graph, the value is in the domain. The vertical projection of the graph onto the -axis is the domain.

Finding the domain and range of a function using its graph.
The Natural Domain and Range
When the domain of a function is not specified, we assume it to be the set of all real numbers for which is defined and real. This set is the natural domain of , denoted .
The set of all real numbers for which is real is called the natural domain (or simply the domain) of the function.
- To restrict the domain, you must say so explicitly. For example, "" restricts the domain to positive numbers. Without that qualifier, the domain of is all of .
The range of is the set of all possible outputs:
If , the range of is
Note that the range is always a subset of the co-domain: .
Natural Domains of Common Functions
- Polynomial : defined for every real . Domain: .
- (): defined for all except . Domain: .
- (even root, ): defined for . Domain: .
- (odd root, ): defined for every real . Domain: .
- : defined only for . Domain: .
- ( constant): defined for every real and always positive. Domain: .
- Rational function : domain is all except where .
- or : defined for every real . Domain: .
- : defined for all except ( any integer), where .
- or : defined only for . Domain: .
- : defined for every real . Domain: .
Frequently Asked Questions
What is the difference between "the function " and "the function "?
Strictly, is the function (the rule), and is the value the function assigns to the specific input . However, in practice, people say "the function " to mean both the rule and its formula. The distinction matters when you compose functions or invert them: is the inverse of as a rule, not the reciprocal of .How do I find the natural domain of a function like ?
You need two conditions to hold simultaneously:- , so (the radicand must be nonnegative).
- , so (the denominator cannot be zero).