   2900px|thumbnail|right|graph of the function  (â2, +2) in mathematics, the graph of a function f is the collection of all ordered pairs . if the function input x is a scalar, the graph is a two-dimensional graph, and for a continuous function is a curve. if the function input x is an ordered pair  of real numbers, the graph is the collection of all ordered triples , and for a continuous function is a surface (see three-dimensional graph). informally, if x is a real number and f is a real function, graph may mean the graphical representation of this collection, in the form of a line chart: a curve on a cartesian plane, together with cartesian axes, etc. graphing on a cartesian plane is sometimes referred to as curve sketching. the graph of a function on real numbers may be mapped directly to the graphic representation of the function. for general functions, a graphic representation cannot necessarily be found 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 generalized 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 below is a surjection if its codomain is the real numbers but it is not if its codomain is the complex field. to test whether a graph of a curve is a function of x, use the vertical line test. to test whether a graph of a curve is a function of y, use the horizontal line test. if the function has an inverse, the graph of the inverse can be found by reflecting the graph of the original function over the line . 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. in the modern foundation of mathematics known as set theory, a function and its graph are essentially the same thing.{{cite book|author=charles c pinter|title=a book of set theory|url=http://books.google.
Charts Functions_and_mappings