given sets and relations give matrix representation; what is co-domain etc

Hi

I am trying to find a general explanation:

1. how to construct matrix representation of Relation (R) could be (given sets and R between thm)

2. what is R reflexive, irreflexive, symmetric, anti-symmetric, transitive

3. wheteher R is an equivalence or partial order relation

4. what a co-domain is

5. what is well defined function

6. what are composite functions

Could anyone recommend a place to learn about it, with simple explanations?.. Any help greatly appreciated!!