Relations
Relations
A binary relation on sets and is a subset . This takes the form of a set of tuples with and . It is also sometimes written as .
Given sets , a subset is a n-ary relation.
Relation composition
Let and . The composition relation is .
If there is a relation and a relation where the in is the same as the in , then we have a relation .
Unlike function composition, there can be more than one element used to get from to . For example, and also leads to .
Suppose is a relation on , . This means:
- is the identity relation
Equivalence relations
Some properties of a binary relation on might include:
-
Reflexive
iff -
Symmetric
iff -
Antisymmetric
iff -
Transitive
iff
A relation on a set is an equivalence relation iff it is reflexive, symmetric and transitive.
Let be an equivalence relation on set and . Let be the equivalence class of with respect to . If then is called a representitive of the equivalence class.
Following from this, the following 3 statements are equivalent:
Sequences
Sequences are ordered lists of elements. A sequence over a set is a function from a subset of the integers (typically or ) to the set . If the domain of is finite then the sequence is finite.
Progressions
An arithmetic progression is of the form:
A geometric progression is of the form:
Where the initial element , common difference , and common ratio are all real numbers.
Recurrence relations
A recurrence relation for is an equation that expresses in terms of one or more of the elements . Typically it just expresses is terms of a fixed number of previous elements. The initial conditions specify the first elements of the sequence before the recurrence relation applies. A sequence is a solution of a recurrence relation iff its terms satisfy the relation.
Compound interest
In general, compound interest can be written as a recurrence relation.
Where is the value after years, is the initial value and is the interest rate as a decimal.