# Connexions

You are here: Home » Content » Functions » Sets

### Lenses

What is a lens?

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

#### In these lenses

• MathML

This module is included inLens: MathML Lens
By: Bob Mathews

Click the "MathML" link to see all content selected in this lens.

Click the tag icon to display tags associated with this content.

### Recently Viewed

This feature requires Javascript to be enabled.

### Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Inside Collection:

Collection by: Sunil Kumar Singh. E-mail the author

# Sets

Module by: Sunil Kumar Singh. E-mail the author

Set theory is about studying collection of objects. The collection may comprise anything or any abstraction. It can be purely abstract thing like numbers or abstraction of real thing like students studying in class XI in a school. The members of collection can be numbers, letters, titles of books, people, teachers, provinces – virtually anything - even other collections. Further, it need not be finite. For example, a set of integers has infinite members. For a set, only requirement is that the members of a collection are properly defined.

Definition 1: Set
A set is a collection of well defined objects.

In other words, the member of set is clearly identifiable. The terms “object”, “member” or “element” mean same thing and are used interchangeably.

## How to represent a set?

A set is denoted by capital letters like “A”, “B”, “C” etc. In choosing a symbol for a set, it is generally convenient to use a capital letter that identifies with the set. For example, it is appropriate to use symbol “V” to represent collection of vowels in English alphabet.

On the other hand, the members or elements of a set are denoted by small letters like “a”,”b”,”c” etc.

Membership of a set is denoted by the symbol “ ” . Its literal meaning is “belongs to”. If an object does not belong to a set, then we convey the same, using symbol “ ”.

a A a A : we read this as “a” belongs to set "A".

a A a A : we read this as “a” does not belong to set "A".

The set is represented in two ways :

• Roaster form
• Set builder form

### Roaster form

All elements of the set are listed with a comma (“,”) in between and the listing itself is enclosed within braces “{“ and “}”. The order or sequence of elements within the set is not important – though desirable.

The set of numbers, which divide 12, is written as :

A = { 1,2,3,4,6,12 } A = { 1,2,3,4,6,12 }

If a pattern or sequence is easily made out, then we can use ellipsis ("...") to represent continuity of such pattern. This type of representation is particularly useful to represent an infinite set. Clearly, sequence of members in this type of representation is important.

The set of even numbers is written as,

B = { 2,4,6,8 } B = { 2,4,6,8 }

The roaster form is limited in certain circumstance. For example, we can not represent set of real numbers in roaster form. Real numbers is an infinite set, but the elements of this set do not follow a pattern or have a particular sequence. As such, we can not define same with the help of ellipsis.

Every member of the set is unique and distinct. However, we encounter situations in which collection can have repeated elements. For example, the set representing scores of three students can be a set of three numbers one of which is repeated :

S = { 80,80,70 } S = { 80,80,70 }

We need to reduce such collection as :

S = { 80,80,70 } = { 80,70 } S = { 80,80,70 } = { 80,70 }

### Set builder form

Collections are often characterized by a common property. We can, therefore, define members of a set in terms of the common property. However, we need to ensure that objects outside the collection do not have the same common property.

The construction of qualification for the common property is quite flexible. Only thing is that we need to be explicit in what we mean. Generally, we denote the member by a symbol like “x” and then define the membership. Consider the examples :

A = { x: x is a vowel in English alphabet } A = { x: x is a vowel in English alphabet }

B = { x: x is an integer and 0 < x < 10 } B = { x: x is an integer and 0 < x < 10 }

The roaster equivalents of two sets are :

A = { a , e , i , o , u } A = { a , e , i , o , u }

B = { 1,2,3,4,5,6,7,8,9 } B = { 1,2,3,4,5,6,7,8,9 }

Can we write set “B” as the one which comprises single digit natural number? Yes. Thus, we can see that there are indeed different ways to define and identify members and hence the flexibility in defining collection.

We should be careful in using words like “and” and “or” in writing qualification for the set. Consider the example here :

C = { x: x Z and 2 < x < 4 } C = { x: x Z and 2 < x < 4 }

Both conditional qualifications are used to determine the collection. The elements of the set as defined above are integers. Thus, the only member of the set is “3”.

Now, let us consider an example, which involves “or” in the qualification,

C = { x: x A or x B } C = { x: x A or x B }

The member of this set can be elements belonging to either of two sets "A" and "B". The set consists of elements (i) belonging exclusively to set "A", (ii) elements belonging exclusively to set "B" and (iii) elements common to sets "A" and "B".

### Example

Problem 1 : A set in roaster form is given as :

A = { 5 2 6 , 6 2 7 , 7 2 8 } A = { 5 2 6 , 6 2 7 , 7 2 8 }

Write the set in “set builder form”.

Solution : We see here that we are dealing with natural numbers. The numerators are square of natural numbers in sequence. The number in denominator is one more than numerator for each member. We can denote natural number by “n”. Clearly, if numerator is “ n 2 n 2 ”, then denominator is “n+1”. Therefore, the expression that represent a member of the set is :

x = n 2 n + 1 x = n 2 n + 1

However, this set is not an infinite set. It has exactly three members. Therefore, we need to specify “n” so that only members of the set are exclusively denoted by the above expression. We see here that “n” is greater than 4, but “n” is less than 8. For representing three elements of the set,

5 n 7 5 n 7

We can write the set, now, in the builder form as :

A = { x : x = n 2 n + 1 , where "n" is a natural number and 5 n 7 } A = { x : x = n 2 n + 1 , where "n" is a natural number and 5 n 7 }

In set builder form, the sequence within the range is implied. It means that we start with the first valid natural number and proceed sequentially till the last valid natural number.

## Some important sets representing numbers

Few key number sets are used regularly in mathematical context. As we use these sets often, it is convenient to have predefined symbols :

• P(prime numbers)
• N (natural numbers)
• Z (integers)
• Q (rational numbers)
• R (real numbers)

We put a superscript “+”, if we want to specify membership of only positive numbers, where appropriate. " Z + Z + ", for example, means set of positive integers.

## Empty set

An empty set has no member or object. It is denoted by symbol “φ” and is represented by a pair of braces without any member or object.

φ = { } φ = { }

The empty set is also called “null” or “void” set. For example, consider a definition : “the set of integer between 1 and 2”. There is no integer within this range. Hence, the set corresponding to this definition is an empty set. Consider another example :

B = { x : x 2 = 4 and x is odd } B = { x : x 2 = 4 and x is odd }

An odd integer squared can not be even. Hence, set “B” also does not have any element in it.

There is a bit of paradox here. If the definition does not yield an element, then the set is not well defined. We may be tempted to say that empty set is not a set in the first place. However, there is a practical reason to have an empty set. It enables mathematical operations. We shall find many examples as we study operations on sets.

## Equal sets

The members of two equal sets are exactly same. There is nothing more to it. However, we need to know two special aspects of this equality. We mentioned about repetition of elements in a set. We observed that repetition of elements does not change the set. Consider example here :

A = { 1,5,5,8,7 } = { 1,5, 8,7 } A = { 1,5,5,8,7 } = { 1,5, 8,7 }

Another point is that sequence does not change the set. Therefore,

A = { 1,5,8,7 } = { 5,7,8,1 } A = { 1,5,8,7 } = { 5,7,8,1 }

In the nutshell, when we have to compare two sets we look for distinct elements only. If they are same, then two sets in question are equal.

## Cardinality

Cardinality is the numbers of elements in a set. It is denoted by modulus of set like |A|.

Definition 2: Cardinality
The cardinality of a set “A” is equal to numbers of elements in the set.

The cardinality of an empty set is zero. The cardinality of a finite set is some positive integers. The cardinality of a number system like integers is infinity. Curiously, the cardinality of some infinite set can be compared. For example, the cardinality of natural numbers is less than that of integers. However, we can not make such deduction for the most case of infinite sets.

## Content actions

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

#### Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

#### Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

### Reuse / Edit:

Reuse or edit collection (?)

#### Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

#### Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.

| Reuse or edit module (?)

#### Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

#### Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.