<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=123.63.112.150</id>
	<title>formulasearchengine - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=123.63.112.150"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/wiki/Special:Contributions/123.63.112.150"/>
	<updated>2026-05-02T05:36:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0-wmf.28</generator>
	<entry>
		<id>https://en.formulasearchengine.com/index.php?title=Binary_function&amp;diff=95</id>
		<title>Binary function</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=Binary_function&amp;diff=95"/>
		<updated>2013-10-23T09:45:09Z</updated>

		<summary type="html">&lt;p&gt;123.63.112.150: /* Category Theory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{distinguish|Boolean function|Indicator function}}&lt;br /&gt;
{{unreferenced|date=June 2009|bot=yes}}&lt;br /&gt;
In [[mathematics]], a &#039;&#039;&#039;binary function&#039;&#039;&#039;, or &#039;&#039;&#039;function of two variables&#039;&#039;&#039;, is a [[function (mathematics)|function]] which takes two inputs.&lt;br /&gt;
&lt;br /&gt;
Precisely stated, a function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is binary if there exists [[Set (mathematics)|set]]s &amp;lt;math&amp;gt;X, Y, Z&amp;lt;/math&amp;gt; such that&lt;br /&gt;
:&amp;lt;math&amp;gt;\,f \colon X \times Y \rightarrow Z&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;X \times Y&amp;lt;/math&amp;gt; is the [[Cartesian product]] of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Alternative Definitions==&lt;br /&gt;
[[Naive set theory|Set-theoretically]], one may represent a binary function as a [[subset]] of the [[Cartesian product]] &#039;&#039;X&#039;&#039; × &#039;&#039;Y&#039;&#039; × &#039;&#039;Z&#039;&#039;, where (&#039;&#039;x&#039;&#039;,&#039;&#039;y&#039;&#039;,&#039;&#039;z&#039;&#039;) belongs to the subset [[if and only if]]      &#039;&#039;f&#039;&#039;(&#039;&#039;x&#039;&#039;,&#039;&#039;y&#039;&#039;) = &#039;&#039;z&#039;&#039;.&lt;br /&gt;
Conversely, a subset &#039;&#039;R&#039;&#039; defines a binary function if and only if, [[for any]] &#039;&#039;x&#039;&#039; in &#039;&#039;X&#039;&#039; and &#039;&#039;y&#039;&#039; in &#039;&#039;Y&#039;&#039;, [[there exists]] a [[unique]] &#039;&#039;z&#039;&#039; in &#039;&#039;Z&#039;&#039; such that (&#039;&#039;x&#039;&#039;,&#039;&#039;y&#039;&#039;,&#039;&#039;z&#039;&#039;) belongs to &#039;&#039;R&#039;&#039;.&lt;br /&gt;
We then define &#039;&#039;f&#039;&#039; (&#039;&#039;x&#039;&#039;,&#039;&#039;y&#039;&#039;) to be this &#039;&#039;z&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Alternatively, a binary function may be interpreted as simply a [[function (mathematics)|function]] from &#039;&#039;X&#039;&#039; × &#039;&#039;Y&#039;&#039; to &#039;&#039;Z&#039;&#039;.&lt;br /&gt;
Even when thought of this way, however, one generally writes &#039;&#039;f&#039;&#039; (&#039;&#039;x&#039;&#039;,&#039;&#039;y&#039;&#039;) instead of &#039;&#039;f&#039;&#039;((&#039;&#039;x&#039;&#039;,&#039;&#039;y&#039;&#039;)).&lt;br /&gt;
(That is, the same pair of parentheses is used to indicate both [[function application]] and the formation of an [[ordered pair]].)&lt;br /&gt;
&lt;br /&gt;
==Example - Division==&lt;br /&gt;
Division of [[Integer|whole numbers]] can be thought of as a function; if &#039;&#039;&#039;Z&#039;&#039;&#039; is the set of [[integer]]s, &#039;&#039;&#039;N&#039;&#039;&#039;&amp;lt;sup&amp;gt;+&amp;lt;/sup&amp;gt; is the set of [[natural number]]s (except for zero), and &#039;&#039;&#039;Q&#039;&#039;&#039; is the set of [[rational number]]s, then [[division (mathematics)|division]] is a binary function from &#039;&#039;&#039;Z&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;&amp;lt;sup&amp;gt;+&amp;lt;/sup&amp;gt; to &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Restrictions to ordinary functions==&lt;br /&gt;
In turn, one can also derive ordinary functions of one variable from a binary function.&lt;br /&gt;
Given any element &#039;&#039;x&#039;&#039; of &#039;&#039;X&#039;&#039;, there is a function &#039;&#039;f&#039;&#039; &amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;, or &#039;&#039;f&#039;&#039; (&#039;&#039;x&#039;&#039;,·), from &#039;&#039;Y&#039;&#039; to &#039;&#039;Z&#039;&#039;, given by &#039;&#039;f&#039;&#039; &amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;(&#039;&#039;y&#039;&#039;) := &#039;&#039;f&#039;&#039; (&#039;&#039;x&#039;&#039;,&#039;&#039;y&#039;&#039;).&lt;br /&gt;
Similarly, given any element &#039;&#039;y&#039;&#039; of &#039;&#039;Y&#039;&#039;, there is a function &#039;&#039;f&#039;&#039; &amp;lt;sub&amp;gt;&#039;&#039;y&#039;&#039;&amp;lt;/sub&amp;gt;, or &#039;&#039;f&#039;&#039;  (·,&#039;&#039;y&#039;&#039;), from &#039;&#039;X&#039;&#039; to &#039;&#039;Z&#039;&#039;, given by &#039;&#039;f&#039;&#039; &amp;lt;sub&amp;gt;&#039;&#039;y&#039;&#039;&amp;lt;/sub&amp;gt;(&#039;&#039;x&#039;&#039;) := &#039;&#039;f&#039;&#039;  (&#039;&#039;x&#039;&#039;,&#039;&#039;y&#039;&#039;). (In computer science, this identification between a function from &#039;&#039;X&#039;&#039; × &#039;&#039;Y&#039;&#039; to &#039;&#039;Z&#039;&#039; and a function from &#039;&#039;X&#039;&#039; to &#039;&#039;Z&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;Y&#039;&#039;&amp;lt;/sup&amp;gt; is called [[Currying]].)&lt;br /&gt;
NB: &#039;&#039;Z&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;Y&#039;&#039;&amp;lt;/sup&amp;gt;  is the set of all functions from &#039;&#039;Y&#039;&#039; to &#039;&#039;Z&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Generalisations==&lt;br /&gt;
The various concepts relating to functions can also be generalised to binary functions.&lt;br /&gt;
For example, the division example above is &#039;&#039;[[surjective function|surjective]]&#039;&#039; (or &#039;&#039;onto&#039;&#039;) because every rational number may be expressed as a quotient of an integer and a natural number.&lt;br /&gt;
This example is &#039;&#039;[[injective function|injective]]&#039;&#039; in each input separately, because the functions &#039;&#039;f&#039;&#039; &amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; and &#039;&#039;f&#039;&#039; &amp;lt;sub&amp;gt;&#039;&#039;y&#039;&#039;&amp;lt;/sub&amp;gt; are always injective.&lt;br /&gt;
However, it&#039;s not injective in both variables simultaneously, because (for example) &#039;&#039;f&#039;&#039; (2,4) = &#039;&#039;f&#039;&#039; (1,2).&lt;br /&gt;
&lt;br /&gt;
One can also consider &#039;&#039;partial&#039;&#039; binary functions, which may be defined only for certain values of the inputs.&lt;br /&gt;
For example, the division example above may also be interpreted as a partial binary function from &#039;&#039;&#039;Z&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;Q&#039;&#039;&#039;, where &#039;&#039;&#039;N&#039;&#039;&#039; is the set of all natural numbers, including zero.&lt;br /&gt;
But this function is undefined when the second input is zero.&lt;br /&gt;
&lt;br /&gt;
A [[binary operation]] is a binary function where the sets &#039;&#039;X&#039;&#039;, &#039;&#039;Y&#039;&#039;, and &#039;&#039;Z&#039;&#039; are all equal; binary operations are often used to define [[algebraic structure]]s.&lt;br /&gt;
&lt;br /&gt;
In [[linear algebra]], a [[bilinear operator|bilinear transformation]] is a binary function where the sets &#039;&#039;X&#039;&#039;, &#039;&#039;Y&#039;&#039;, and &#039;&#039;Z&#039;&#039; are all [[vector space]]s and the derived functions &#039;&#039;f&#039;&#039; &amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; and &#039;&#039;f&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;y&#039;&#039;&amp;lt;/sub&amp;gt; are all [[linear transformation]]s.&lt;br /&gt;
A bilinear transformation, like any binary function, can be interpreted as a function from &#039;&#039;X&#039;&#039; × &#039;&#039;Y&#039;&#039; to &#039;&#039;Z&#039;&#039;, but this function in general won&#039;t be linear.&lt;br /&gt;
However, the bilinear transformation can also be interpreted as a single linear transformation from the [[tensor product]] &amp;lt;math&amp;gt;X \otimes Y&amp;lt;/math&amp;gt; to &#039;&#039;Z&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Generalisations to ternary and other functions==&lt;br /&gt;
{{see also|Multivariate function}}&lt;br /&gt;
The concept of binary function generalises to &#039;&#039;ternary&#039;&#039; (or &#039;&#039;3-ary&#039;&#039;) &#039;&#039;function&#039;&#039;, &#039;&#039;quaternary&#039;&#039; (or &#039;&#039;4-ary&#039;&#039;) &#039;&#039;function&#039;&#039;, or more generally to &#039;&#039;n-ary function&#039;&#039; for any [[natural number]] &#039;&#039;n&#039;&#039;.&lt;br /&gt;
A &#039;&#039;0-ary function&#039;&#039; to &#039;&#039;Z&#039;&#039; is simply given by an element of &#039;&#039;Z&#039;&#039;.&lt;br /&gt;
One can also define an &#039;&#039;A-ary function&#039;&#039; where &#039;&#039;A&#039;&#039; is any [[Set (mathematics)|set]]; there is one input for each element of &#039;&#039;A&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Category theory==&lt;br /&gt;
In [[category theory]], &#039;&#039;n&#039;&#039;-ary functions generalise to &#039;&#039;n&#039;&#039;-ary morphisms in a [[multicategory]].&lt;br /&gt;
The interpretation of an &#039;&#039;n&#039;&#039;-ary morphism as an ordinary morphisms whose domain is some sort of product of the domains of the original &#039;&#039;n&#039;&#039;-ary morphism will work in a [[monoidal category]].&lt;br /&gt;
The construction of the derived morphisms of one variable will work in a [[closed monoidal category]].&lt;br /&gt;
The category of sets is closed monoidal, but so is the category of vector spaces, giving the notion of bilinear transformation above.&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Binary Function}}&lt;br /&gt;
[[Category:Types of functions]]&lt;/div&gt;</summary>
		<author><name>123.63.112.150</name></author>
	</entry>
</feed>