Linear Algebra/Sets, Functions, Relations

From testwiki
Revision as of 00:15, 5 October 2012 by imported>InverseHypercube (Functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Navigation

Sets

Mathematicians work with collections called sets. A set can be given as a listing between curly braces as in {1,4,9,16}, or, if that's unwieldy, by using set-builder notation as in {x|x53x3+2=0} (read "the set of all x such that \ldots"). We name sets with capital roman letters as with the primes P={2,3,5,7,11,}, except for a few special sets such as the real numbers , and the complex numbers . Template:AnchorTo denote that something is an element (or member) of a set we use "", so that 7{3,5,7} while 8∉{3,5,7}.

What distinguishes a set from any other type of collection is the Principle of Extensionality, that two sets with the same elements are equal. Because of this principle, in a set repeats collapse {7,7}={7} and order doesn't matter {2,π}={π,2}.

Template:AnchorWe use "" for the subset relationship: {2,π}{2,π,7} and "" for subset or equality (if A is a subset of B but AB then A is a proper subset of B). These symbols may be flipped, for instance {2,π,5}{2,5}.

Because of Extensionality, to prove that two sets are equal A=B, just show that they have the same members. Template:AnchorUsually we show mutual inclusion, that both AB and AB.

Set operations

Venn diagrams are handy here. For instance, xP can be pictured

and "PQ" looks like this.

Note that this is a repeat of the diagram for "if \ldots then ..." propositions. That's because "PQ" means "if xP then xQ".

In general, for every propositional logic operator there is an associated set operator. Template:AnchorFor instance, the complement of P is Pcomp={x|not (xP)}

the union is PQ={x|(xP) or (xQ)}

and the intersection is PQ={x|(xP) and (xQ)}.

Template:Anchor}}When two sets share no members their intersection is the empty set {}, symbolized . Any set has the empty set for a subset, by the "vacuously true" property of the definition of implication.

Sequences

We shall also use collections where order does matter and where repeats do not collapse. These are sequences, denoted with angle brackets: 2,3,72,7,3. Template:AnchorA sequence of length 2 is sometimes called an ordered pair and written with parentheses: (π,3). We also sometimes say "ordered triple", "ordered 4-tuple", etc. The set of ordered n-tuples of elements of a set A is denoted An. Thus the set of pairs of reals is 2.

Functions

We first see functions in elementary Algebra, where they are presented as formulas (e.g., f(x)=16x2100), but progressing to more advanced Mathematics reveals more general functions— trigonometric ones, exponential and logarithmic ones, and even constructs like absolute value that involve piecing together parts— and we see that functions aren't formulas, instead the key idea is that a function associates with its input x a single output f(x).

Template:AnchorConsequently, a function or map is defined to be a set of ordered pairs (x,f(x)) such that x suffices to determine f(x), that is: if x1=x2 then f(x1)=f(x2) (this requirement is referred to by saying a function is well-defined).\footnote{More on this is in the section on isomorphisms}

Template:AnchorEach input x is one of the function's arguments and each output f(x) is a value. Template:AnchorThe set of all arguments is f's domain and the set of output values is its range. Template:AnchorUsually we don't need know what is and is not in the range and we instead work with a superset of the range, the codomain. The notation for a function f with domain X and codomain Y is f:XY.

Template:AnchorWe sometimes instead use the notation xf16x2100, read "x maps under f to 16x2100", or "16x2100 is the "image' of x'.

Some maps, like xsin(1/x), can be thought of as combinations of simple maps, here, g(y)=sin(y) applied to the image of f(x)=1/x. Template:AnchorThe composition of g:YZ with f:XY, is the map sending xX to g(f(x))Z. It is denoted gf:XZ. This definition only makes sense if the range of f is a subset of the domain of g.

Template:AnchorObserve that the identity map id:YY defined by id(y)=y has the property that for any f:XY, the composition idf is equal to f. So an identity map plays the same role with respect to function composition that the number 0 plays in real number addition, or that the number 1 plays in multiplication.

Template:AnchorIn line with that analogy, define a left inverse of a map f:XY to be a function g:range(f)X such that gf is the identity map on X. Template:AnchorOf course, a right inverse of f is a h:YX such that fh is the identity.

Template:AnchorA map that is both a left and right inverse of f is called simply an inverse. An inverse, if one exists, is unique because if both g1 and g2 are inverses of f then g1(x)=g1(fg2)(x)=(g1f)g2(x)=g2(x) (the middle equality comes from the associativity of function composition), so we often call it "the" inverse, written f1. For instance, the inverse of the function f: given by f(x)=2x3 is the function f1: given by f1(x)=(x+3)/2.

The superscript "f1" notation for function inverse can be confusing— it doesn't mean 1/f(x). It is used because it fits into a larger scheme. Functions that have the same codomain as domain can be iterated, so that where f:XX, we can consider the composition of f with itself: ff, and fff, etc.

Naturally enough, we write ff as f2 and fff as f3, etc. Note that the familiar exponent rules for real numbers obviously hold: fifj=fi+j and (fi)j=fij. The relationship with the prior paragraph is that, where f is invertible, writing f1 for the inverse and f2 for the inverse of f2, etc., gives that these familiar exponent rules continue to hold, once f0 is defined to be the identity map.

Template:AnchorIf the codomain Y equals the range of f then we say that the function is onto (or surjective). A function has a right inverse if and only if it is onto (this is not hard to check). Template:AnchorIf no two arguments share an image, if x1x2 implies that f(x1)f(x2), then the function is one-to-one (or injective). A function has a left inverse if and only if it is one-to-one (this is also not hard to check).

Template:AnchorBy the prior paragraph, a map has an inverse if and only if it is both onto and one-to-one; such a function is a correspondence. It associates one and only one element of the domain with each element of the range (for example, finite sets must have the same number of elements to be matched up in this way). Because a composition of one-to-one maps is one-to-one, and a composition of onto maps is onto, a composition of correspondences is a correspondence.

We sometimes want to shrink the domain of a function. For instance, we may take the function f: given by f(x)=x2 and, in order to have an inverse, limit input arguments to nonnegative reals f^:+. Template:AnchorTechnically, f^ is a different function than f; we call it the restriction of f to the smaller domain.

A final point on functions: neither x nor f(x) need be a number. As an example, we can think of f(x,y)=x+y as a function that takes the ordered pair (x,y) as its argument.

Relations

Some familiar operations are obviously functions: addition maps (5,3) to 8. But what of "<" or "="? We here take the approach of rephrasing "3<5" to "(3,5) is in the relation <". Template:AnchorThat is, define a binary relation on a set A to be a set of ordered pairs of elements of A. For example, the < relation is the set {(a,b)|a<b}; some elements of that set are (3,5), (3,7), and (1,100).

Another binary relation on the natural numbers is equality; this relation is formally written as the set {,(1,1),(0,0),(1,1),}.

Still another example is "closer than 10", the set {(x,y)||xy|<10}. Some members of that relation are (1,10), (10,1), and (42,44). Neither (11,1) nor (1,11) is a member.

Those examples illustrate the generality of the definition. All kinds of relationships (e.g., "both numbers even" or "first number is the second with the digits reversed") are covered under the definition.

Equivalence Relations

We shall need to say, formally, that two objects are alike in some way. While these alike things aren't identical, they are related (e.g., two integers that "give the same remainder when divided by 2").

A binary relation {(a,b),} is an equivalence relationwhen it satisfies

  1. Template:Anchorreflexivity: any object is related to itself;
  2. Template:Anchorsymmetry: if a is related to b then b is related to a;
  3. Template:Anchortransitivity: if a is related to b and b is related to c then a is related to c.

(To see that these conditions formalize being the same, read them again, replacing "is related to" with "is like".)

Some examples (on the integers): "=" is an equivalence relation, "<" does not satisfy symmetry, "same sign" is a equivalence, while "nearer than 10" fails transitivity.

Partitions

In "same sign" {(1,3),(5,7),(1,1),} there are two kinds of pairs, the first with both numbers positive and the second with both negative. So integers fall into exactly one of two classes, positive or negative.

A partition of a set S is a collection of subsets {S1,S2,} such that every element of S is in one and only one Si: S1S2=S, and if i is not equal to j then SiSj=. Picture S being decomposed into distinct parts.

Thus, the first paragraph says "same sign" partitions the integers into the positives and the negatives.

Similarly, the equivalence relation "=" partitions the integers into one-element sets.

Another example is the fractions. Of course, 2/3 and 4/6 are equivalent fractions. That is, for the set S={n/d|n,d and d0}, we define two elements n1/d1 and n2/d2 to be equivalent if n1d2=n2d1. We can check that this is an equivalence relation, that is, that it satisfies the above three conditions. With that, S is divided up into parts.

Before we show that equivalence relations always give rise to partitions, we first illustrate the argument. Consider the relationship between two integers of "same parity", the set {(1,3),(2,4),(0,0),} (i.e., "give the same remainder when divided by 2"). We want to say that the natural numbers split into two pieces, the evens and the odds, and inside a piece each member has the same parity as each other. So for each x we define the set of numbers associated with it: Sx={y|(x,y)same parity}. Some examples are S1={,3,1,1,3,}, and S4={,2,0,2,4,}, and S1={,3,1,1,3,}. These are the parts, e.g., S1 is the odds.


Template:Anchor}}Theorem An equivalence relation induces a partition on the underlying set.

Template:TextBox

Template:Anchor}}We call each part of a partition an equivalence class (or informally, "part").

Template:AnchorWe somtimes pick a single element of each equivalence class to be the class representative.

Usually when we pick representatives we have some natural scheme in mind. Template:AnchorIn that case we call them the canonical representatives.

An example is the simplest form of a fraction. We've defined 3/5 and 9/15 to be equivalent fractions. In everyday work we often use the "simplest form" or "reduced form" fraction as the class representatives.

Template:Navigation

Template:BookCat