Graph of a function

The set of ordered pairs consisting of each input and its output
Graph of a function

A graph of a function is the set of input–output pairs: if f:ABf:A\to B is a , then its graph is

Γf={(a,f(a)): aA}A×B. \Gamma_f=\{(a,f(a)):\ a\in A\}\subseteq A\times B.

The graph is a of the and consists of . Viewing a function as a special kind of , the graph is exactly the corresponding relation.

Examples:

  • If f:RRf:\mathbb{R}\to\mathbb{R} is f(x)=x2f(x)=x^2, then Γf={(x,x2):xR}\Gamma_f=\{(x,x^2):x\in\mathbb{R}\}.
  • If AA is any set, the graph of idA\mathrm{id}_A is {(a,a):aA}\{(a,a):a\in A\}.