Relevance logic: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Mark viking
Added wl
en>Hyacinth
→‎External links: {{Non-classical logic}}
 
Line 1: Line 1:
[[File:Function machine2.svg|thumb|right|A function ''f'' takes an input ''x'', and returns an output  ''f''(''x''). One metaphor describes the function as a "machine" or "[[black box]]" that for each input returns a corresponding output.]]
The initial popular kind are the lotions plus ointments where you rub a drugs onto the outside of the rectum. It intends to treat a hemorrhoid by relaxing the blood vessels. This relaxes the cells thus that it no longer continues to bulge. When the cells go down, the hemorrhoids may not flare up as much. This is wonderful for a little temporary relief, however, the hemorrhoid usually commonly flare up again when utilizing this system of main treatment.<br><br>This method is perfect for those that leave an active lifestyle. If you're usually found on the move plus don't have time to use additional remedies, then we would like to consider utilizing an alternative [http://hemorrhoidtreatmentfix.com/hemorrhoid-surgery hemorrhoids surgery], like creams and ointments. Walking produces friction and that also leads to irritation on a swelling. Remember movement seems to cause the swelling to worsen whenever it happens to be rubbed. With lubricant you are capable to make friction with less impact. There are some special creams on the market, after using then impact usually be relaxing and cooling the area and that might reduce the pain.<br><br>Whenever you want to have a bowel movement do not strain. This puts additional stress on a hemorrhoids that usually create them worse. You would think that you have to strain whenever you go to the bathroom, nevertheless it happens to be the worse thing you are able to do. So try to take a little more time when you need to see the bathroom and it usually assist we.<br><br>But there are certain aspects which clearly state several hemorrhoid natural treatments are more powerful considering they have no negative effects, they have soothing attributes, they heal the condition from inside plus they also prevent the same from coming back.<br><br>Witch Hazel when utilized because an component inside hemorrhoid treatments has an virtually magical effect. If you empty a little bottle of Witch Hazel into the bathroom tissue box, the tissue might absorb it. This makes a especially soothing replace for coarser toilet tissue and is ideal for gentle cleansing of the delicate area in addition to reducing pain plus itching.<br><br>We could wish To consider over the counter pain relief in the event you find the condition rather painful. This may come inside the form of creams or pain killing medication, all of that will be accessible in different strengths. You may like to try out a mixture of the 2 inside purchase to get the best impact which assists to minimize your pain.<br><br>Although these 7 steps are all great ways to heal hemorrhoids, they are no promise that you are capable to completely heal your hemorrhoids or that they won't return. As a rule, if symptoms never clear up completely, come back in a limited days or deteriorate at some point in drugs, you need to get an appointment to pay a visit to your general specialist appropriate away.
[[Image:Graph of example function.svg|thumb|250px|The red curve is the [[graph of a function]] ''f'' in the [[Cartesian plane]], consisting of all points with coordinates of the form (''x'',''f''(''x'')). The property of having one output for each input is represented geometrically by the fact that [[Vertical line test|each vertical line]] (such as the yellow line through the origin) has exactly one crossing point with the curve.]]
{{Functions}}
 
In [[mathematics]], a '''function'''<ref>The words '''map''' or '''mapping''', '''transformation''', '''correspondence''', and '''operator''' are often used synonymously. {{harvnb |Halmos |1970 |p=30}}.</ref> is a [[binary relation|relation]] between a [[set (mathematics)|set]] of inputs and a set of permissible outputs with the property that each input is related to exactly one output. An example is the function that relates each real number ''x'' to its square ''x''<sup>2</sup>. The output of a function ''f'' corresponding to an input ''x'' is denoted by ''f''(''x'') (read "''f'' of ''x''"). In this example, if the input is &minus;3, then the output is 9, and we may write ''f''(&minus;3) = 9. The input variable(s) are sometimes referred to as the argument(s) of the function.
 
Functions are "the central objects of investigation"{{sfn |Spivak |2008 |p=39}} in most fields of modern mathematics. There are many ways to describe or represent a function. Some functions may be defined by a [[formula]] or [[algorithm]] that tells how to compute the output for a given input. Others are given by a picture, called the [[graph of a function|graph of the function]]. In science, functions are sometimes defined by a table that gives the outputs for selected inputs. A function could be described implicitly, for example as the [[inverse function|inverse]] to another function or as a solution of a [[differential equation]].
 
The input and output of a function can be expressed as an [[ordered pair]], ordered so that the first element is the input (or [[tuple]] of inputs, if the function takes more than one input), and the second is the output. In the example above, ''f''(''x'') = ''x''<sup>2</sup>, we have the ordered pair (&minus;3, 9). If both input and output are real numbers, this ordered pair can be viewed as the [[Cartesian coordinates]] of a point on the graph of the function. But no picture can exactly define every point in an infinite set.
 
In modern mathematics,<ref name=MacLane>{{cite book | last = MacLane | first = Saunders | authorlink = Saunders MacLane | last2 = Birkhoff | first2 = Garrett | author2-link = Garrett Birkhoff | title = Algebra | publisher = Macmillan | edition = First | year = 1967 | location = New York | pages = 1–13 }}</ref> a function is defined by its set of inputs, called the ''[[Domain of a function|domain]]'', a set containing the outputs, called its ''[[codomain (mathematics)|codomain]]'' (or ''[[range (mathematics)|range]]''), and the set of all paired input and outputs, called its ''[[graph of a function|graph]]''. For example, we could define a function using the rule ''f''(''x'') = ''x''<sup>2</sup> by saying that the domain and codomain are the [[real numbers]], and that the ordered pairs are all pairs of real numbers (''x'', ''x''<sup>2</sup>).  Collections of functions with the same domain and the same codomain are called [[function space]]s, the properties of which are studied in such mathematical disciplines as [[real analysis]], [[complex analysis]], and [[functional analysis]].
 
In analogy with [[arithmetic]], it is possible to define addition, subtraction, multiplication, and division of functions, in those cases where the output is a number. Another important operation defined on functions is [[composition of functions|function composition]], where the output from one function becomes the input to another function.
 
==Introduction and examples==
[[File:Function color example 3.svg|right|thumb|A function that associates to any of the four colored shapes its color.]]
For an example of a function, let ''X'' be the [[set (mathematics)|set]] consisting of four shapes: a red triangle, a yellow rectangle, a green hexagon, and a red square; and let ''Y'' be the set consisting of five colors: red, blue, green, pink, and yellow. Linking each shape to its color is a function from ''X'' to ''Y'': each shape is linked to a color (i.e., an element in ''Y''), and each shape is "linked", or "mapped", to exactly one color.  There is no shape that lacks a color and no shape that has two or more colors.  This function will be referred to as the "color-of-the-shape function".
 
The input to a function is called the [[Argument of a function|argument]] and the output is called the [[Value (mathematics)|value]]. The set of all permitted inputs to a given function is called the [[domain of a function|domain]] of the function, while the set of permissible outputs is called the [[codomain]]. Thus, the domain of the "color-of-the-shape function" is the set of the four shapes, and the codomain consists of the five colors. The concept of a function does ''not'' require that every possible output is the value of some argument, e.g. the color blue is not the color of any of the four shapes in ''X''.
 
A second example of a function is the following: the domain is chosen to be the set of [[natural numbers]] (1, 2, 3, 4, ...), and the codomain is the set of [[integer]]s (..., &minus;3, &minus;2, &minus;1, 0, 1, 2, 3, ...). The function associates to any natural number ''n'' the number 4&minus;''n''. For example, to 1 it associates 3 and to 10 it associates &minus;6.
 
A third example of a function has the set of [[polygon]]s as domain and the set of natural numbers as codomain. The function associates a polygon with its number of [[vertex (geometry)|vertices]]. For example, a triangle is associated with the number 3, a square with the number 4, and so on.
 
The term [[range (mathematics)|range]] is sometimes used either for the codomain or for the set of all the actual values a function has. To avoid ambiguity this article avoids using the term.
 
==Definition==
{{multiple image
| align    = right
| direction = vertical
| image1    = Injection keine Injektion 2a.svg
| caption1  = The above diagram represents a function with domain <math>\{ 1, 2, 3 \}</math>, codomain <math> \{ A, B, C, D \} </math> and set of ordered pairs <math> \{ (1,D), (2,C), (3,C) \} </math>. The image is <math>\{C,D\}</math>.
<br /><hr style="height:8pt; visibility:hidden"><hr><hr style="height:8pt; visibility:hidden">
|
| image2    = Injection keine Injektion 1.svg
| caption2  = However, this second diagram does ''not'' represent a function, since 2 is the first element in more than one ordered pair.  In particular, {{nowrap|(2, B)}} and {{nowrap|(2, C)}} are both elements of the set of ordered pairs.
}}
In order to avoid the use of the not rigorously defined words "rule" and "associates", the above intuitive explanation of functions is completed with a formal definition. This definition relies on the notion of the [[cartesian product]]. The cartesian product of two sets ''X'' and ''Y'' is the set of all [[ordered pair]]s, written (''x'', ''y''), where ''x'' is an element of ''X'' and ''y'' is an element of ''Y''. The ''x'' and the ''y'' are called the components of the ordered pair. The cartesian product of ''X'' and ''Y'' is denoted by ''X'' &times; ''Y''.
 
A function ''f'' from ''X'' to ''Y'' is a subset of the cartesian product ''X'' &times; ''Y'' subject to the following condition: every element of ''X'' is the first component of one and only one ordered pair in the subset.<ref>{{cite book |last=Hamilton |first=A. G. |title=Numbers, sets, and axioms: the apparatus of mathematics |page=83 |publisher=Cambridge University Press |isbn=0-521-24509-5 |url=http://books.google.com/books?id=OXfmTHXvRXMC&pg=PA83&dq=%22function+is+a+relation%22}}</ref> In other words, for every ''x'' in ''X'' there is exactly one element ''y'' such that the ordered pair (''x'', ''y'') is contained in the subset defining the function ''f''. This formal definition is a precise rendition of the idea that to each ''x'' is associated an element ''y'' of ''Y'', namely the uniquely specified element ''y'' with the property just mentioned.
 
Considering the "color-of-the-shape" function above, the set ''X'' is the domain consisting of the four shapes, while ''Y'' is the codomain consisting of five colors. There are twenty possible ordered pairs (four shapes times five colors), one of which is
:("yellow rectangle", "red").
The "color-of-the-shape" function described above consists of the set of those ordered pairs,
:(shape, color)
where the color is the actual color of the given shape. Thus, the pair ("red triangle", "red") is in the function, but the pair ("yellow rectangle", "red") is not.
 
==Notation==
{{details3|[[functional notation]]}}
A function ''f'' with domain ''X'' and codomain ''Y'' is commonly denoted by
:<math>f\colon X \rightarrow Y</math>
or
:<math>X \stackrel f \rightarrow Y.</math>
In this context, the elements of ''X'' are called [[Argument of a function|arguments]] of ''f''. For each argument ''x'', the corresponding unique ''y'' in the codomain is called the function [[Value (mathematics)|value]] at ''x'' or the ''image'' of ''x'' under ''f''. It is written as ''f''(''x''). One says that ''f'' associates ''y'' with ''x'' or maps ''x'' to ''y''. This is abbreviated by
:<math>y = f(x).</math>
 
A general function is often denoted by ''f''. Special functions have names, for example, the [[signum function]] is denoted by sgn. Given a [[real number]]&nbsp;''x'', its image under the signum function is then written as sgn(''x''). Here, the argument is denoted by the symbol ''x'', but different symbols may be used in other contexts. For example, in physics, the [[velocity]] of some body, depending on the time, is denoted ''v''(''t''). The parentheses around the argument may be omitted when there is little chance of confusion, thus: {{nowrap|sin ''x''}}; this is known as [[prefix notation]].
 
In order to specify a concrete function, the notation <math>\mapsto</math> (an arrow with a bar at its tail) is used. For example, the above function reads
:<math>\begin{align}
f\colon \mathbb{N} &\to \mathbb{Z} \\
x &\mapsto 4-x.
\end{align}</math>
The first part can be read as:
* "''f'' is a function from <math>\mathbb{N}</math> (the set of natural numbers) to <math>\mathbb{Z}</math> (the set of integers)" or
* "''f'' is an <math>\mathbb{Z}</math>-valued function of an <math>\mathbb{N}</math>-valued variable".
The second part is read "''x'' maps to 4&minus;''x''." In other words, this function has the [[natural number]]s as domain, the [[integers]] as codomain. Strictly speaking, a function is properly defined only when the domain and codomain are specified. For example, the formula ''f''(''x'') = 4 &minus; ''x'' alone (without specifying the codomain and domain) is not a properly defined function. Moreover, the function
: <math>\begin{align}
g\colon \mathbb{Z} &\to \mathbb{Z} \\
x &\mapsto 4-x.
\end{align}</math>
(with different domain) is not considered the same function, even though the formulas defining ''f'' and ''g'' agree, and similarly with a different codomain. Despite that, many authors drop the specification of the domain and codomain, especially if these are clear from the context. So in this example many just write ''f''(''x'') = 4 &minus; ''x''. Sometimes, the maximal possible domain is also understood implicitly: a formula such as <math>f(x)=\sqrt{x^2-5x+6}</math> may mean that the domain of ''f'' is the set of real numbers ''x'' where the square root is defined (in this case ''x''&nbsp;≤&nbsp;2 or ''x''&nbsp;≥&nbsp;3).{{sfn |Bloch |2011 |p=133}}
 
To define a function, sometimes a dot notation is used in order to emphasize the functional nature of an expression without assigning a special symbol to the variable. For instance, <math>\scriptstyle a(\cdot)^2</math> stands for the function <math>\textstyle x\mapsto ax^2</math>, <math>\scriptstyle \int_a^{\, \cdot} f(u)du</math> stands for the integral function <math>\scriptstyle x\mapsto \int_a^x f(u)du</math>, and so on.
 
==Specifying a function==
A function can be defined by any mathematical condition relating each argument (input value) to the corresponding output value. If the domain is finite, a function ''f'' may be defined by simply tabulating all the arguments ''x'' and their corresponding function values ''f''(''x''). More commonly, a function is defined by a [[formula]], or (more generally) an [[algorithm]] — a recipe that tells how to compute the value of ''f''(''x'') given any ''x'' in the domain.
 
There are many other ways of defining functions.  Examples include [[piecewise function|piecewise definitions]], [[induction (mathematics)|induction]] or [[recursion]], algebraic or [[analytic function|analytic]] [[closure (mathematics)|closure]], [[limit (mathematics)|limits]], [[analytic continuation]], infinite [[series (mathematics)|series]], and as solutions to [[integral equation|integral]] and [[differential equation]]s. The [[lambda calculus]] provides a powerful and flexible [[syntax]] for defining and combining functions of several variables.  In advanced mathematics, some functions exist because of an [[axiom]], such as the [[Axiom of Choice]].
 
===Graph===
The ''[[Graph of a function|graph]]'' of a function is its set of ordered pairs ''F''. This is an abstraction of the idea of a graph as a picture showing the function plotted on a pair of coordinate axes; for example, {{nowrap|(3, 9)}}, the point above 3 on the horizontal axis and to the right of 9 on the vertical axis, lies on the graph of
{{nowrap|1=y=x<sup>2</sup>.}}
 
===Formulas and algorithms===
Different formulas or algorithms may describe the same function. For instance {{nowrap|1=''f''(''x'') = (''x'' + 1) (''x'' − 1)}} is exactly the same function as {{nowrap|1=''f''(''x'') = ''x''<sup>2</sup> − 1}}.<ref>{{cite book |title=Theory of Recursive Functions and Effective Computation |author=Hartley Rogers, Jr |authorlink=Hartley Rogers, Jr |publisher=MIT Press |pages=1–2 |year=1987 |isbn=0-262-68052-1}}</ref>
Furthermore, a function need not be described by a formula, expression, or algorithm, nor need it deal with numbers at all: the domain and codomain of a function may be arbitrary [[set (mathematics)|sets]]. One example of a function that acts on non-numeric inputs takes English words as inputs and returns the first letter of the input word as output.
 
The [[factorial]] function is defined on the positive integers and produces a positive integer
:<math>!\colon \mathbb{N}^+ \rightarrow \mathbb{N}^+</math>
It is defined by the following inductive algorithm: 0! is defined to be 1, and ''n''! is defined to be <math>n (n-1)!</math>, using that the factorial of the predecessor was already defined. Unlike other functions, the factorial function is denoted with the exclamation mark (serving as the symbol of the function) after the variable ([[postfix notation]]).
 
===Computability===
{{Main|computable function}}
Functions that send integers to integers, or finite strings to finite strings, can sometimes be defined by an [[algorithm]], which gives a precise description of a set of steps for computing the output of the function from its input. Functions definable by an algorithm are called ''[[computable function]]s''. For example, the [[Euclidean algorithm]] gives a precise process to compute the [[greatest common divisor]] of two positive integers. Many of the functions studied in the context of [[number theory]] are computable.
 
Fundamental results of [[computability theory]] show that there are functions that can be precisely defined but are not computable. Moreover, in the sense of [[cardinality]], almost all functions from the integers to integers are not computable. The number of computable functions from integers to integers is [[countable]], because the number of possible algorithms is. The number of all functions from integers to integers is higher: the same as the cardinality of the [[real number]]s. Thus most functions from integers to integers are not computable. Specific examples of uncomputable functions are known, including the [[busy beaver function]] and functions related to the [[halting problem]] and other [[List of undecidable problems|undecidable problems]].
 
==Basic properties==
There are a number of general basic properties and notions. In this section, ''f'' is a function with domain ''X'' and codomain ''Y''.
 
===Image and preimage===
{{Main|Image (mathematics)}}
[[File:Function image and preimage 3.png|thumb|right|The graph of the function ''f''(''x'') = ''x''<sup>3</sup> &minus; 9''x''<sup>2</sup> + 23''x'' &minus; 15. The [[interval (mathematics)|interval]] ''A'' = [3.5, 4.25] is a subset of the domain, thus it is shown as part of the ''x''-axis (green). The image of ''A'' is (approximately) the interval [&minus;3.08, &minus;1.88]. It is obtained by projecting to the ''y''-axis (along the blue arrows) the intersection of the graph with the light green area consisting of all points whose ''x''-coordinate is between 3.5 and 4.25. the part of the (vertical) ''y''-axis shown in blue. The preimage of ''B'' = [1, 2.5] consists of three intervals. They are obtained by projecting the intersection of the light red area with the graph to the ''x''-axis.]]
If ''A'' is any subset of the domain ''X'', then ''f''(''A'') is the subset of the codomain ''Y'' consisting of all images of elements of A.  We say the ''f''(''A'') is the ''image'' of A under f. The ''image'' of ''f'' is given by ''f''(''X''). On the other hand, the ''[[inverse image]]'' (or ''[[preimage]]'', ''complete inverse image'') of a subset ''B'' of the codomain ''Y'' under a function ''f'' is the subset of the domain ''X'' defined by
:<math>f^{-1}(B) = \{x \in X : f(x) \in B\}.</math>
So, for example, the preimage of {4, 9} under the squaring function is the set {−3,−2,2,3}. The term [[range (mathematics)|range]] usually refers to the image,<ref name="standard" /> but sometimes it refers to the codomain.
 
By definition of a function, the image of an element ''x'' of the domain is always a single element ''y'' of the codomain. Conversely, though, the preimage of a [[Singleton (mathematics)|singleton]] set (a set with exactly one element) may in general contain any number of elements. For example, if ''f''(''x'') = 7 (the [[constant function]] taking value 7), then the preimage of {5} is the empty set but the preimage of {7} is the entire domain. It is customary to write ''f''<sup>−1</sup>(''b'') instead of ''f''<sup>−1</sup>({''b''}), i.e.
:<math>f^{-1}(b) = \{x \in X : f(x) = b\}.</math>
This set is sometimes called the [[fiber (mathematics)|fiber]] of ''b'' under ''f''.
 
Use of ''f''(''A'') to denote the image of a subset ''A'' ⊆ ''X'' is consistent so long as no subset of the domain is also an element of the domain.  In some fields (e.g., in set theory, where [[Ordinal number|ordinals]] are also sets of ordinals) it is convenient or even necessary to distinguish the two concepts; the customary notation is ''f''[''A''] for the set { ''f''(''x''): x ∈ ''A'' }. Likewise, some authors use square brackets to avoid confusion between the inverse image and the inverse function. Thus they would write ''f''<sup>−1</sup>[''B''] and ''f''<sup>−1</sup>[''b''] for the preimage of a set and a singleton.
 
===Injective and surjective functions===
A function is called ''[[injective function|injective]]'' (or ''one-to-one'', or an injection) if ''f''(''a'') &ne; ''f''(''b'') for any two ''different'' elements ''a'' and ''b'' of the domain. It is called [[surjective]] (or ''onto'') if ''f''(''X'') = ''Y''. That is, it is surjective if for every element ''y'' in the codomain there is an ''x'' in the domain such that ''f''(''x'') = ''y''. Finally ''f'' is called ''[[bijective]]'' if it is both injective and surjective. This nomenclature was introduced by the [[Nicolas Bourbaki|Bourbaki group]].
 
The above "color-of-the-shape" function is not injective, since two distinct shapes (the red triangle and the red rectangle) are assigned the same value. Moreover, it is not surjective, since the image of the function contains only three, but not all five colors in the codomain.
 
===Function composition===
{{Main|Function composition}}
[[File:Function machine5.svg|350px|right|thumbnail|A composite function ''g''(''f''(''x'')) can be visualized as the combination of two "machines". The first takes input ''x'' and outputs ''f''(''x''). The second takes ''f''(''x'') and outputs ''g''(''f''(''x'')).]]
The ''function composition'' of two functions takes the output of one function as the input of a second one. More specifically, the composition of ''f'' with a function ''g'':&nbsp;''Y''&nbsp;→&nbsp;''Z'' is the function <math>g \circ f\colon X \rightarrow Z</math> defined by
:<math>(g \circ f)(x) = g(f(x)).</math>
That is, the value of ''x'' is obtained by first applying ''f'' to ''x'' to obtain ''y'' = ''f''(''x'') and then applying ''g'' to ''y'' to obtain ''z'' = ''g''(''y''). In the notation <math>g\circ f</math>, the function on the right, ''f'', acts first and the function on the left, ''g'' acts second, reversing English reading order.  The notation can be memorized by reading the notation as "''g'' of ''f''" or "''g'' after ''f''". The composition <math>g\circ f</math> is only defined when the codomain of ''f'' is the domain of ''g''. Assuming that, the composition in the opposite order <math>f\circ g</math> need not be defined. Even if it is, i.e., if the codomain of ''f'' is the codomain of ''g'', it is ''not'' in general true that
:<math>g \circ f = f \circ g.</math>
That is, the order of the composition is important. For example, suppose ''f''(''x'')&nbsp;= ''x''<sup>2</sup> and ''g''(''x'')&nbsp;= ''x''+1. Then ''g''(''f''(''x''))&nbsp;= ''x''<sup>2</sup>+1, while ''f''(''g''(''x''))&nbsp;= (''x''+1)<sup>2</sup>, which is ''x''<sup>2</sup>+2''x''+1, a different function.
 
===Identity function===
{{Main|Identity function}}
The unique function over a set ''X'' that maps each element to itself is called the ''identity function'' for ''X'', and typically denoted by id<sub>''X''</sub>. Each set has its own identity function, so the subscript cannot be omitted unless the set can be inferred from context. Under composition, an identity function is "neutral": if ''f'' is any function from ''X'' to ''Y'', then
:<math>\begin{align}
f \circ \operatorname{id}_X &= f , \\
\operatorname{id}_Y \circ f &= f .
\end{align}</math>
 
===Restrictions and extensions===<!-- This section is linked from [[Subgroup]], [[Restriction]], [[Quadratic form]] -->
{{main|Restriction (mathematics)}}
Informally, a ''restriction'' of a function ''f'' is the result of trimming its domain. More precisely, if ''S'' is any subset of ''X'', the restriction of ''f'' to ''S'' is the function ''f''|<sub>''S''</sub> from ''S'' to ''Y'' such that ''f''|<sub>''S''</sub>(''s'') = ''f''(''s'') [[Universal quantification|for all]] ''s'' in ''S''. If ''g'' is a restriction of ''f'', then it is said that ''f'' is an ''extension'' of ''g''.
 
The ''overriding'' of ''f'': ''X'' → ''Y'' by ''g'': ''W'' → ''Y'' (also called ''overriding union'') is an extension of ''g'' denoted as (''f'' ⊕ ''g''): (''X'' ∪ ''W'') → Y.  Its graph is the set-theoretical union of the graphs of ''g'' and ''f''|<sub>''X'' \ ''W''</sub>.  Thus, it relates any element of the domain of ''g'' to its image under ''g'', and any other element of the domain of ''f'' to its image under ''f''.  Overriding is an [[associative operation]]; it has the [[empty function]] as an [[identity element]].  If ''f''|<sub>''X'' ∩ ''W''</sub> and ''g''|<sub>''X'' ∩ ''W''</sub> are pointwise equal (e.g., the domains of ''f'' and ''g'' are disjoint), then the union of ''f'' and ''g'' is defined and is equal to their overriding union.  This definition agrees with the definition of union for [[binary relation]]s.
 
===Inverse function===
{{Main|Inverse function}}
 
An ''inverse function'' for ''f'', denoted by ''f''<sup>&minus;1</sup>, is a function in the opposite direction, from ''Y'' to ''X'', satisfying
:<math>f \circ f^{-1} = \operatorname{id}_Y, f^{-1} \circ f = \operatorname{id}_X.</math>
That is, the two possible compositions of ''f'' and ''f''<sup>&minus;1</sup> need to be the respective identity maps of ''X'' and ''Y''.
 
As a simple example, if ''f'' converts a temperature in degrees Celsius ''C'' to degrees Fahrenheit ''F'', the function converting degrees Fahrenheit to degrees Celsius would be a suitable ''f''<sup>−1</sup>.
:<math>\begin{align}
f(C) &= \frac {9}{5} C + 32 \\
f^{-1}(F) &= \frac {5}{9} (F - 32)
\end{align}</math>
 
Such an inverse function exists if and only if ''f'' is bijective. In this case, ''f'' is called invertible. The notation <math>g \circ f</math> (or, in some texts, just <math>gf</math>) and ''f''<sup>&minus;1</sup> are akin to multiplication and reciprocal notation. With this analogy, identity functions are like the [[multiplicative identity]], 1, and inverse functions are like [[Multiplicative inverse|reciprocals]] (hence the notation).
 
==Types of functions==
 
===Real-valued functions===
A real-valued function ''f'' is one whose codomain is the set of [[real numbers]] or a [[subset]] thereof. If, in addition, the domain is also a subset of the reals, ''f'' is a real valued function of a real variable. The study of such functions is called [[real analysis]].
 
Real-valued functions enjoy so-called pointwise operations. That is, given two functions
:''f'', ''g'': ''X'' &rarr; ''Y''
where ''Y'' is a subset of the reals (and ''X'' is an arbitrary set), their (pointwise) sum ''f''+''g'' and product ''f''&nbsp;⋅&nbsp;''g'' are functions with the same domain and codomain. They are defined by the formulas:
:<math>\begin{align}
(f+g)(x) &= f(x)+g(x) , \\
(f\cdot g)(x) &= f(x) \cdot g(x) .
\end{align}</math>
 
In a similar vein, [[complex analysis]] studies functions whose domain and codomain are both the set of [[complex numbers]].  In most situations, the domain and codomain are understood from context, and only the relationship between the input and output is given, but if <math>f(x) = \sqrt{x}</math>, then in real variables the domain is limited to non-negative numbers.
 
The following table contains a few particularly important types of real-valued functions:
{| class="wikitable"
|-
! [[Affine function]]s !! [[Quadratic function]] !! [[Continuous function]] !! [[Trigonometric function]]
|-
| [[File:Gerade.svg|thumb|An affine function]] || [[File:Polynomialdeg2.svg|thumb|A quadratic function.]] || [[File:Signum function.svg|thumb|The [[signum function]] is not continuous, since it "jumps" at 0.]] ||
[[File:Sine cosine one period.svg|thumb|The sine and cosine function.]]
|-
| ''f''(''x'') = ''ax'' + ''b''. || ''f''(''x'') = ''ax''<sup>2</sup> + ''bx'' + ''c''.|| Roughly speaking, a continuous function is one whose graph can be drawn without lifting the pen. ||  e.g., sin(''x''), cos(''x'')
|}
 
===Further types of functions===
{{Further|List of mathematical functions}}
There are many other special classes of functions that are important to particular branches of mathematics, or particular applications.
Here is a partial list:
{{div col|3}}
*[[differentiable function|differentiable]], [[integrable function|integrable]]
*[[polynomial]], [[rational function|rational]]
*[[algebraic function|algebraic]], [[transcendental function|transcendental]]
*[[even and odd functions|odd or even]]
*[[convex function|convex]], [[monotonic function|monotonic]]
*[[holomorphic function|holomorphic]], [[Meromorphic function|meromorphic]], [[Entire function|entire]]
*[[vector-valued function|vector-valued]]
*[[computable function|computable]]
{{div col end}}
 
==Function spaces==
{{Main|Function space}}
The set of all functions from a set ''X'' to a set ''Y'' is denoted by ''X'' → ''Y'', by [''X'' → ''Y''], or by ''Y''<sup>''X''</sup>. The latter notation is motivated by the fact that, when ''X'' and ''Y'' are finite and of [[Cardinality|size]] |''X''| and |''Y''|, then the number of functions ''X''  → ''Y'' is |''Y''<sup>''X''</sup>| = |''Y''|<sup>|''X''|</sup>. This is an example of the convention from enumerative combinatorics that provides notations for sets based on their cardinalities. If ''X'' is [[infinity|infinite]] and there is more than one element in ''Y'' then there are [[uncountable set|uncountably many]] functions from ''X'' to ''Y'', though only countably many of them can be expressed with a formula or algorithm.
 
===Currying===
{{Main|Currying}}
 
An alternative approach to handling functions with multiple arguments is to transform them into a chain of functions that each takes a single argument. For instance, one can interpret Add(3,5) to mean "first produce a function that adds 3 to its argument, and then apply the 'Add 3' function to 5". This transformation is called [[currying]]: Add 3 is curry(Add) applied to 3. There is a [[bijection]] between the function spaces ''C''<sup>''A''×''B''</sup> and (''C''<sup>''B''</sup>)<sup>''A''</sup>.
 
When working with curried functions it is customary to use prefix notation with function application considered left-associative, since juxtaposition of multiple arguments—as in (''f'' ''x'' ''y'')—naturally maps to evaluation of a curried function.  Conversely, the → and ⟼ symbols are considered to be right-associative, so that curried functions may be defined by a notation such as ''f'': '''Z''' → '''Z''' → '''Z''' = ''x'' ⟼ ''y'' ⟼ ''x''·''y''.
 
==Variants and generalizations==
 
===Alternative definition of a function===
The above definition of "a function from ''X'' to ''Y''" is generally agreed on,{{Citation needed|reason= "generally agreed" unsubstantiated, sampling current literature indicates codomain not in the definition|date=August 2012}} however there are two different ways a "function" is normally defined where the domain ''X'' and codomain ''Y'' are not explicitly or implicitly specified. Usually this is not a problem as the domain and codomain normally will be known. With one definition saying the function defined by {{nowrap|1=''f''(''x'') = ''x''<sup>2</sup>}} on the reals does not completely specify a function as the codomain is not specified, and in the other it is a valid definition.
 
In the other definition a function is defined as a set of ordered pairs where each first element only occurs once. The domain is the set of all the first elements of a pair and there is no explicit codomain separate from the image.<ref>{{cite book |title=Calculus vol 1 |first=Tom |last=Apostol |authorlink=Tom M. Apostol |page=53 |publisher=John Wiley |isbn=0-471-00005-1 |year=1967}}</ref><ref>{{cite book |last=Heins |first=Maurice |title=Complex function theory |publisher=Academic Press |year=1968 |page=4 |url=http://books.google.com/books?id=OtyBXTOTwZoC&pg=PA4}}</ref>  Concepts like [[surjective]] have to be refined for such functions, more specifically by saying that a (given) function is ''surjective on a (given) set'' if its image equals that set.  For example, we might say a function ''f'' is surjective on the set of real numbers.
 
If a function is defined as a set of ordered pairs with no specific codomain, then {{nowrap|''f'': ''X'' → ''Y''}} indicates that ''f'' is a function whose domain is ''X'' and whose image is a subset of ''Y''.  This is the case in the ISO standard.<ref name="standard" /> ''Y'' may be referred to as the codomain but then any set including the image of ''f'' is a valid codomain of ''f''. This is also referred to by saying that "''f'' maps ''X'' into ''Y''"<ref name = "standard">''Quantities and Units - Part 2: Mathematical signs and symbols to be used in the natural sciences and technology'', page 15.  ISO 80000-2 (ISO/IEC 2009-12-01)</ref> In some usages ''X'' and ''Y'' may subset the ordered pairs, e.g. the function ''f'' on the real numbers such that ''y''=''x''<sup>2</sup> when used as in {{nowrap|''f'': [0,4] → [0,4]}} means the function defined only on the interval [0,2].{{sfn |Bartle |1967 |p=13}} With the definition of a function as an ordered triple this would always be considered a [[partial function]].
 
An alternative definition of the composite function ''g''(''f''(''x'')) defines it for the set of all ''x'' in the domain of ''f'' such that ''f(x)'' is in the domain of ''g''.{{sfn |Bartle |1967|p=21}} Thus the real square root of  −''x''<sup>2</sup> is a function only defined at 0 where it has the value 0.
 
Functions are commonly defined as a type of [[binary relation|relation]]. A relation from ''X'' to ''Y'' is a set of [[ordered pair]]s {{nowrap|(''x'', ''y'')}} with <math>x \in X</math> and <math>y \in Y</math>. A function from ''X'' to ''Y'' can be described as a relation from ''X'' to ''Y'' that is left-total and right-unique. However when ''X'' and ''Y'' are not specified there is a disagreement about the definition of a relation that parallels that for functions. Normally a relation is just defined as a set of ordered pairs and a [[Correspondence (mathematics)|correspondence]] is defined as a triple {{nowrap|(''X'', ''Y'', ''F'')}}, however the distinction between the two is often blurred or a relation is never referred to without specifying the two sets. The definition of a function as a triple defines a function as a type of correspondence, whereas the definition of a function as a set of ordered pairs defines a function as a type of relation.
 
Many operations in set theory, such as the [[power set]], have the [[Class (set theory)|class]] of all sets as their domain, and therefore, although they are informally described as functions, they do not fit the set-theoretical definition outlined above, because a class is not necessarily a set. However some definitions of relations and functions define them as classes of pairs rather than sets of pairs and therefore do include the power set as a function.<ref>{{cite book |title=A formalization of set theory without variables |last1=Tarski |first1=Alfred |authorlink=Alfred Tarski |last2=Givant |first2=Steven |year=1987 |page=3 |publisher=American Mathematical Society |isbn=0-8218-1041-3}}</ref>
 
===Partial and multi-valued functions===
[[File:Function with two values 1.svg|thumb|right|<math>f(x) = \pm \sqrt x</math> is not a function in the proper sense, but a multi-valued function: it assigns to each positive real number ''x'' two values: the (positive) [[square root]] of ''x'', and <math>-\sqrt x.</math>]]
In some parts of mathematics, including [[recursion theory]] and [[functional analysis]], it is convenient to study ''[[partial function]]s'' in which some values of the domain have no association in the graph; i.e., single-valued relations.  For example, the function ''f'' such that ''f''(''x'')&nbsp;=&nbsp;1/''x'' does not define a value for ''x''&nbsp;=&nbsp;0, since [[division by zero]] is not defined. Hence ''f'' is only a partial function from the real line to the real line.  The term [[total function]] can be used to stress the fact that every element of the domain does appear as the first element of an ordered pair in the graph. In other parts of mathematics, non-single-valued relations are similarly conflated with functions: these are called ''[[multivalued function]]s'', with the corresponding term [[single-valued function]] for ordinary functions.
 
===Functions with multiple inputs and outputs===
The concept of function can be extended to an object that takes a combination of two (or more) argument values to a single result.  This intuitive concept is formalized by a function whose domain is the [[Cartesian product]] of two or more sets.
 
For example, consider the function that associates two [[integer]]s to their product: ''f''(''x'', ''y'') = ''x''·''y''. This function can be defined formally as having domain '''Z'''&times;'''Z''', the set of all integer pairs; codomain '''Z'''; and, for graph, the set of all pairs ((''x'',''y''), ''x''·''y''). Note that the first component of any such pair is itself a pair (of integers), while the second component is a single integer.
 
The function value of the pair (''x'',''y'') is ''f''((''x'',''y'')).  However, it is customary to drop one set of parentheses and consider ''f''(''x'',''y'') a function of two variables, ''x'' and ''y''. Functions of two variables may be plotted on the three-dimensional Cartesian as ordered triples of the form (''x'',''y'',''f''(''x'',''y'')).
 
The concept can still further be extended by considering a function that also produces output that is expressed as several variables. For example, consider the integer divide function, with domain '''Z'''&times;'''N''' and codomain '''Z'''&times;'''N'''. The resultant (quotient, remainder) pair is a single value in the codomain seen as a Cartesian product.
 
====Binary operations====
The familiar [[binary operation]]s of [[arithmetic]], [[addition]] and [[multiplication]], can be viewed as functions from '''R'''&times;'''R''' to '''R'''. This view is generalized in [[abstract algebra]], where ''n''-ary functions are used to model the operations of arbitrary algebraic structures.  For example, an abstract [[group (mathematics)|group]] is defined as a set ''X'' and a function ''f'' from ''X''&times;''X'' to ''X'' that satisfies certain properties.
 
Traditionally, addition and multiplication are written in the [[infix]] notation: ''x''+''y'' and ''x''&times;''y'' instead of +(''x'', ''y'')  and  &times;(''x'', ''y'').
 
===Functors===
The idea of [[Mathematical structure|structure]]-preserving functions, or [[homomorphism]]s, led to the abstract notion of [[morphism]], the key concept of [[category theory]]. In fact, functions ''f'': ''X'' &rarr; ''Y'' are the morphisms in the [[category of sets]], including the empty set: if the domain ''X'' is the [[empty set]], then the subset of ''X'' &times; ''Y'' describing the function is necessarily empty, too. However, this is still a well-defined function. Such a function is called an [[empty function]]. In particular, the identity function of the empty set is defined, a requirement for sets to form a category.
 
The concept of [[categorification]] is an attempt to replace set-theoretic notions by category-theoretic ones. In particular, according to this idea, sets are replaced by categories, while functions between sets are replaced by [[functor]]s.<ref>{{Cite journal|arxiv=math/9802029|title=Categorification|author=John C. Baez |authorlink=John C. Baez |coauthors=James Dolan|year=1998}}</ref>
 
==History==
{{Main|History of the function concept}}
 
==See also==
{{div col|3}}
*[[Associative array]]
*[[Functional (mathematics)|Functional]]
*[[Functional decomposition]]
*[[Functional predicate]]
*[[Functional programming]]
*[[Generalized function]]
*[[Implicit function]]
*[[Parametric equation]]
*[[Multivalued function]]
{{div col end}}
 
==Notes==
{{Reflist|colwidth=30em}}
 
==References==
* {{cite book |ref=harv |last=Bartle |first=Robert |authorlink=Robert G. Bartle |title=The Elements of Real Analysis |year=1967|publisher=John Wiley & Sons}}
* {{cite book |ref=harv |last=Bloch |first=Ethan D. |title=Proofs and Fundamentals: A First Course in Abstract Mathematics |publisher=Springer |year=2011|isbn=978-1-4419-7126-5 |url=http://books.google.com/books?id=QJ_537n8zKYC}}
* {{cite book |ref=harv |last=Halmos |first=Paul R. |authorlink=Paul Halmos |year=1970 |title=Naive Set Theory |publisher=Springer-Verlag |isbn=0-387-90092-6 |url=http://books.google.com/books?id=x6cZBQ9qtgoC}}
* {{cite book |ref=harv |title=Calculus |first=Michael |last=Spivak |authorlink=Michael Spivak |edition=4th |year=2008 |publisher=Publish or Perish |isbn=978-0-914098-91-1 |url=http://books.google.com/books?id=7JKVu_9InRUC}}
 
==Further reading==
* {{Cite book |last=Anton |first=Howard |title=Calculus with Analytical Geometry |year=1980 |publisher=[[John Wiley & Sons|Wiley]] |isbn=978-0-471-03248-9}}
* {{Cite book |last=Bartle |first=Robert G. |title=The Elements of Real Analysis |edition=2nd |year=1976 |publisher=Wiley |isbn=978-0-471-05464-1}}
* {{Cite book |title=The Concept of Function: Aspects of Epistemology and Pedagogy|publisher=Mathematical Association of America |year=1992 |first1=Ed |last1=Dubinsky |first2=Guershon |last2=Harel |isbn=0-88385-081-8}}
* {{Cite book |last=Hammack |first=Richard |title=Book of Proof |year=2009 |publisher=[[Virginia Commonwealth University]] |url=http://www.people.vcu.edu/~rhammack/BookOfProof/ |chapter=12. Functions |chapter-url=http://www.people.vcu.edu/~rhammack/BookOfProof/Functions.pdf |accessdate=2012-08-01}}
* {{Cite book |last=Husch |first=Lawrence S. |title=Visual Calculus |year=2001 |publisher=[[University of Tennessee]] |url=http://archives.math.utk.edu/visual.calculus/ |accessdate=2007-09-27}}
* {{Cite book |last=Katz |first=Robert |title=Axiomatic Analysis |year=1964 |publisher=[[D. C. Heath and Company]]}}
* {{Cite book |title=Evolution of the Function Concept: A Brief Survey |first=Israel |last=Kleiner |journal=The College Mathematics Journal |volume=20 |issue=4 |year=1989 |pages=282–300 |doi=10.2307/268684 8|jstor=2686848 |publisher=Mathematical Association of America}}.
* {{Cite book |title=The Cambridge History of Science: The modern physical and mathematical sciences |chapter=Between rigor and applications: Developments in the concept of function in mathematical analysis |first=Jesper |last=Lützen |url=http://books.google.com/books?id=B3WvWhJTTX8C&pg=PA468 |editor=Roy Porter, ed |publisher=Cambridge University Press |year=2003 |isbn=0521571995}} An approachable and diverting historical presentation.
* {{Cite book |title=Historical and pedagogical aspects of the definition of function |last=Malik |first=M. A. |journal=International Journal of Mathematical Education in Science and Technology |volume=11 |issue=4 |year=1980 |pages=489–492 |doi=10.1080/0020739800110404}}
* Reichenbach, Hans (1947) ''Elements of Symbolic Logic'', Dover Publishing Inc., New York NY, ISBN 0-486-24004-5.
* {{Cite book |last=Ruthing |first=D. |title=Some definitions of the concept of function from Bernoulli, Joh. to Bourbaki, N. |journal=Mathematical Intelligencer |volume=6 |issue=4 |pages=72–77 |year=1984}}
* {{Cite book |last1=Thomas |first1=George B. |last2=Finney |first2=Ross L. |title=Calculus and Analytic Geometry |edition=9th |year=1995 |publisher=[[Addison-Wesley]] |isbn=978-0-201-53174-9}}
 
==External links==
{{Commons category|Functions}}
* [https://www.khanacademy.org/math/algebra/algebra-functions Khan Academy: Functions, free online micro lectures]
* {{springer|title=Function|id=p/f041940}}
* {{MathWorld| title=Function| id=Function}}
* [http://functions.wolfram.com/ The Wolfram Functions Site] gives formulae and visualizations of many mathematical functions.
* [http://www.shodor.org/interactivate/activities/FunctionFlyer/ Shodor: Function Flyer], interactive Java applet for graphing and exploring functions.
* [http://math.hws.edu/xFunctions/ xFunctions], a Java applet for exploring functions graphically.
* [http://rechneronline.de/function-graphs/ Draw Function Graphs], online drawing program for mathematical functions.
* [http://www.cut-the-knot.org/do_you_know/FunctionMain.shtml Functions] from [[cut-the-knot]].
* [http://www.apronus.com/provenmath/cartesian.htm Function at ProvenMath].
* [http://sporkforge.com/math/fcn_graph_eval.php Comprehensive web-based function graphing & evaluation tool].
* [http://www.abstractmath.org/MM/MMFunctions.htm Abstractmath.org articles on functions]
 
{{logic|Mathematical}}
 
{{DEFAULTSORT:Function (Mathematics)}}
[[Category:Functions and mappings]]
[[Category:Basic concepts in set theory]]
[[Category:Elementary mathematics]]
 
{{Link FA|lmo}}

Latest revision as of 01:24, 19 October 2014

The initial popular kind are the lotions plus ointments where you rub a drugs onto the outside of the rectum. It intends to treat a hemorrhoid by relaxing the blood vessels. This relaxes the cells thus that it no longer continues to bulge. When the cells go down, the hemorrhoids may not flare up as much. This is wonderful for a little temporary relief, however, the hemorrhoid usually commonly flare up again when utilizing this system of main treatment.

This method is perfect for those that leave an active lifestyle. If you're usually found on the move plus don't have time to use additional remedies, then we would like to consider utilizing an alternative hemorrhoids surgery, like creams and ointments. Walking produces friction and that also leads to irritation on a swelling. Remember movement seems to cause the swelling to worsen whenever it happens to be rubbed. With lubricant you are capable to make friction with less impact. There are some special creams on the market, after using then impact usually be relaxing and cooling the area and that might reduce the pain.

Whenever you want to have a bowel movement do not strain. This puts additional stress on a hemorrhoids that usually create them worse. You would think that you have to strain whenever you go to the bathroom, nevertheless it happens to be the worse thing you are able to do. So try to take a little more time when you need to see the bathroom and it usually assist we.

But there are certain aspects which clearly state several hemorrhoid natural treatments are more powerful considering they have no negative effects, they have soothing attributes, they heal the condition from inside plus they also prevent the same from coming back.

Witch Hazel when utilized because an component inside hemorrhoid treatments has an virtually magical effect. If you empty a little bottle of Witch Hazel into the bathroom tissue box, the tissue might absorb it. This makes a especially soothing replace for coarser toilet tissue and is ideal for gentle cleansing of the delicate area in addition to reducing pain plus itching.

We could wish To consider over the counter pain relief in the event you find the condition rather painful. This may come inside the form of creams or pain killing medication, all of that will be accessible in different strengths. You may like to try out a mixture of the 2 inside purchase to get the best impact which assists to minimize your pain.

Although these 7 steps are all great ways to heal hemorrhoids, they are no promise that you are capable to completely heal your hemorrhoids or that they won't return. As a rule, if symptoms never clear up completely, come back in a limited days or deteriorate at some point in drugs, you need to get an appointment to pay a visit to your general specialist appropriate away.