6.1 The Basic Definition of a Function

The concept of a function is one that is fundamental to all area of mathematics. We will be using functions thoroughly from now on so it’s a good time to review exactly what a function is and how we can manipulate them.

Definition 6.1.

Let D and R be non-empty sets. Then fD×R is a function if xD,y,zR,(x,y)f and (x,z)fy=z.

In English this says that a function is a binary relation on two sets, and what makes a function different from any old binary relation is the property that every xD is paired with a unique yR.

Definition 6.2.

Let fD×R be a function. Then we say f:DR and denote the unique yR associated with xD as f(x).

  • D is domain of the function, denoted dom(f).

  • R is the range11 1 Some people use the term range in an ambiguous way. A less ambiguous term is codomain, which means the same thing as we have just defined for range. of the function, denoted range(f).

  • The image of f, im(f), is defined as {f(x):xD}, or more explicitly {yR:xD,f(x)=y}. The image is a subset of the range, and may or may not be a proper subset.

  • For a given x, f(x) may be referred to as the image of x under f, or the value of f at x, or the output of f for the input x.

To express what the image of some function f actually is, we need some kind of formula for the image of an arbitrary point xD. This can be given by a straightforward formula such as

f(x)=2xorxx2+1, (6.1)

or a piecewise definition like

f(x)={xx1x2+1x>1, (6.2)

or something even more abstract, such as a power series or recurrence relation (Recall that sequences are defined as functions).

A real function is a function that has real numbers as its inputs and outputs. We can visualise a real functions behaviour by treating the ordered pairs (x,f(x))f as Cartesian coordinates in the plane, which is what we all know as a graph.

Example 6.1.

Let f: be given by f(x)=x.
This is not a function since x is not defined in for x<0. Even if we restrict the domain of f to [0,), it is still technically not a function since there are two possible values of x for all x[0,). We can fix this by taking the absolute value (f:[0,) given by f(x)=|x| is a function).

Example 6.2.

Let f: be given by

f(x)={1ifx0ifx.

This is again a valid function, and it has numerical values, but drawing a convincing graph of this function is left as a challenge to the reader.