Algebra and analysis·Elementary·Definition

Function

A function is a rule that assigns exactly one output to each input in its domain.

Every allowed input gets one and only one output.

AlgebraFunctions and relations

What does function mean?

A function includes a domain, a codomain, and an assignment rule. Different inputs may share an output, but a single input cannot map to two outputs. A graph represents a function of x precisely when every vertical line intersects it at most once.

Notation

f:X→Y; y=f(x)

Function examples

Example 1

Is f(x)=x² a function on the real numbers?

Answer: Yes

Each real input x has exactly one square x².

Properties and types

  • The domain specifies allowed inputs.
  • A function can be represented by a formula, table, graph, or mapping.
  • Injective and surjective describe additional mapping properties.

Where is function used?

This concept appears in a range of mathematical and practical settings:

  • Modeling input-output relationships
  • Calculus
  • Data and physical models

Common misunderstandings

  • Assuming a relation is a function because it has a formula.
  • Ignoring domain restrictions such as division by zero.

Related tools and learning resources