
In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the graph of a function
is the set of
ordered pairs
, where
In the common case where
and
are
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s, these pairs are
Cartesian coordinates of points in a
plane and often form a
curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight.
Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that ...
.
The graphical representation of the graph of a
function is also known as a ''
plot''.
In the case of
functions of two variables – that is, functions whose
domain consists of pairs
–, the graph usually refers to the set of
ordered triples
where
. This is a subset of
three-dimensional space
In geometry, a three-dimensional space (3D space, 3-space or, rarely, tri-dimensional space) is a mathematical space in which three values ('' coordinates'') are required to determine the position of a point. Most commonly, it is the three- ...
; for a continuous
real-valued function of two real variables, its graph forms a
surface, which can be visualized as a ''
surface plot''.
In
science
Science is a systematic discipline that builds and organises knowledge in the form of testable hypotheses and predictions about the universe. Modern science is typically divided into twoor threemajor branches: the natural sciences, which stu ...
,
engineering
Engineering is the practice of using natural science, mathematics, and the engineering design process to Problem solving#Engineering, solve problems within technology, increase efficiency and productivity, and improve Systems engineering, s ...
,
technology
Technology is the application of Conceptual model, conceptual knowledge to achieve practical goals, especially in a reproducible way. The word ''technology'' can also mean the products resulting from such efforts, including both tangible too ...
,
finance
Finance refers to monetary resources and to the study and Academic discipline, discipline of money, currency, assets and Liability (financial accounting), liabilities. As a subject of study, is a field of Business administration, Business Admin ...
, 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
Foundations of mathematics are the mathematical logic, logical and mathematics, mathematical framework that allows the development of mathematics without generating consistency, self-contradictory theories, and to have reliable concepts of theo ...
, and, typically, in
set theory
Set theory is the branch of mathematical logic that studies Set (mathematics), sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory – as a branch of mathema ...
, a function is actually equal to its graph.
However, it is often useful to see functions as
mappings, 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 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.
Definition
Given a
function from a set (the
domain) to a set (the
codomain), the graph of the function is the set
which is a subset of the
Cartesian product
In mathematics, specifically set theory, the Cartesian product of two sets and , denoted , is the set of all ordered pairs where is an element of and is an element of . In terms of set-builder notation, that is
A\times B = \.
A table c ...
. In the definition of a function in terms of
set theory
Set theory is the branch of mathematical logic that studies Set (mathematics), sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory – as a branch of mathema ...
, it is common to identify a function with its graph, although, formally, a function is formed by the triple consisting of its domain, its codomain and its graph.
Examples
Functions of one variable

The graph of the function
defined by
is the subset of the set
From the graph, the domain
is recovered as the set of first component of each pair in the graph
.
Similarly, the
range can be recovered as
.
The codomain
, however, cannot be determined from the graph alone.
The graph of the cubic polynomial on the
real line
A number line is a graphical representation of a straight line that serves as spatial representation of numbers, usually graduated like a ruler with a particular origin (geometry), origin point representing the number zero and evenly spaced mark ...
is
If this set is plotted on a
Cartesian plane, the result is a curve (see figure).
Functions of two variables
The graph of the
trigonometric function
is
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:
See also
*
Asymptote
*
Chart
A chart (sometimes known as a graph) is a graphics, graphical representation for data visualization, in which "the data is represented by symbols, such as bars in a bar chart, lines in a line chart, or slices in a pie chart". A chart can repres ...
*
Plot
*
Concave function
*
Convex function
In mathematics, a real-valued function is called convex if the line segment between any two distinct points on the graph of a function, graph of the function lies above or on the graph between the two points. Equivalently, a function is conve ...
*
Contour plot
*
Critical point
*
Derivative
In mathematics, the derivative is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input. The derivative of a function of a single variable at a chosen input value, when it exists, is t ...
*
Epigraph
*
Normal to a graph
*
Slope
*
Stationary point
*
Tetraview
*
Vertical translation
*
y-intercept
References
Further reading
*
External links
* Weisstein, Eric W.
Function Graph" From MathWorld—A Wolfram Web Resource.
{{Authority control
Charts
Functions and mappings
Numerical function drawing