# Graph of a function

34,146pages on
this wiki

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In mathematics, the graph of a function f is the collection of all ordered pairs (x,f(x)). In particular, graph means the graphical representation of this collection, in the form of a curve or surface, together with axes, etc. Graphing on a Cartesian plane is sometimes referred to as curve sketching.

The graph of a function on real numbers is identical to the graphic representation of the function. For general functions, the graphic representation cannot be applied and the formal definition of the graph of a function suits the need of mathematical statements, e.g., the closed graph theorem in functional analysis.

The concept of the graph of a function is generalised to the graph of a relation. Note that although a function is always identified with its graph, they are not the same because it will happen that two functions with different codomain could have the same graph. For example, the cubic polynomial mentioned above is a surjection if its codomain is the real numbers but it is not if its codomain is the complex field.

## Examples Edit

The graph of the function

$f(x)=\left\{\begin{matrix} a, & \mbox{if }x=1 \\ d, & \mbox{if }x=2 \\ c, & \mbox{if }x=3. \end{matrix}\right.$

is {(1,a), (2,d), (3,c)}.

The graph of the cubic polynomial on the real line

$f(x)={{x^3}-9x} \!\$

is {(x,x3-9x) : x is a real number}. If the set is plotted on a Cartesian plane, the result is