How do I calculate the number of elements in set Z using set theory?

  • Context: Undergrad 
  • Thread starter Thread starter courtrigrad
  • Start date Start date
  • Tags Tags
    Set Set theory Theory
Click For Summary
SUMMARY

The calculation of the number of elements in set Z, which consists of all elements in either set X or set Y excluding k common elements, is defined by the formula Z = x + y - 2k. This formula arises from the principle of set theory where the symmetric difference of sets X and Y is represented as X sym diff Y = (X \ Y) ∪ (Y \ X). The cardinality of the left-hand side equals the sum of the cardinalities on the right-hand side, leading to the conclusion that Z contains (x - k) + (y - k) elements.

PREREQUISITES
  • Understanding of basic set theory concepts
  • Familiarity with set operations such as union and symmetric difference
  • Knowledge of cardinality in the context of sets
  • Ability to manipulate algebraic expressions
NEXT STEPS
  • Study the properties of symmetric difference in set theory
  • Learn about cardinality and its applications in combinatorics
  • Explore proofs in set theory to strengthen logical reasoning skills
  • Investigate practical applications of set operations in programming languages
USEFUL FOR

Students of mathematics, educators teaching set theory, and anyone interested in the logical foundations of combinatorial mathematics.

courtrigrad
Messages
1,236
Reaction score
2
Hello all

Set X has x elements and Sset Y has y elements and Set Z consists of all elements are are in either set X or set Y with the exception of the k common elements. I know that the answer is

x+ y - 2k, however how would I get this? Should I just use a practical example?
 
Last edited:
Physics news on Phys.org
No, proof by example isn't a proof.

X sym diff Y = (X \ Y)u(Y\X)

the union is of disjoint sets so the card of the lhs is the sum of the cards on the rhs. now just find card (X\Y) hint X\Y = X\(XnY)
 
You are told that there are k elements in both X and Y. That means there are x-k elements in x that are NOT in y and y- k elements that are in Y but NOT in X. Z will contain (x- k)+ (y- k)= x+ y- 2k elements.
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
5K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 27 ·
Replies
27
Views
4K