1.4 Functions, Relations, and Sequences

Functions


Definition


A function ƒ f with hook from a set A A domain to a set B B codomain is a rule that assigns to each x∈A x is a member of A a unique ƒ⁡(x)∈B f with hook of x is a member of B. Denote ƒ:A→B f with hook colon A right arrow B.

Types of Functions


Injective (One-to-One): ƒ⁡(x1)=ƒ⁡(x2)→x1=x2 f with hook of open paren x sub 1 close paren equals f with hook of open paren x sub 2 close paren right arrow x sub 1 equals x sub 2.

Surjective (Onto): ∀y∈B∃x∈A:ƒ⁡(x)=y for all y is a member of B there exists x is a member of A colon f with hook of x equals y

Bijective: Both injective and surjective; has an inverse ƒ-1:B→A f with hook to the negative 1 power colon B right arrow A.

Operations on Functions


Composition: Given ƒ:A→B f with hook colon A right arrow B, g:B→C g colon B right arrow C, define g○ƒ:B→C g white circle f with hook colon B right arrow C by (g○ƒ)⁢(x)=g⁡(ƒ⁡(x)) open paren g white circle f with hook close paren times x equals g of f with hook of x.

Inverse Function: If ƒ f with hook is bijective, then ƒ-1:B→A f with hook to the negative 1 power colon B right arrow A satisfies ƒ-1⁡(ƒ⁡(x))=x f with hook inverse of f with hook of x equals x and ƒ⁡(ƒ-1⁡(y))=y f with hook of f with hook inverse of y equals y.

Relations


Definition


A relation R R on sets A A and B B is a subset R⊆A×B R subset of or equal to A times B. If (a,b)∈R open paren a comma b close paren is a member of R, we write a⁢R⁢b a R b.

Properties of Relations on a Set A


Reflexive: ∀a∈A:(a,a)∈R for all a is a member of A colon open paren a comma a close paren is a member of R.

Symmetric: If (a,b)∈R open paren a comma b close paren is a member of R, then (b,a)∈R open paren b comma a close paren is a member of R.

Antisymmetric: If (a,b)∈R open paren a comma b close paren is a member of R and (b,a)∈R open paren b comma a close paren is a member of R, then a=b a equals b.

Transitive: If (a,b)∈R open paren a comma b close paren is a member of R and (b,c)∈R open paren b comma c close paren is a member of R, then (a,c)∈R open paren a comma c close paren is a member of R.

Special Relations


Equivalence Relation: Reflexive, symmetric, and transitive. Partitions A A into equivalence classes.

Partial Order: Reflexive, antisymmetric, and transitive. Yields poset (A,≤) open paren A comma is less than or equal to close paren.

Sequences


Definition


A sequence is a function a:ℕ→S a colon the natural numbers right arrow S, often denoted (an)n≧0 open paren a sub n close paren sub n is greater than over equals 0 or {an}n=0∞ the set a sub n sub n equals 0 raised to the infinity power.

Types of Sequences


Finite Sequence: Defined for n=0⁢1,⋯,N n equals 0 1 comma dot dot dot comma N.

Infinite Sequence: Defined for all n∈ℕ n is a member of the natural numbers.

Arithmetic Sequence


Defined by an=a0+n⁢d a sub n equals a sub 0 plus n d. Sum of first n n terms: ∑k=0n(ak)=(n+1)⁢a0+an2 the sum from k equals 0 to n of open paren a sub k close paren equals open paren n plus 1 close paren times the fraction with numerator a sub 0 plus a sub n and denominator 2.

Geometric Sequence


Defined by an=a0⁢rn a sub n equals a sub 0 r to the n-th power. Sum of first n n terms: ∑k=0n(a0⁢rk)=a0⁢1-rn+11-r the sum from k equals 0 to n of open paren a sub 0 r to the k-th power close paren equals a sub 0 the fraction with numerator 1 minus r raised to the n plus 1 power and denominator 1 minus r ;r≠1 semicolon r is not equal to 1.

Recurrence Relations


A relation defining an a sub n in terms of previous terms, e.g. an+1=p⁢an+q⁢an-1 a sub n plus 1 equals p a sub n plus q a sub n minus 1 with initial conditions. Use characteristic equations to solve.