Assignment 1
( \newcommand{\kernel}{\mathrm{null}\,}\)
Determine whether or not each of the following binary relations R on the given set A is reflexive, symmetric, antisymmetric, or transitive. If a relation has a certain property, prove this is so; otherwise, provide a counterexample to show that it does not. If R is an equivalence relation, describe the equivalence classes of A.
Define a relation R on A=Z by
aRb if and only if 4∣(3a+b), for a,b∈Z.
- Answer
-
R is reflexive on Z.
Proof:
Let a∈Z.
We shall show that aRa, specifically 4|(3a+a).
Consider 3a+a=4a and a∈Z.
Thus 4|(3a+a), and aRa.
Therefore R is reflexive on Z.◻
R is symmetric on Z.
Proof:
Let a,b∈Z s.t. 4|(3a+b).
Thus 3a+b=4m for some m∈Z.
We will show that 4∣3b+a.
Since 3a+b=4m, −3a−b=−4m.
Then 4(a+b)−3a−b=4(a+b)−4m.
Thus 3b+a=4(a+b−m) where a+b−m∈Z.
Hence 4|(3b+a). Hence bRa.
Thus R is symmetric on Z.
R is not antisymmetric on Z.
Counterexample:
Let a=0 and b=4.
Then 4|(3(0)+4) and 4|(3(4)+0). Thus 4R0 and 0R4
However, since 0≠4 R is not antisymmetric on Z.◻
R is transitive on Z.
Proof:
Let a,b,c∈Z s.t. aRb and bRc.
Since aRb, 4|(3a+b) and bRc, 5|(3b+c).
We will show that aRc, that is 4|(3a+c).
Since 4|(3a+b), 3a+b=4(k) for some k∈Z.
Since 4|(3b+c), 3b+c=4(m) for some m∈Z.
Consider 3a+c=(3a+b)+(3b+c)−4b=4(k)+4(m)−(b)=5(k+m−b), where k+m−b∈Z.
Hence 4|3a+c. Thus aRc.
Hence R is transitive on Z.◻
Since R is reflexive, symmetric and transitive on Z, R is an equivalence relation.
Te equivalence classes of aRb iff 4|(3a+b) are [0],[1],[2] and [3].
Let a∈Z, then [a]={a∈Z:x∼a}.
[0]={x∈Z:x∼0}
={x∈Z:4|(3x+(0))}
={x∈Z:4|3x}
={x∈Z:3x=4m,m∈Z}
={…,−8,−4,0,4,8,…}.
[1]={x∈Z:x∼1}
={x∈Z:4|(3x+(1))}
={x∈Z:4|(3x+1)}
={x∈Z:3x+1=4m,m∈Z}
={x∈Z:3x=4m−1,m∈Z}
={…,−7,−3,1,5,9,…}.
[2]={x∈Z:x∼2}
={x∈Z:4|(3x+2)}
={x∈Z:3x+2=4m,m∈Z}
={x∈Z:3x=4m−2,m∈Z}
={…,−6,−2,2,6,10,…}.
[3]={x∈Z:x∼3}
={x∈Z:4|(3x+3)}
={x∈Z:3x+3=4m,m∈Z}
={x∈Z:3x=4m−3,m∈Z}
={…,−5,−1,3,7,11,…}.
Define a relation R on A=N by aRb if and only if 2∣a2+b, for a,b∈N.
- Answer
-
Proof of Reflexivity:
Let a∈N.
We shall show that a2+a=2m,m∈Z.
We can show this directly or using cases:
Directly:
Since
, and
are consecutive integers,
is even. Thus R is reflexive on N.
Proof of Symmetry:
Let a,b∈N such that aRb.
That means a2+b=2m,m∈Z.
We will show that b2+a=2k,k∈Z.
Since
,
.
Thus
.
Since a(a+1) is even,
is even.
Thus R is symmetric on N.
Antisymmetry:Caution: 0∉N.
Let a=1,b=3.
12+3=2(2), and 32+1=2(5)
But 1≠3, hence, R is \textbf{not} antisymmetric on N.
Proof of Transitivity:
Leta,b,c∈N such that 2|a2+b and2|b2+c.
We will show that 2|a2+c.
Consider a2+b=2m,m∈Z and b2+c=2n,n∈Z.
Further, consider that a2+c=2m−b+2n−b2=2(m+n)−(b2+b).
Since R is reflexive on N, b2+b=2q,q∈Z
Thus a2+c=2(m+n−q),m,n,q∈Z.
Thus R is transitive on N.
Having shown that R is reflexive, symmetric and transitive on Z,R is an equivalence relation on Z.◻
Let a∈Z, then [a]={x∈Z:x∼a}. Caution: 0∉N.
a=1:
[1]={x∈Z:x∼1}
={x∈Z:2|(x2+1)}
={x∈Z:x2+1=2m,m∈Z}
={±1,±3,⋯}.
a=2:
[2]={x∈Z:x∼2}
={x∈Z:2|(x2+2)}
={x∈Z:x2+2=2m,m∈Z}
={0,±2,±4,⋯}.
Let A=R×R. Define (x,y)R(x1,y1) if and only if x2+y2=x21+y21, for (x,y),(x1,y1)∈R×R.
- Answer
-
Reflexive
Proof:
Let (a,b)∈R×R.
Since a2+b2=a2+b2, (a,b)R(a,b)
Thus R is reflexive.
Symmetric:
Proof:
Let (a,b),(a1,b1)∈R×R, s.t (a,b)R(a1,b1)
Thus a2+b2=a21+b21
We shall show bRa.
Since a2+b2=a21+b21, a21+b21=a2+b2
Thus (a1,b1)R(a,b), and R is symmetric.
antisymmetric:
Counterexample
let a=1,b=2,a1=2,b1=1
then (1)+(2)2=5=22+12
Thus (a,b)R(a1,b1) and (a1,b1)R(a,b)
But (1,2)≠(2,1)
Thus R is not anti-symmetric
Transitive:
Proof:
Let (a,c),(a1,c1),(a2,c2)∈R×R such that (a,c)R(a1,c1) and (a1,c1)R(a2,c2).
Since (a,c)R(a1,c1), a2+b2=a21+b21.
Since (a1,c1)R(a2,c2), b2+c2=b21+c21
Thus, a2+c2=a21+c21
Hence (a,c)R(a2,c2) and R is transitive.
Since R is reflexive, symmetric and transitive, R is an equivalence relation on A.
The equivalence classes are
[(0,0)]={(x1,y1)∈R×R∣x21+y21=0}{0}
[(x,y)]={(x1,y1)∈R×R∣r2=x21+y21=x2+y2}
Consider the function f:Z→Z define by f(n)=n2+1.
Determine whether f is one-to-one and whether f is onto. If f is not onto, find the range of f.
- Answer
-
No, f is not injective.
Counterexample:
Let x1=−2 and x2=2.
Then f(−2)=(−2)2+4=8 andf(2)=(2)2+4=8.
Thus f(−2)=f(2) but−2≠2 .
Therefore h is not injective.◻
No,h is not surjective.
Counterexample:
LetA=Z andB=Z s.t.h:A→B is defined byf(x)=x2+1 .
Note that3∈B .
Thus3=x2+1⟹x=±√2∉A.
Thus, f is not surjective. Range of f={x2+1∣x∈Z}={1,2,5,10,17,26⋯}.
Suppose f:B→C and g:A→B are functions.
Prove or disprove the following statements:
- If f∘g is onto then g is onto.
- If f∘g is onto and f is one-to-one, then g is onto.