Function
A function f is a special kind of relation
Contents
[hide]Definition
A function is a special kind relation[1], for a relation:
- f⊆X×Y
We must have:
- f being a right-unique relation, recall that is:
- For a relation R⊆X×Y we have ∀x∈X∀y,z∈Y[(xRy∧xRz)⟹y=z]
- Everything maps to something
Then we write: f:X→Y[1] Furthermore, if (x,y)∈f (which is to say xfy or f relates x to y) we write:
- f(x)=y or f:x↦y
Notation when tuples are involved
It is often convenient to write things like f:(A,B)→(C,D,E) where (A,B) is a space with some useful property, this always means f:A→C, for example:
- If we have say two topological spaces (X,J) and (Y,K) then we may write:
- f:(X,J)→(Y,K) and mean f:X→Y
- That is to say that as a general rule given a function f:(A1,A2,⋯)→(B1,B2,⋯) take it as a function f:A1→B1
- A tuple makes no sense there anyway, for multiple arguments we write the Cartesian product, so f:A×B→C×D×E say means "f takes an argument in A and another argument in B and maps these to a tuple whose first element is in C, second in D and third in E".
Notation for restriction
Suppose we have f:(X,A)→(Y,B) where A⊆X and B⊆Y and are not a part of the definition for a space on X or Y, then:
- f:(X,A)→(Y,B) may mean[2] the following:
- f:X→Y (as expected) with the additional information that:
- f|A:A→B (where f|A denotes the restriction of f to A)
- Which is to say that f(A)⊆B
Conventions
We've now covered the formal definition of a function, however conventionally sometimes these are broken
Functions and their domain
A function ought be defined for everything in its domain, that's for every point in the domain the function maps the point to something. Often mathematicians don't bother (as Mathematicians are lazy) especially if the number of undefined points is finite.
Examples
- f:R→Rgiven by f(x)=1xisn't defined at 0, it should be: f:R−{0}→R with f:x→1x
- f:R→Rgiven by f(x)=x2is correct, it is not surjective though, because nothing maps onto the negative numbers, however f:R→R≥0with f(x)=x2is a surjection. It is not an injective function as only 0maps to one point.
Alternative names
A function may AKA:
See also
References
- ↑ Jump up to: 1.0 1.1 1.2 1.3 Analysis - Part 1: Elements - Krzysztof Maurin
- Jump up ↑ Fundamentals of Algebraic Topology - Steven H. Weintraub