Function | Definition, Types, Examples, Facts | Britannica Function, in mathematics, an expression, rule, or law that defines a relationship between one variable (the independent variable) and another variable (the dependent variable) Functions are ubiquitous in mathematics and are essential for formulating physical relationships in the sciences