COMP2012 Discrete Mathematics Lab 3(week 4) Exercises Model Answers Q1) Proof: For an arbitrary π₯, by definition, π₯ ∈ (π΄ ∪ π΅)′ ↔ π₯ ∉ (π΄ ∪ π΅) ↔ π₯ ∉ π΄ and π₯ ∉ π΅ ↔ π₯ ∈ π΄′ and π₯ ∈ π΅′ ↔ π₯ ∈ π΄′ ∩ π΅′ Q2) i) [3 4 13 ] β [ 2 8 6 9 7 7 4 4 0 15 6] 3 = [3 × 13 + 4 × 8 + 2 × 6 3 × 9 + 4 × 7 + 2 × 4 3 × 7 + 4 × 4 + 2 × 0 3 × 15 + 4 × 6 + 2 × 3] = [39 + 32 + 12 = [83 63 ii) 37 27 + 28 + 8 21 + 16 + 0 45 + 24 + 6] 75] Calculate (π΄ + π΅) β πΆ and π΄ β πΆ + π΅ β πΆ, where π΄ = [ πΆ=[ 2 1 3 1 ], π΅ = [ ] and 3 2 0 1 1 4 ] 3 2 (π΄ + π΅) β πΆ = ([2 1] + [3 3 2 0 2 1 1 π΄βπΆ+π΅βπΆ =[ ]β[ 3 2 3 11 24 =[ ] 12 18 1 1 ]) β [ 1 3 4 3 ]+[ 2 0 4 5 2 1 ]=[ ]β[ 2 3 3 3 1 1 4 5 ]β[ ]=[ 1 3 2 9 4 11 24 ]=[ ] 2 12 18 6 14 10 ]+[ ] 3 2 16 iii) Let π΄ = [πππ ], π΅ = [πππ ] and πΆ = [πππ ] be real-valued matrices of dimension π × π, π × π and π × π. Prove the distributive property for matrix addition over multiplication: (π΄ + π΅) β πΆ = π΄ β πΆ + π΅ β πΆ Proof: Since the dimensions of π΄, π΅ and πΆ are π × π, π × π and π × π respectively, both (π΄ + π΅) β πΆ and π΄ β πΆ + π΅ β πΆ are of the dimension π × π. Let π· = [πππ ] = (π΄ + π΅) β πΆ and πΈ = [πππ ] = π΄ β πΆ + π΅ β πΆ be two matrices with dimension π × π. For the (π, π) element in π· = [πππ ] = (π΄ + π΅) β πΆ, πππ = ∑ ( πππ + πππ ) β πππ = ∑ πππ β πππ + ∑ πππ β πππ = πππ π=1,…,π π=1,…,π π=1,…,π Each element in π· and πΈ is identical, and dim(π·) = dim(πΈ). So π· = πΈ, and (π΄ + π΅) β πΆ = π΄ β πΆ + π΅ β πΆ Q3) Proof: Let π₯, π¦, π§ ∈ β If (π₯, π¦) ∈ π π·πΌπ ∧ (y, z) ∈ π π·πΌπ , by definition of π π·πΌπ , there exists integers π and π such that π₯ = ππ¦ and π¦ = ππ§ So π₯ = ππ¦ = π(ππ§) = (π β π)π§, where π β π is also an integer, i.e. π₯ is divisible by π§. Thus (x, z) ∈ π π·πΌπ , and π π·πΌπ is transitive. Q4) Is the relation ∈ between sets: i) Reflexive? ii) Symmetric? iii) Transitive? If so, prove the corresponding property. If not, give a counterexample. i) No. ∅ ∉ ∅. The empty set does not contain any element, and it cannot be an element of itself either. (Note that ∅ ∉ ∅ but ∅ ⊆ ∅.) So ∈ is not reflexive. ii) No. ∅ ∈ {∅} but {∅} ∉ ∅. {∅} denotes the set of empty set, i.e. a set which has empty set as its only element. So there is ∅ ∈ {∅}. The empty set does not have any element, so the set of empty set cannot be an element of the empty set, i.e. {∅} ∉ ∅. So ∈ is not symmetric. iii) No. ∅ ∈ {∅} and {∅} ∈ {{∅}}, but ∅ ∉ {{∅}}. ∅ is the only element in {∅} , and {∅} is the only element in {{∅}}. Hence there is ∅ ∈ {∅} and {∅} ∈ {{∅}}. ∅ is not an element of {{∅}}. So ∈ is not transitive.