Skip to document

Math127121 assignment 5solutions

Course

Discrete Mathematics  (Mathematics 1271)

23 Documents
Students shared 23 documents in this course
Academic year: 2021/2022
Uploaded by:
Anonymous Student
This document has been uploaded by a student, just like you, who decided to remain anonymous.
Lakehead University

Comments

Please sign in or register to post comments.

Preview text

Math 1271 Assignment 5 Solutions

  1. LetSbe the relation{(a, b)(b, b),(d, c),(a, d)}.Find the converse (inverse) ofS.

Solution:The converse ofSis{(x, y)|(y, x)∈S}={(b, a),(b, b),(c, d),(d, a)}.

  1. For each of the following relations onZ,determine which of the properties reflexive, symmetric, transitive, and anti-symmetric it has. R={(x, y)∈Z|x≤y 2 } S={(x, y)∈Z|x−yis divisible by 3} T={(x, y)∈Z|y≤x− 1 }

Solution:For anyx∈Z,we havex≤x 2 ,soxRx reflexive. For any x∈Z, x−x= 0,which is divisible by 3,soxSx reflexive. For nox∈Z is it the case thatx≤x− 1 ,soxTxnever holds, andTis not reflexive. We have 1 ≤(2) 2 but 26≤(1) 2 ,soRis not symmetric. Ifx−yis divisible by 3, then so is −(x−y) =y−x,soxSyimpliesySx symmetric. We have 1≤ 2 − 1 ,but 2 6≤ 1 − 1 ,soTis not symmetric. We have− 1 ≤1 = (1) 2 = (−1) 2 ,so (−1)R(1) and (1)R(−1),but− 16 = 1,soRis not antisymmetric. We have that 6−3 = 3 and 3 −6 =−3 are both divisible by 3,but 6 6 = 3,soSis not antisymmetric. It is never the case thaty≤x−1 andx≤y−1 both hold, soTis vacuously antisymmetric. Letx= 2, y=− 3 ,andz= 1 2≤ 9 ,soxRy;− 3 ≤ 1 ,soyRz; but 26≤ 1 ,so it is not the case thatxRz not transitive. Ifx−y= 3mandy−z= 3n, thenx−z=x−y+y−z= 3(n+m),soxSyandySztogether implyxSz Sis transitive. ify≤(x−1) andz≤(y−1),thenz≤x− 2 ≤x− 1 ,soxTyand yTztogether implyxTz transitive.

  1. Define a relationSonRby (x, y)∈Sif, and only if, (x+ 1) 2 = (y+ 1) 2. IsS an equivalence relation? Justify your answer.

Solution:Since (x+ 1) 2 = (x+ 1) 2 for any real number, we see thatxSxalways holds, soS is reflexive. If (x+ 1) 2 = (y+ 1) 2 ,then (y+ 1) 2 = (x+ 1) 2 ,so Sis symmetric. Finally, if (x+ 1) 2 = (y+ 1) 2 and (y+ 1) 2 = (z+ 1) 2 ,then (x+1) 2 = (z+1) 2 ,soSis transitive. SinceSis reflexive, symmetric, and transitive, it is an equivalence relation. (cf. question 6 below)

  1. LetXbe a set with more than two elements. Define a relationRonP(X),the power set ofX,by (A, B)∈Rif and only ifB⊆A thatRis a partial order onP(X).Is it a well ordering? Is it a total ordering?

Solution:For any setA, A⊆A,soARA reflexive. IfARBandBRA, thenA⊆BandB⊆A,soA=B antisymmetric. IfA, B,andCare three sets, andARBandBRC,thenB⊆AandC⊆B,soC⊆AandARC Ris transitive. SinceRis reflexive, antisymmetric, and transitive,Ris a partial order. Ifa, b∈Xanda 6 =b,then{a}and{b}are not comparable in the partial orderR not a total order. Since all well orders are total orders,Ris not a well order relation either. (Notice that{{a},{b}}has no least element underR.)

1

2

  1. For each of the following sets, explain why it is, or is not, a functionfromRto R. A={(x, y)∈R 2 |y 3 =x 2 } B={(x, y)∈R 2 | 16 x 2 + 9y 2 = 25} C={(x, y)∈R 2 |siny= sinx}

Solution:Since every real number has a unique cube root, we haveA={(x, y)∈ R 2 |y=x 2 / 3 }andAis a function fromRtoR(for everya∈R,there exists a uniqueb∈Rsuch that (a, b)∈A). We have both (0, 5 /3)∈Band (0,− 5 /3)∈B, soBis not a function (fails vertical line test). We have (0,0)∈Cand (0, π)∈C, soCis not a function either (fails vertical line test).

  1. Letf:A→Bbe a function, and define a relationRonAby (x, y)∈Rif and only iff(x) =f(y).Show thatRis an equivalence relation.

Solution:Sincef(x) =f(x) for anyx∈A,we havexRxfor anyx∈A,soR is reflexive. Iff(x) =f(y),thenf(y) =f(x),soxRyimpliesyRx symmetric. Iff(x) =f(y) andf(y) =f(z),thenf(x) =f(z).ThusxRyand yRztogether implyxRz,soRis transitive. SinceRis reflexive, symmetric, and transitive, it is an equivalence relation.

  1. Letf :A→Rbe a function, and define a relationSonAby (x, y)∈Sif and only iff(x)< f(y).IsSnecessarily reflexive? transitive? anti-symmetric? a partial order? Justify your answers.

Solution:Since it is never the case thatf(x)< f(x),we never havexSx,soS is not reflexive. It follows thatSis not a partial order. Since it is never the case thatf(x)< f(y) andf(y)< f(x),it follows thatSis vacuously antisymmetric. If f(x)< f(y) andf(y)< f(z),thenf(x)< f(z),soxSyandySztogether imply xSz,andSis transitive.

  1. Definef:R→Randg:R→Rbyf(x) =x 2 + 5 andg(x) = (x+ 3) 2 .Find f◦gandg◦f.

Solution:We have (f◦g)(x) =f(g(x)) =f((x+3) 2 ) = ((x+3) 2 ) 2 +5 = (x+3) 4 +5, and (g◦f)(x) =g(f(x)) =g(x 2 + 5) = (x 2 + 5 + 3) 2 = (x 2 + 8) 2.

  1. For each of the following functions fromRtoR,determine whether it is injective (one to one) and whether it is surjective (onto): f(x) =x+ 2, g(x) = sinx, h(x) =ex,andt(x) =x 3 +x.

Solution:Iff(x) =f(y),thenx+ 2 =y+ 2,sox=y injective. If z∈R,thenz=f(z−2),sofis surjective. We have sin(0) = sin(π),but 0 6 =π, sogis not injective. Since there does not exist anx∈Rwith sin(x) = 2, gis not surjective either. Ifex=ey,thenx=y,soh(x) =exis injective. Sinceex> 0 for allx∈R,there does not exist anx∈Rwithex=− 1 ,sohis not surjective. We havet′(x) = 3x 2 + 1> 0 ,sotis a strictly increasing function, i. x > y impliest(x)> t(y).It follows thattis injective. We have limx→∞t(x) =∞and limx→−∞t(x) =−∞.Sincetis continuous, it follows from the intermediate value theorem thattis surjective.

Was this document helpful?

Math127121 assignment 5solutions

Course: Discrete Mathematics  (Mathematics 1271)

23 Documents
Students shared 23 documents in this course
Was this document helpful?
Math 1271 Assignment 5
Solutions
1. Let Sbe the relation {(a, b)(b, b),(d, c),(a, d)}.Find the converse (inverse) of S.
Solution: The converse of Sis {(x, y)|(y, x)S}={(b, a),(b, b),(c, d),(d, a)}.
2. For each of the following relations on Z,determine which of the properties
reflexive, symmetric, transitive, and anti-symmetric it has.
R={(x, y)Z|xy2}
S={(x, y)Z|xyis divisible by 3}
T={(x, y)Z|yx1}
Solution: For any xZ,we have xx2,so xRx. Thus Ris reflexive. For any
xZ, x x= 0,which is divisible by 3,so xSx. Thus Sis reflexive. For no xZ
is it the case that xx1,so xT x never holds, and Tis not reflexive. We have
1(2)2but 2 6≤ (1)2,so Ris not symmetric. If xyis divisible by 3, then so is
(xy) = yx, so xSy implies ySx. Thus Sis symmetric. We have 1 21,but
26≤ 11,so Tis not symmetric. We have 11 = (1)2= (1)2,so (1)R(1)
and (1)R(1),but 16= 1,so Ris not antisymmetric. We have that 6 3 = 3 and
36 = 3 are both divisible by 3,but 6 6= 3,so Sis not antisymmetric. It is never
the case that yx1 and xy1 both hold, so Tis vacuously antisymmetric.
Let x= 2, y =3,and z= 1.Then 2 9,so xRy;31,so yRz; but 2 6≤ 1,so
it is not the case that xRz. Thus Ris not transitive. If xy= 3mand yz= 3n,
then xz=xy+yz= 3(n+m),so xSy and ySz together imply xSz. Thus
Sis transitive. if y(x1) and z(y1),then zx2x1,so xT y and
yT z together imply xT z. Thus Tis transitive.
3. Define a relation Son Rby (x, y)Sif, and only if, (x+ 1)2= (y+ 1)2. Is S
an equivalence relation? Justify your answer.
Solution: Since (x+ 1)2= (x+ 1)2for any real number, we see that xSx always
holds, so Sis reflexive. If (x+ 1)2= (y+ 1)2,then (y+ 1)2= (x+ 1)2,so
Sis symmetric. Finally, if (x+ 1)2= (y+ 1)2and (y+ 1)2= (z+ 1)2,then
(x+1)2= (z+1)2,so Sis transitive. Since Sis reflexive, symmetric, and transitive,
it is an equivalence relation. (cf. question 6 below)
4. Let Xbe a set with more than two elements. Define a relation Ron P(X),the
power set of X, by (A, B)Rif and only if BA. Show that Ris a partial order
on P(X).Is it a well ordering? Is it a total ordering?
Solution: For any set A, A A, so ARA. Thus Ris reflexive. If ARB and BRA,
then ABand BA, so A=B. Thus Ris antisymmetric. If A, B, and Care
three sets, and ARB and BRC, then BAand CB, so CAand ARC. Thus
Ris transitive. Since Ris reflexive, antisymmetric, and transitive, Ris a partial
order. If a, b Xand a6=b, then {a}and {b}are not comparable in the partial
order R. Thus Ris not a total order. Since all well orders are total orders, Ris not
a well order relation either. (Notice that {{a},{b}} has no least element under R.)
1