Function | Definition, Types, Examples, & Facts (2024)

mathematics

verifiedCite

While every effort has been made to follow citation style rules, there may be some discrepancies.Please refer to the appropriate style manual or other sources if you have any questions.

Select Citation Style

Feedback

Thank you for your feedback

Our editors will review what you’ve submitted and determine whether to revise the article.

printPrint

Please select which sections you would like to print:

verifiedCite

While every effort has been made to follow citation style rules, there may be some discrepancies.Please refer to the appropriate style manual or other sources if you have any questions.

Select Citation Style

Feedback

Thank you for your feedback

Our editors will review what you’ve submitted and determine whether to revise the article.

Written and fact-checked by

The Editors of Encyclopaedia Britannica Encyclopaedia Britannica's editors oversee subject areas in which they have extensive knowledge, whether from years of experience gained by working on that content or via study for an advanced degree. They write new content and verify and edit content received from contributors.

The Editors of Encyclopaedia Britannica

Last Updated: Article History

cubic equation

See all media

Key People:
Paul Painlevé
Karl Weierstrass
Émile Borel
Edward Charles Titchmarsh
Peter Gustav Lejeune Dirichlet
Related Topics:
special function
root
continuity
Riemann zeta function
recursive function

See all related content →

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. The modern definition of function was first given in 1837 by the German mathematician Peter Dirichlet:

If a variable y is so related to a variable x that whenever a numerical value is assigned to x, there is a rule according to which a unique value of y is determined, then y is said to be a function of the independent variable x.

This relationship is commonly symbolized as y = f(x)—which is said “f of x”—and y and x are related such that for every x, there is a unique value of y. That is, f(x) can not have more than one value for the same x. To use the language of set theory, a function relates an element x to an element f(x) in another set. The set of values of x is called the domain of the function, and the set of values of f(x) generated by the values in the domain is called the range of the function. In addition to f(x), other abbreviated symbols such as g(x) and P(x) are often used to represent functions of the independent variable x, especially when the nature of the function is unknown or unspecified.

Common functions

Many widely used mathematical formulas are expressions of known functions. For example, the formula for the area of a circle, A = πr2, gives the dependent variable A (the area) as a function of the independent variable r (the radius). Functions involving more than two variables (called multivariable or multivariate functions) also are common in mathematics, as can be seen in the formula for the area of a triangle, A = bh/2, which defines A as a function of both b (base) and h (height). In these examples, physical constraints force the independent variables to be positive numbers. When the independent variables are also allowed to take on negative values—thus, any real number—the functions are known as real-valued functions.

Britannica QuizNumbers and Mathematics

The formula for the area of a circle is an example of a polynomial function. The general form for such functions is P(x) = a0 + a1x + a2x2+⋯+ anxn, where the coefficients (a0, a1, a2,…, an) are given, x can be any real number, and all the powers of x are counting numbers (1, 2, 3,…). (When the powers of x can be any real number, the result is known as an algebraic function.) Polynomial functions have been studied since the earliest times because of their versatility—practically any relationship involving real numbers can be closely approximated by a polynomial function. Polynomial functions are characterized by the highest power of the independent variable. Special names are commonly used for such powers from one to five—linear, quadratic, cubic, quartic, and quintic for the highest powers being 1, 2, 3, 4, and 5, respectively.

Polynomial functions may be given geometric representation by means of analytic geometry. The independent variable x is plotted along the x-axis (a horizontal line), and the dependent variable y is plotted along the y-axis (a vertical line). When the graph of a relation between x and y is plotted in the x-y plane, the relation is a function if a vertical line always passes through only one point of the graphed curve; that is, there would be only one point f(x) corresponding to each x, which is the definition of a function. The graph of the function then consists of the points with coordinates (x, y) where y = f(x). For example, the graph of the cubic equation f(x) = x3 − 3x + 2 is shown in the figure.

Special 67% offer for students! Finish the semester strong with Britannica.

Learn More

Another common type of function that has been studied since antiquity is the trigonometric functions, such as sin x and cos x, where x is the measure of an angle (see figure). Because of their periodic nature, trigonometric functions are often used to model behaviour that repeats, or “cycles.”

The exponential function is a relation of the form y = ax, with the independent variable x ranging over the entire real number line as the exponent of a positive number a. Probably the most important of the exponential functions is y = ex, sometimes written y = exp (x), in which e (2.7182818…) is the base of the natural system of logarithms (ln). By definition x is a logarithm, and there is thus a logarithmic function that is the inverse of the exponential function. Specifically, if y = ex, then x = ln y. Nonalgebraic functions, such as exponential and trigonometric functions, are also known as transcendental functions.

Complex functions

Practical applications of functions whose variables are complex numbers are not so easy to illustrate, but they are nevertheless very extensive. They occur, for example, in electrical engineering and aerodynamics. If the complex variable is represented in the form z = x + iy, where i is the imaginary unit (the square root of −1) and x and y are real variables (see figure), it is possible to split the complex function into real and imaginary parts: f(z) = P(x, y) + iQ(x, y).

Function | Definition, Types, Examples, & Facts (2024)

References

Top Articles
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 5231

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.