Functions
Here we describe what a function is, what a domain for which a function is valid is, and what intervals are.
At the most basic, a function is a colelction of unknown variables. For example:
or more generically:
or extremely generically:
Functions vs. Relationships
A function describes a relationship between inputs and outputs such that each input maps to exactly one output. Image that the figure below was for the production of widgets. We have a set of inputs: 'green', 'blue', 'red', and 'orange' and a set of output: 'circle', square', 'triangle' and 'rectangle'. Inputting an input color or variable () results in each output shape or value (). We can then say that shape is a function of color.

A function is a subset of what are more broadly defined as relations and the distinction between a relation and a function has to do with the number of possible output values. A function maps an input value to one, and only one, output value. Using the above example, if we input 'red' into our function and got back either 'circles' or 'squares', we would have a relationship. If we knew that the returned value would always be a 'circle', we have a function.
Graphically, if were to draw a vertical line at an arbitrary point and the resulting was unique, we would have a function. The figure below illustrates that distinction. On the left, we have a simple linear function describable generically as (read f-of-x) or more specifically as (the standard equation of a line). In the center, we have a more complex function that can still be abstractly notated as . Finally, the right-hand image is not a function. Here we have multiple potential vaules of for the represented by the red line. This is a relationship.
Note: Throughout this text, functions will largely be notated as . This is simply by convention. It is equally valid to utilize , , , etc.
Types of Relations
Above we reviewed the standard equation of a line (). This equation describes a linear relationship. One unit increase in has a corresponding unit increase in . The relationship between these is linear. When we see a function or equation that contains only or operations, the relationship is linear. For example:
Intuitively, a non-linear relationship indicates that variables will not change in a linear fashion. For example, . Increases in do not follow a line, but are, in this case, exponential. Other examples of non linear relations are:
Supplemental Video
Functions vs. Equations
What differentiates an equation from a function? Assume that we have the following equation: Here we see an equal sign () denoting an equivilency. An equation is defining a relationship (). When we notate a function , we do not have the equivelency constraint. Not all functions are equations and not all equations are necessarily functions.
Supplemental Video
Domains
A function need not be generically applicable to anything you could possible throw at it. For example, the above color-to-shape function might not be able to accept '11' as a variable and return any meaningful output. We there for define a domain, or a range of acceptable input variables, for a given function.
Some commonly used domains include:
- Real Numbers (denoted by )
- Rational Numbers
- Integers: -4, 0, 2, 10, ... (denoted by )
- Fractions: 1/10, 1/3, 0.1, 0.04
- Prime Number: 2,3,5,7,... (denoted by )
- Irrational Numbers (denoted by )
- ,
- Rational Numbers
When defining a function, it also important to define the domain for which the function is valid. We do this using some interval.
You will frequently encounter domains notated as , which can be read as 'all in the set of real numbers'.
Cartesian Coordinate Systems
As geographers, we often work in a two-dimensional, Cartesian coordinate system. The units in this coordinate systems are real numbers, and the planar domain is notated as . Coordinates in this domain are identified by the ordered pair (x,y) and have some defined origin (typically (0,0)).
Here we could using the notation meaning 'all points in the cartesian plane'.
Supplemental Video
Intervals
Intervals are used in conjunction with a domain to further constrain potential inputs to a function. We can broadly define two types of intervals:
Open Interval: An open interval does not include the endpoints of the given domain. For example . The left hand image of the figure below illustrates an open interval. We notate an open interval using parenthesis: .
Closed Interval: A closed interval does include the endpoints of a given domain. For example . The central image of the figure below illustrates a closed interval. We notate a closed interval using square brackets: .
Finally, it is possible to mix open and closed intervals:
- Notated:
- Notated:
Mixed open and closed intervals are shown in the right hand image of the figure below.
Using the notation from above , we can include an interval definition as well. For example, if and the domain is , we can write , meaning 'all real number values of between, greater than -10 and less than 10.



