ArticleslgStudy

science

Symmetric difference

Symmetric difference is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Symmetric difference rather than just read about it. In short: In mathematics, the symmetric difference of two sets, also known as the disjunctive union and set sum, is the set of elements which are in either of the sets, but not in their intersection. For example, the symmetric difference of the sets {1,2,3} and {3,4} is {1,2,4}.

Symmetric difference — main illustration
Symmetric difference — illustration

Key takeaways

  • Symmetric difference belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Symmetric difference to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Symmetric difference from memory before moving on to harder problems.

Reference excerpt

In mathematics, the symmetric difference of two sets, also known as the disjunctive union and set sum, is the set of elements which are in either of the sets, but not in their intersection. For example, the symmetric difference of the sets {1,2,3} and {3,4} is {1,2,4}. The symmetric difference of the sets A and B is commonly denoted by AΔ⁡B (alternatively, A△⁡B), A⊕B, or A⊖B. It can be viewed as a form of addition modulo 2. The power set of any set becomes an abelian group under the operation of symmetric difference, with the empty set as the neutral element of the group and every element in this group being its own inverse. The power set of any set becomes a Boolean ring, with symmetric difference as the addition of the ring and intersection as the multiplication of the ring.

Properties

The symmetric difference is equivalent to the union of both relative complements, that is:

AΔB=(A∖B)∪(B∖A), The symmetric difference can also be expressed using the XOR operation ⊕ on the predicates describing the two sets in set-builder notation:

AΔB={x:(x∈A)⊕(x∈B)}. The same fact can be stated as the indicator function (denoted here by χ) of the symmetric difference, being the XOR (or addition mod 2) of the indicator functions of its two arguments: χ(AΔB)=χA⊕χB or using the Iverson bracket notation [x∈AΔB]=[x∈A]⊕[x∈B]. The symmetric difference can also be expressed as the union of the two sets, minus their intersection:

AΔB=(A∪B)∖(A∩B), In particular, AΔB⊆A∪B; the equality in this non-strict inclusion occurs if and only if A and B are disjoint sets. Furthermore, denoting D=AΔB and I=A∩B, then D and I are always disjoint, so D and I partition A∪B. Consequently, assuming intersection and symmetric difference as primitive operations, the union of two sets can be well defined in terms of symmetric difference by the right-hand side of the equality

A∪B=(AΔB)Δ(A∩B). The symmetric difference is commutative and associative:

AΔB=BΔA,(AΔB)ΔC=AΔ(BΔC). The empty set is neutral, and every set is its own inverse:

AΔ∅=A,AΔA=∅. Thus, the power set of any set X becomes an abelian group under the symmetric difference operation. (More generally, any field of sets forms a group with the symmetric difference as operation.) A group in which every element is its own inverse (or, equivalently, in which every element has order 2) is sometimes called a Boolean group; the symmetric difference provides a prototypical example of such groups. Sometimes the Boolean group is actually defined as the symmetric difference operation on a set. In the case where X has only two elements, the group thus obtained is the Klein four-group. Equivalently, a Boolean group is an elementary abelian 2-group. Consequently, the group induced by the symmetric difference is in fact a vector space over the field with 2 elements Z2. If X is finite, then the singletons form a basis of this vector space, and its dimension is therefore equal to the number of elements of X. This construction is used in graph theory, to define the cycle space of a graph. From the property of the inverses in a Boolean group, it follows that the symmetric difference of two repeated symmetric differences is equivalent to the repeated symmetric difference of the join of the two multisets, where for each double set both can be removed. In particular:

(AΔB)Δ(BΔC)=AΔC. This implies triangle inequality: the symmetric difference of A and C is contained in the union of the symmetric difference of A and B and that of B and C. Intersection distributes over symmetric difference:

A∩(BΔC)=(A∩B)Δ(A∩C), and this shows that the power set of X becomes a ring, with symmetric difference as addition and intersection as multiplication. This is the prototypical example of a Boolean ring. Further properties of the symmetric difference include:

AΔB=∅︀ if and only if A=B. AΔB=AcΔBc, where Ac, Bc is A's complement, B's complement, respectively, relative to any (fixed) set that contains both. (⋃α∈ℐAα)Δ(⋃α∈ℐBα)⊆⋃α∈ℐ(AαΔBα), where ℐ is an arbitrary non-empty index set. If f:S→T is any function and A,B⊆T are any sets in f's codomain, then f−1(AΔB)=f−1(A)Δf−1(B). The symmetric difference can be defined in any Boolean algebra, by writing

xΔy=(x∨y)∧¬(x∧y)=(x∧¬y)∨(y∧¬x)=x⊕y. This operation has the same properties as the symmetric difference of sets.

n-ary symmetric difference Repeated symmetric difference is in a sense equivalent to an operation on a multitude of sets (possibly with multiple appearances of the same set) giving the set of elements which are in an odd number of sets. The symmetric difference of a collection of sets contains just elements which are in an odd number of the sets in the collection: ΔM={a∈⋃M:|{A∈M:a∈A}| is odd}. Evidently, this is well-defined only when each element of the union ⋃M is contributed by a finite number of elements of M. Suppose M={M1,M2,…,Mn} is a multiset and n≥2. Then there is a formula for |ΔM|, the number of elements in ΔM, given solely in terms of intersections of elements of M: |ΔM|=∑l=1n(−2)l−1∑1≤i1<i2<…<il≤n|Mi1∩Mi2∩…∩Mil|.

Symmetric difference on measure spaces As long as there is a notion of "how big" a set is, the symmetric difference between two sets can be considered a measure of how "far apart" they are. First consider a finite set S and the counting measure on subsets given by their size. Now consider two subsets of S and set their distance apart as the size of their symmetric difference. This distance is in fact a metric, which makes the power set on S a metric space. If S has n elements, then the distance from the empty set to S is n, and this is the maximum distance for any pair of subsets. Using the ideas of measure theory, the separation of measurable sets can be defined to be the measure of their symmetric difference. If μ is a σ-finite measure defined on a σ-algebra Σ, the function

dμ(X,Y)=μ(XΔY) is a pseudometric on Σ. dμ becomes a metric if Σ is considered modulo the equivalence relation X ~ Y if and only if μ(XΔY)=0. It is sometimes called Fréchet-Nikodym metric. The resulting metric space is separable if and only if L2(μ) is separable. If μ(X),μ(Y)<∞, we have: |μ(X)−μ(Y)|≤μ(XΔY). Indeed,

… excerpt ends here. Continue reading the full article.

Illustrations

Symmetric difference illustration
Symmetric difference: Venn diagram of  (AΔB)ΔC

  Δ    =
Venn diagram of  (AΔB)ΔC  Δ   =
Symmetric difference illustration

Worked examples

Example 1 — a first encounter with Symmetric difference

Start with the simplest possible case. Write down what Symmetric difference claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Symmetric difference before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Symmetric difference ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Symmetric difference

In research
Symmetric difference appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Symmetric difference in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Symmetric difference is common in secondary-school and first-year university syllabi. It links to neighbouring topics Basic concepts in set theory, Operations on sets, Subtraction, so understanding it makes those chapters shorter.
In everyday life
Look for Symmetric difference outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Symmetric difference” →

How to study Symmetric difference in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Symmetric difference means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Symmetric difference out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Symmetric difference in simple terms?

In mathematics, the symmetric difference of two sets, also known as the disjunctive union and set sum, is the set of elements which are in either of the sets, but not in their intersection. For example, the symmetric difference of the sets {1,2,3} and {3,4} is {1,2,4}.

Why does Symmetric difference matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Symmetric difference?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Symmetric difference.

Tags

  • Basic concepts in set theory
  • Operations on sets
  • Subtraction

Keep exploring