This diagram does not represent a "true" function, because the element 3 in X is associated with two elements, b and c, in Y.

In mathematics, a multivalued function (short form: multifunction; other names: many-valued function, set-valued function, set-valued map, point-to-set map, multi-valued map, multimap, correspondence, carrier) is a left-total relation (that is, every input is associated with at least one output) in which at least one input is associated with multiple (two or more) outputs.[citation needed]

In the strict sense, a "well-defined" function associates one, and only one, output to any particular input. The term "multivalued function" is, therefore, a misnomer because functions are single-valued. Multivalued functions often arise as inverses of functions that are not injective. Such functions do not have an inverse function, but they do have an inverse relation. The multivalued function corresponds to this inverse relation.

As a consequence, arctan(1) is intuitively related to several values: π/4, 5π/4, −3π/4, and so on. We can treat arctan as a single-valued function by restricting the domain of tan x to -π/2 < x < π/2 – a domain over which tan x is monotonically increasing. Thus, the range of arctan(x) becomes -π/2 < y < π/2. These values from a restricted domain are called principal values.

The indefinite integral can be considered as a multivalued function. The indefinite integral of a function is the set of functions whose derivative is that function. The constant of integration follows from the fact that the derivative of a constant function is 0.

These are all examples of multivalued functions that come about from non-injective functions. Since the original functions do not preserve all the information of their inputs, they are not reversible. Often, the restriction of a multivalued function is a partial inverse of the original function.

Multivalued functions of a complex variable have branch points. For example, for the nth root and logarithm functions, 0 is a branch point; for the arctangent function, the imaginary units i and −i are branch points. Using the branch points, these functions may be redefined to be single-valued functions, by restricting the range. A suitable interval may be found through use of a branch cut, a kind of curve that connects pairs of branch points, thus reducing the multilayered Riemann surface of the function to a single layer. As in the case with real functions, the restricted range may be called principal branch of the function.

Instead of considering collections of only points, set-valued analysis considers collections of sets. If a collection of sets is endowed with a topology, or inherits an appropriate topology from an underlying topological space, then the convergence of sets can be studied.

One can differentiate many continuity concepts, primarily closed graph property and upper and lower hemicontinuity. (One should be warned that often the terms upper and lower semicontinuous are used instead of upper and lower hemicontinuous reserved for the case of weak topology in domain; yet we arrive at the collision with the reserved names for upper and lower semicontinuous real-valued function). There exist also various definitions for measurability of multifunction.

The practice of allowing function in mathematics to mean also multivalued function dropped out of usage at some point in the first half of the twentieth century. Some evolution can be seen in different editions of A Course of Pure Mathematics by G. H. Hardy, for example. It probably persisted longest in the theory of special functions, for its occasional convenience.

The theory of multivalued functions was fairly systematically developed for the first time in Claude Berge's Topological spaces (1963).

Nevertheless, lower hemicontinuous multifunctions usually possess continuous selections as stated in the Michael selection theorem, which provides another characterisation of paracompact spaces.[1][2] Other selection theorems, like Bressan-Colombo directional continuous selection, Kuratowski—Ryll-Nardzewski measurable selection, Aumann measurable selection, Fryszkowski selection for decomposable maps are important in optimal control and the theory of differential inclusions.