Two-dimensional graph

From HandWiki

A two-dimensional graph is a set of points in two-dimensional space. If the points are real and if Cartesian coordinates are used, each axis depicts the potential values of a particular real variable. Often the variable on the horizontal axis is called x and the one on the vertical axis is called y, in which case the horizontal and vertical axes are sometimes called the x axis and y axis respectively. With real variables on the axes, each point in the graph depicts the values of two real variables.

Alternatively, each point in a graph may depict the value of a single complex variable. This two-dimensional graph is called Argand diagram. In the Argand diagram, the horizontal axis is called the real axis and depicts the potential values of the real part of the complex number, while the vertical axis is called the imaginary axis and depicts the potential values of the imaginary part of the complex number.

Graph of the function [math]\displaystyle{ f(x)={{x^3}-9x} \!\ }[/math]

Graph of a function

Main page: Graph of a function

If the relation between the two real variables is of the form [math]\displaystyle{ y=f(x) }[/math] where f is a function giving a single value of y associated with each admissible value of x, then the graph is called the graph of a function. The function could be a polynomial function or a transcendental function.

For example, the graph of the cubic polynomial

[math]\displaystyle{ f(x)={{x^3}-9x} \!\ }[/math]

is

{(x, x3−9x) : x is a real number}.

If this set is plotted on a Cartesian plane, the result is a curve (see figure).

Graph of a non-function relation

Circle of radius r = 1, centre (a, b) = (1.2, −0.5)

In some cases the relation between two real variables cannot be written in the form [math]\displaystyle{ y=f(x) }[/math]. In other words, it is not a function. Nevertheless, the set of all points given by the relation is still a two-dimensional graph, as in the accompanying graph of the circle [math]\displaystyle{ (x-a)^2+(y-b)^2=1. }[/math]

An image of a plane curve is also a two-dimensional graph, although only some two-dimensional graphs are an image of any plane curve.

Superimposed graphs of more than one function

The price P of a product is determined by a balance between production at each price (supply S) and the desires of those with purchasing power at each price (demand D). The diagram shows a positive shift in demand from D1 to D2, resulting in an increase in price (P) and quantity sold (Q) of the product.

In some contexts it is useful to graph two or more functions together in the same diagram. An example is the supply and demand graph commonly used in economics, shown here.

Graph of geometric shapes

Geometric shapes in 2 dimensions

Two-dimensional geometric shapes are sets of points bounded by line segments or curves, so a shape can also be constructed by graphs of several equations of its boundary. Polygons are the shapes that are only bounded by line segments. These can be visualized by using two-dimensional graphs. Graphs of two polygons, a parallelogram and a right triangle, are shown here along with the graph of a circle.

See also