Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Number System and Arithmetic
  • Algebra
  • Set Theory
  • Probability
  • Statistics
  • Geometry
  • Calculus
  • Logarithms
  • Mensuration
  • Matrices
  • Trigonometry
  • Mathematics
Open In App
Next Article:
Set Notation
Next article icon

Set Notation

Last Updated : 27 Jun, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Set notation refers to the various symbols used in the representation and operation of sets. It is a fundamental concept in mathematics, offering a structured and concise way to represent collections of objects, numbers, or elements. Set notation is used to define and operate on sets, including symbols like curly brackets, commas, colons, unions, intersections, set differences, and more.

set_theory_notation


Key elements of set notation:

  • Curly Braces {}: Used to enclose the elements of sets.
  • Elements: The individual objects or numbers within a set.
  • Commas: Separate the elements within a set.
  • Capital Letter: Typically used to name sets

Set Notation for Set Representation

This table represents a set using set notation, showing its elements and operations:

Set Notation for Set Representation

Symbol

Description

Curly Brackets

{}

The curly brackets are used to represent a set. An example includes set A = {1, 2, 3}.

Comma

,

The comma is used to separate the elements of the sets.

Colon

:

It is used in the set-builder representation of a set. For example, S = {x: x is an even number}

Element of

∈

It represents that an element belongs to the set. A = {1, 2} then 1∈ A.

Not an Element of

∉

It represents that an element does not belong to a set. A = {2} then 1 ∉ A.

Universal Set

U

It represents the universal set of a set

Empty set

Φ

It represents the empty set.

Proper Subset

⊂

A set B is a proper subset of A if all elements of B are in A and A ≠ B.

Subset

⊆

A set B is a subset of A if all elements of B are in A.

Union

∪

The union of two sets includes all elements present in both sets. Example: A ∪ B = {x: x ∈ A or x ∈ B}.

Intersection

∩

The intersection of two sets includes only the common elements between the two sets. Example: A ∩ B = {x: x ∈ A and x ∈ B}.

Set Difference

-

The set difference includes the elements of the first set that are not present in the second set. Example: A - B = {x: x ∈ A and x ∉ B}.

Symmetric Difference

Δ

The symmetric difference includes elements that are in either of the sets but not in both. Example: A Δ B = (A - B) ∪ (B - A).

Complement of set A

A'

The complement of set A includes all elements of the universal set that are not in A. Example: A' = {x: x ∉ A}.

Set Notation for Set Operations

Different set notations for set operations include union, intersection, subset, difference, symmetric difference, operation, and complement of sets.

Union

Union (U) is represented by ∪ set notation. Union is a binary operation on two sets that includes all the elements of both sets. It is mathematically represented as for two sets A and B, A ∪ B = {x: x∈A or x∈B}.

Example: Find the union of set X = {2, 3, 4} and Y = {4, 5, 6}.

Solution:

X = {2, 3, 4}

Y = {4, 5, 6}

X ∪ Y = {2, 3, 4, 5, 6}

Intersection

Intersection (∩) is represented by ∩ set notation. Intersection is a binary operation on two sets that includes the common elements of both sets. It is mathematically represented as for two sets A and B, A ∩ B = {x: x∈A and x∈B}.

Example: Find the intersection f set X = {2, 3, 4} and Y = {4, 5, 6}.

Solution:

X = {2, 3, 4}

Y = {4, 5, 6}

X ∩ Y = {4}

Difference

Difference ( \ ) is represented by \, - set notation. Difference is a binary operation on two sets that includes elements of the first set that are not present in the second set. It is mathematically represented as for two sets A and B, A - B = {x: x∈A and x∉B}.

Example: Find the difference of set X = {2, 3, 4} and Y = {4, 5, 6}.

Solution:

X = {2, 3, 4}

Y = {4, 5, 6}

X - Y = {2, 3}

Subset

The subset of a set is represented by the ⊆ set notation. The set B is called a subset of A if all the elements of set B are present in set A. It is mathematically represented as for two sets A and B, B ⊆ A = {x: x∈A ∀ , x∈B}.

Example: Find whether X is a subset of Y or not, where set X = {2, 3, 4} and Y = {2, 3, 4, 5, 6}.

Solution:

X = {2, 3, 4}

Y = {2, 3, 4, 5, 6}

Since Y includes all the elements of X

Therefore, X ⊆ Y

Complement

(A’) of a set is represented by (Set)c in set notation. The complement of a set includes the elements of the universal set that are not present in the given set. It is mathematically represented as for a set A, Ac = {x: x∉A}.

Example: Find the complement of set X = {2, 3, 4} and U = {2, 3, 4, 5, 6}.

Solution:

X = {2, 3, 4}

Xc = {5, 6}

Set Notation
Set Notation

Benefits of Using Set Notation

Set notation offers several benefits that make it an essential tool in mathematics and related fields. Here are some of the key benefits:

  • Clear and Precise: Makes mathematical ideas easy to understand and avoids confusion.
  • Simplifies Complex Ideas: Breaks down complex concepts into simpler forms.
  • Easy Operations: Helps with set operations like union and intersection, making problem-solving easier.
  • Base for Advanced Topics: Key to learning advanced subjects like probability and calculus.
  • Improves Logical Thinking: Builds problem-solving skills and logical reasoning.
  • Used Everywhere: Applied in fields like computer science, economics, and engineering.
  • Standardized: Provides a common way to discuss ideas, helping people collaborate.
  • Makes Proofs Easier: Makes mathematical proofs clearer and more organized.

Solved Question on Set Notation

Example 1: Find the intersection for set P = {1, 3, 5} and Q = {2, 5, 8}.

Solution:

P = {1, 3, 5}

Q = {2, 5, 8}

P ∩ Q = {5}

Example 2: Find the union of set P = {5, 10} and Q = {12, 15, 18}.

Solution:

P = {5, 10}

Q = {12, 15, 18}

P ∪ Q = {5, 10, 12, 15, 18}

Example 3: Find the difference of set P = {1, 3, 5} and Q = {2, 5, 8}.

Solution:

P = {1, 3, 5}

Q = {2, 5, 8}

P - Q = {1, 3}

Example 4: Find the complement of set X = {a, b, d} and U = {a, b, c, d, e}.

Solution:

X = {a, b, d}

Xc = {c, e}

Example 5: Find whether P is a subset of Q or notA-B, where set P = {2, 4} and Q = {4, 5, 6}.

Solution:

P = {2, 4}

Q = {4, 5, 6}

Since Q does not includes all the elements of P (element 2)

Therefore, P is not a subset of Q.

Practice Questions on Set Notation

Question 1: Find the union of two sets A ={6, 4} and B = {3, 10}.

Question 2:Find the intersection of two sets A = {5, 13} and B = {3, 13}.

Question 3: Find the set difference A - B wherea A = {12, 14, 16} and B = {8, 10, 13}.

Question 4: Find whether B is a subset of A or not, where A = {a, b, c} and B = {a, b}

Question 5:Find the complement of set A, given A = {2, 4} and U = {1, 2, 3, 4, 5}.

Answer:-

1. A∪B={3, 4, 6, 10}.
2. A∩B={13}.
3. A-B {12, 14, 16}.
4. B ⊆ A because all elements of B are in A.
5. A' = {1, 3, 5}.


Next Article
Set Notation

A

aayushi2402
Improve
Article Tags :
  • Mathematics
  • School Learning
  • Algebra

Similar Reads

    Objections to Advertising
    Any paid form of non-personal presentation and promotion of goods and services by an identified sponsor is known as Advertising. It is one of the most popular tools of promotion. The main aim of advertising is to increase the demand and sale of goods and services. Newspapers, televisions, magazines,
    4 min read
    Semantic-UI Advertisement Mobile Type
    Semantic UI open-source framework gives icons or glyphs that are used to show pictures related to some elements using CSS and jQuery that is used to create great user interfaces. It is a development framework used to create beautiful and responsive layouts. Semantic UI Advertisement helps to make co
    2 min read
    12 Useful ChatGPT Prompts for Marketing
    Looking for the best ChatGPT prompts to boost creativity, and productivity, or just have fun? You’re in the right place! Whether you want to spark insightful conversations, brainstorm creative ideas, or learn something new, the right prompts can take your ChatGPT experience to the next level. In thi
    8 min read
    10 Best Digital Marketing Project Ideas 2025
    The marketing sphere is marked by swift progress in technology and evolving consumer preferences. Notable developments encompass the use of intelligence to tailor customer interactions, optimizing voice search with the growing popularity of smart speakers and the prevalence of content on platforms s
    8 min read
    15 Best ChatGPT Prompts for Digital Marketing in 2024
    In the contemporary digital era, the application of Artificial Intelligence (AI) has reached unprecedented heights. It has become an integral part of virtually all computer-related tasks. While some individuals express ethical concerns about the use of AI tools such as ChatGPT, it’s undeniable that
    13 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences