In mathematics, the graph of a function
f
(x,y)
f(x)=y.
x
f(x)
In the case of functions of two variables – that is, functions whose domain consists of pairs
(x,y)
(x,y,z)
f(x,y)=z
In science, engineering, technology, finance, and other areas, graphs are tools used for many purposes. In the simplest case one variable is plotted as a function of another, typically using rectangular axes; see Plot (graphics) for details.
A graph of a function is a special case of a relation. In the modern foundations of mathematics, and, typically, in set theory, a function is actually equal to its graph.[1] However, it is often useful to see functions as mappings,[2] which consist not only of the relation between input and output, but also which set is the domain, and which set is the codomain. For example, to say that a function is onto (surjective) or not the codomain should be taken into account. The graph of a function on its own does not determine the codomain. It is common[3] to use both terms function and graph of a function since even if considered the same object, they indicate viewing it from a different perspective.
f:X\toY
X x Y
The graph of the function
f:\{1,2,3\}\to\{a,b,c,d\}
\{1,2,3\} x \{a,b,c,d\}
From the graph, the domain
\{1,2,3\}
\{1,2,3\}=\{x: \existsy,suchthat(x,y)\inG(f)\}
\{a,c,d\}=\{y:\existsx,suchthat(x,y)\inG(f)\}
\{a,b,c,d\}
The graph of the cubic polynomial on the real lineis
If this set is plotted on a Cartesian plane, the result is a curve (see figure).
The graph of the trigonometric functionis
If this set is plotted on a three dimensional Cartesian coordinate system, the result is a surface (see figure).
Oftentimes it is helpful to show with the graph, the gradient of the function and several level curves. The level curves can be mapped on the function surface or can be projected on the bottom plane. The second figure shows such a drawing of the graph of the function:
. T. M. Apostol. Tom M. Apostol. Mathematical Analysis. 1981. Addison-Wesley. 35.