Mathematics
Functions (Mathematics)
Quick fact
The concept of a function was first clearly defined by the mathematician Lejeune Dirichlet in 1837, though the idea had been used informally for centuries.
Why this is interesting
Have you ever wondered how your calculator turns a number like 3 into 9 when you press the square button? That simple act is powered by one of math's most powerful ideas: a function.
Read the full explanation
Understanding Functions (Mathematics)
Think of a function as a machine. You put something in—like the number 3—and the machine follows a rule to produce an output. For the square function, the rule is "multiply the input by itself," so out comes 9. Every input goes to exactly one output. The set of all possible inputs is called the domain; the set of all possible outputs is the range. For example, with f(x) = x², the domain could be all real numbers, and the range is all non-negative numbers. This simple but strict rule—one input, one output—distinguishes functions from other relationships.
A deeper explanation
Functions matter because they let us precisely describe how changing one thing affects another. In physics, the height of a thrown ball is a function of time. In economics, profit might be a function of quantity sold. Mathematically, functions are defined by their rule and domain. The notation f(x) is read "f of x" and shows the output for input x. The vertical line test on a graph checks if a curve represents a function: if any vertical line hits the graph more than once, it's not a function. Functions can be combined through composition (applying one after another) and reversed via inverses. Understanding functions is the gateway to calculus, where we study how functions change continuously.