Functions and Their Properties
A function is a rule that assigns to each input exactly one output. Key result: functions can be classified (injective, surjective, bijective), combined (sum, product, composition), inverted, and analyzed through properties like domain, range, symmetry, and monotonicity. Applies to every quantitative field — physics, economics, computer science, biology. Origins trace to Leibniz (1673) and were made rigorous by Dirichlet (1837).
A function from a set (the domain) to a set (the codomain) is a relation that pairs every element of with precisely one element of . This single-valued requirement is what distinguishes functions from arbitrary relations. Functions matter because they encode dependence: how one quantity is determined by another — distance by time, cost by quantity, temperature by altitude. A surprising fact: there exist functions that are continuous everywhere yet differentiable nowhere (the Weierstrass function), shattering the naive intuition that a "smooth-looking" curve must have a tangent at every point.
The Core Insight
A function is a deterministic machine: feed it a valid input and it returns one and only one output. Everything else — graphs, formulas, tables, inverses, transformations — is a different way of describing or manipulating that one constraint. The "vertical line test" is literally the geometric statement of "one output per input."
Formal Statement
Function
A function is a rule assigning to each exactly one element .
- — the domain: the set of all permissible inputs.
- — the codomain: the set in which outputs are declared to live.
- — the image of (the output corresponding to input ).
- The range (or image of ) is the set of values actually attained:
Injective, Surjective, Bijective
Let .
- is injective (one-to-one) if distinct inputs give distinct outputs:
- is surjective (onto) if every element of the codomain is hit:
- is bijective if it is both injective and surjective — a perfect pairing of with .
Composition and Inverse
The composition of with is
If is bijective, its inverse satisfies
Invertibility Criterion
A function has a two-sided inverse if and only if is bijective.
We prove both directions.
Step 1 (Bijective invertible). Suppose is bijective. For each , surjectivity (eq. [3]) guarantees at least one with , and injectivity (eq. [2]) guarantees at most one such . Hence exactly one exists; define . This is a well-defined function and satisfies eq. [5] by construction. Step 2 (Invertible injective). Suppose exists with . If , apply to both sides: , so . Thus is injective. Step 3 (Invertible surjective). Take any . Let . Then by eq. [5]. So is attained, proving surjectivity. Step 4. Steps 2–3 give bijectivity. Combined with Step 1, the equivalence holds.Peter Gustav Lejeune Dirichlet | 1805–1859
Dirichlet gave the modern, formula-free definition of a function in 1837: is a function of if to each there corresponds a single definite , regardless of whether any algebraic expression connects them. His pathological example — the function equal to on rationals and on irrationals — demonstrated that "function" need not mean "nice formula," liberating analysis from the tyranny of explicit equations.
Building Intuition
Think of three complementary pictures:
- Machine view — a box with an input slot and output slot. The rule "square it" turns and . Two inputs can share an output (that's fine), but one input can never produce two outputs.
- Graph view — plot all points . The single-output rule becomes the vertical line test: any vertical line meets the graph at most once. Injectivity becomes the horizontal line test: any horizontal line meets the graph at most once.
- Mapping view — draw two blobs (domain, codomain) and arrows from points to points. Each domain point has exactly one arrow leaving it. Injective = no two arrows land together; surjective = no codomain point is arrow-less.
Vertical and horizontal line tests on the parabola $y = x^2$
Worked Examples
Finding domain, range, and inverse
Given: . Step 1 — Domain. The radicand must be non-negative: , so . Domain . Step 2 — Range. Since , the smallest output is at : . As grows, . Range . Step 3 — Inverse. Set . Then , so , giving . Swap symbols:Composition with numerical evaluation
Given: and . Find and . Step 1 — Compute . Inner first: . Then . Step 2 — Compute . Inner first: . Then . Step 3 — Observe non-commutativity. , confirming in general.Common Misconceptions
" means ." No. The superscript denotes the inverse function, not a reciprocal. The reciprocal is written . These are entirely different objects: for , the inverse is , whereas the reciprocal is . "Every function has an inverse." Only bijective functions do (Theorem above). For non-injective functions you must restrict the domain before inverting — e.g. has no inverse on , but does on , namely .Claim: "If a graph is a curve, it represents a function." False. The circle is a perfectly good curve, but the vertical line crosses it at and — two outputs for one input. The circle is a relation, not a function. Splitting it into and produces two separate functions.
Connections
Functions are the connective tissue of mathematics. They generalize the Linear Equations you solve in algebra into systematic input–output rules. The behavior of a function near a point is studied by Limits and Continuity, whose machinery underlies the Derivative (rate of change of a function) and the Integral (accumulation of a function). Special families — Polynomial Functions, Exponential and Logarithmic Functions, and Trigonometric Functions — each have signature properties. The idea of pairing sets bijectively powers the theory of Cardinality and Countability, where bijections measure the "size" of infinite sets.
Real-World Applications
- Physics — projectile motion. Height as a function of time, , predicts when a ball lands (solve ).
- Economics — supply and demand. Quantity demanded and supplied are functions of price; the equilibrium is where they intersect.
- Computer science — hash functions. Map data of arbitrary size to fixed-size codes; ideal hashing approximates injectivity to avoid collisions.
- Cryptography — RSA. Encryption uses a bijective modular-exponentiation function whose inverse is computationally hard without a secret key.
- Medicine — pharmacokinetics. Drug concentration models exponential decay in the bloodstream, setting dosing schedules.
- Engineering — transfer functions. A system's output is a function of its input frequency, central to control and signal processing.
- Cartography — map projections. Bijective maps from the sphere to the plane (impossible without distortion) underlie every world map.
Historical Development
- 1673 — Gottfried Leibniz coins the word function (Latin functio) for quantities depending on a curve, such as slope and tangent length.
- 1718 — Johann Bernoulli describes a function as "a quantity composed in any manner of a variable and constants."
- 1748 — Leonhard Euler, in Introductio in analysin infinitorum, defines a function as an "analytic expression" and introduces the notation .
- 1822 — Joseph Fourier shows arbitrary functions can be represented by trigonometric series, straining the "single formula" notion.
- 1837 — Dirichlet gives the modern set-correspondence definition, freeing functions from formulas.
- 1872 — Karl Weierstrass publishes a function continuous everywhere but differentiable nowhere, demolishing geometric intuition.
- 1895–1900s — Georg Cantor and others recast functions within set theory as sets of ordered pairs.
- 1914 — Felix Hausdorff formalizes the ordered-pair definition of a function as a special relation.
- 1930s — The Bourbaki group cements the modern domain–codomain–graph formalism used in textbooks today.
Subtleties & Limits
The naive notion "function = formula" collapses under scrutiny, raising deep questions still studied today. Which functions can be written explicitly? Most functions have no finite description at all — there are uncountably many functions but only countably many finite formulas, so "almost every" function is indescribable. How wild can a function be? Weierstrass's nowhere-differentiable example and the existence (under the Axiom of Choice) of non-measurable functions show the concept stretches far beyond anything visualizable. Computability: Which functions can a machine actually evaluate? Alan Turing's work revealed functions (like the halting function) that are perfectly well-defined yet provably uncomputable — a boundary that remains central to theoretical computer science.