ArticleslgStudy

mathematics

Binary function

Binary function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Binary function rather than just read about it. In short: In mathematics, a binary function (also called bivariate function, or function of two variables) is a function that takes two inputs. Precisely stated, a function f is binary if there exist sets X,Y,Z such that f:X×Y→Z where X×Y is the Cartesian product of X and Y.

Key takeaways

  • Binary function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Binary function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Binary function from memory before moving on to harder problems.

Reference excerpt

In mathematics, a binary function (also called bivariate function, or function of two variables) is a function that takes two inputs. Precisely stated, a function f is binary if there exist sets X,Y,Z such that f:X×Y→Z where X×Y is the Cartesian product of X and Y.

Alternative definitions Set-theoretically, a binary function can be represented as a subset of the Cartesian product X×Y×Z, where (x,y,z) belongs to the subset if and only if f(x,y)=z. Conversely, a subset R defines a binary function if and only if for any x∈X and y∈Y, there exists a unique z∈Z such that (x,y,z) belongs to R. f(x,y) is then defined to be this z. Alternatively, a binary function may be interpreted as simply a function from X×Y to Z. Even when thought of this way, however, one generally writes f(x,y) instead of f((x,y)). (That is, the same pair of parentheses is used to indicate both function application and the formation of an ordered pair.)

Examples Division of whole numbers can be thought of as a function. If ℤ is the set of integers, ℕ+ is the set of natural numbers (except for zero), and ℚ is the set of rational numbers, then division is a binary function f:ℤ×ℕ+→ℚ. In a vector space V over a field F, scalar multiplication is a binary function. A scalar a ∈ F is combined with a vector v ∈ V to produce a new vector av ∈ V. Another example is that of inner products, or more generally functions of the form (x,y)↦xTMy, where x, y are real-valued vectors of appropriate size and M is a matrix. If M is a positive definite matrix, this yields an inner product.

Functions of two real variables Functions whose domain is a subset of ℝ2 are often also called functions of two variables even if their domain does not form a rectangle and thus the cartesian product of two sets.

Restrictions to ordinary functions In turn, one can also derive ordinary functions of one variable from a binary function. Given any element x∈X, there is a function fx, or f(x,⋅), from Y to Z, given by fx(y)=f(x,y). Similarly, given any element y∈Y, there is a function fy, or f(⋅,y), from X to Z, given by fy(x)=f(x,y). In computer science, this identification between a function from X×Y to Z and a function from X to ZY, where ZY is the set of all functions from Y to Z, is called currying.

Generalisations The various concepts relating to functions can also be generalised to binary functions. For example, the division example above is surjective (or onto) because every rational number may be expressed as a quotient of an integer and a natural number. This example is injective in each input separately, because the functions f x and f y are always injective. However, it's not injective in both variables simultaneously, because (for example) f (2,4) = f (1,2). One can also consider partial binary functions, which may be defined only for certain values of the inputs. For example, the division example above may also be interpreted as a partial binary function from Z and N to Q, where N is the set of all natural numbers, including zero. But this function is undefined when the second input is zero. A binary operation is a binary function where the sets X, Y, and Z are all equal; binary operations are often used to define algebraic structures. In linear algebra, a bilinear transformation is a binary function where the sets X, Y, and Z are all vector spaces and the derived functions f x and fy are all linear transformations. A bilinear transformation, like any binary function, can be interpreted as a function from X × Y to Z, but this function in general won't be linear. However, the bilinear transformation can also be interpreted as a single linear transformation from the tensor product X⊗Y to Z.

Generalisations to ternary and other functions

The concept of binary function generalises to ternary (or 3-ary) function, quaternary (or 4-ary) function, or more generally to n-ary function for any natural number n. A 0-ary function to Z is simply given by an element of Z. One can also define an A-ary function where A is any set; there is one input for each element of A.

Category theory In category theory, n-ary functions generalise to n-ary morphisms in a multicategory. The interpretation of an n-ary morphism as an ordinary morphisms whose domain is some sort of product of the domains of the original n-ary morphism will work in a monoidal category. The construction of the derived morphisms of one variable will work in a closed monoidal category. The category of sets is closed monoidal, but so is the category of vector spaces, giving the notion of bilinear transformation above.

See also Arity Unary operation Unary function Binary operation Iterated binary operation Ternary operation

References

Worked examples

Example 1 — a first encounter with Binary function

Start with the simplest possible case. Write down what Binary function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Binary function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Binary function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Binary function

In research
Binary function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Binary function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Binary function is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2 (number), Types of functions, so understanding it makes those chapters shorter.
In everyday life
Look for Binary function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Binary function” →

How to study Binary function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Binary function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Binary function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Binary function in simple terms?

In mathematics, a binary function (also called bivariate function, or function of two variables) is a function that takes two inputs. Precisely stated, a function f is binary if there exist sets X,Y,Z such that f:X×Y→Z where X×Y is the Cartesian product of X and Y.

Why does Binary function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Binary function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Binary function.

Tags

  • 2 (number)
  • Types of functions

Keep exploring