
What Is a Function in Math? Definition & Examples
If you’ve ever dropped a coin into a vending machine and watched a candy drop out, you already understand the basic idea of a function. In math, a function is simply a rule that takes an input and gives back exactly one output.
Core Rule of Functions: Every input has exactly one output. ·
Mathematical Symbol: f(x) notation ·
Common Test: Vertical Line Test
Quick snapshot
- Functions have exactly one output per input (Common Core State Standards Initiative).
- The vertical line test works for graphs (Third Space Learning).
- Domain and codomain are sets (BYJU’S).
- Some textbooks treat functions as subsets of Cartesian product (BYJU’S).
- Term “into function” vs “injective” varies by region (Third Space Learning).
- Gottfried Wilhelm Leibniz introduced the term “function” in the 17th century (BYJU’S).
- Explore polynomial, trigonometric, and exponential functions (Fishtank Learning).
These eight entries trace the concept from its formal origin to the tools students use today.
| Attribute | Value |
|---|---|
| Also known as | mapping |
| Invented by | Gottfried Wilhelm Leibniz (17th century) (BYJU’S) |
| Core principle | uniqueness of output for each input (Common Core State Standards Initiative) |
| Symbol | f(x) (BYJU’S) |
| Common Core standard | 8.F.A.1 (Common Core State Standards Initiative) |
| Vertical line test | Determines if graph is a function (Third Space Learning) |
| Domain | set of all possible inputs (Mathnasium) |
| Range | set of all possible outputs (Mathnasium) |
The implication: this table distills centuries of mathematical thinking into eight digestible facts for any learner.
What is a function with an example?
What is a function in math?
A function is a rule that assigns to each input exactly one output. The Common Core State Standards Initiative (U.S. education standards) defines it in Grade 8 as “a rule that assigns to each input exactly one output.” For example, the equation f(x) = x² maps 3 to 9; every input produces one and only one result. Fishtank Learning (curriculum provider) emphasizes that functions can be represented as tables, equations, graphs, and verbal descriptions.
What is a function in math formula?
The general representation is y = f(x), where x is the input and y is the dependent output, according to BYJU’S (math education platform). Common examples include f(x) = x² + 3, f(x) = 1/x, and f(x) = 2x + 3.
Understanding the formal notation f(x) is the gateway to algebra and calculus. Students who master it early can model real-world relationships like speed over time or cost per item.
The implication: a function’s formula is a compact way to describe an infinite set of input–output pairs, making it one of the most powerful tools in mathematics.
How do I identify a function?
What is not a function in math?
A relation that gives more than one output for a single input is not a function. For instance, the equation x² + y² = 1 (a circle) has two y-values for most x-values. Third Space Learning (math tutoring service) explains that if any vertical line on a graph crosses the curve more than once, the relation fails the function test.
What is the vertical line test?
The vertical line test is the quickest way to check. Draw vertical lines across the graph; if one touches the curve at more than one point, the relation is not a function. YouTube (video tutorial) shows the test visually. According to Fishtank Learning, distinguishing functions from non-functions is a key eighth-grade skill.
“A function is a relation where every input corresponds to only one output.”
Khan Academy (educational nonprofit)
The catch: a graph may pass the vertical line test yet still be a complicated relation; the test only tells you whether the relation is a function, not whether it’s a simple one.
How can I define a function?
What is the definition of into function in math?
Formally, a function from set A to set B (written f: A → B) maps each element of A to exactly one element of B. The set A is the domain, B is the codomain, and the actual outputs form the range. BYJU’S (math education platform) notes that an “into function” (injective) means every element of B is used at most once, though regional usage varies.
What is function notation f(x)?
Mathnasium (math tutoring center) calls f(x) the standard way to name a function: read as “f of x.” It allows you to evaluate quickly: if f(x) = x² + 3, then f(2) = 7.
“A function from set X to set Y assigns to each element of X exactly one element of Y.”
Wikipedia (online encyclopedia)
What this means: the formal definition may feel abstract, but it gives mathematicians a precise language to talk about relationships, free from ambiguity.
How do I explain a function?
How to explain function to a kid?