# Introduction to finite elements/Sets

A familiarity with the notation of sets is essential for the student who wants to read modern literature on finite elements. This handout gives you a brief review of set notation. More details can be found in books on advanced calculus.

## Sets

A set is a well-defined collection of objects. As far as we are concerned, these objects are mainly numbers, vectors, or functions.

If an object ${\displaystyle x}$  is a member of a set ${\displaystyle A}$ , we write

${\displaystyle x\in A~~~~~~~~(x~{\text{belongs to}}~A)~.}$

If ${\displaystyle x}$  is not a member of ${\displaystyle A}$ , we write

${\displaystyle x\notin A~~~~~~~~(x~{\text{does not belong to}}~A)~.}$

An example of a finite set (of functions) is

${\displaystyle S=\{x,\sin(x),\cos(x),\exp(x),\log(x)\}~.}$

Another example is the set of integers greater than 5 and less than 12

${\displaystyle B=\{6,7,8,9,10,11\}~.}$

If we denote the set of all integers by ${\displaystyle \mathbb {Z} }$ , then we can alternatively write

${\displaystyle B=\{n~|~n\in \mathbb {Z} ,5

The set ${\displaystyle \mathbb {Z} ^{+}}$  of positive integers is an infinite set and is written as

${\displaystyle \mathbb {Z} ^{+}=\{n~|~n\in \mathbb {Z} ,n>0\}~.}$

An empty (or null) set is a set with no elements. It is denoted by ${\displaystyle \varnothing }$ . An example is

${\displaystyle \varnothing =\{n~|~n\in \mathbb {Z} ^{+},n<0\}~=\{\}~.}$

## Subsets

If ${\displaystyle A}$  and ${\displaystyle B}$  are two sets, then we say that ${\displaystyle A}$  is a subset of ${\displaystyle B}$  if each element of ${\displaystyle A}$  is an element of ${\displaystyle B}$ .

For example, if the two sets are

${\displaystyle A=\{\sin(x),\cos(x)\}~B=\{x,\sin(x),\cos(x),\exp(x),\log(x)\}~~{\text{and}}~~}$

we write

${\displaystyle A\subset B~~~~~(A~{\text{is a proper subset of}}~B)~.}$

On the other hand, if ${\displaystyle A}$  is a subset of ${\displaystyle B}$  which may be the set ${\displaystyle B}$  itself we write

${\displaystyle A\subseteq B~~~~~(A~{\text{is a subset of}}~B)~.}$

If ${\displaystyle A}$  is not a subset of ${\displaystyle B}$ , we write

${\displaystyle A\not \subset B~~~~~(A~{\text{is not a subset of}}~B)~.}$

## Equality of sets

Two sets ${\displaystyle A}$  and ${\displaystyle B}$  are equal if they contain exactly the same elements. Thus,

${\displaystyle A=B\iff A\subseteq B~{\text{and}}~B\subseteq A~.}$

The symbol ${\displaystyle \iff }$  means if and only if.

For example, if

${\displaystyle A=\{x~|~x^{2}=4\}~{\text{and}}~B=\{2,-2\}}$

then ${\displaystyle A=B}$ .

## Union, Intersection, Difference of Sets

The union of two sets ${\displaystyle A}$  and ${\displaystyle B}$  is the set of all elements that are in ${\displaystyle A}$  or ${\displaystyle B}$ .

${\displaystyle C=A\cup B=\{x~|~x\in A~{\text{or}}~x\in B\}~.}$

The intersection of two sets ${\displaystyle A}$  and ${\displaystyle B}$  is the set of all elements that are both in ${\displaystyle A}$  and in ${\displaystyle B}$ .

${\displaystyle D=A\cap B=\{x~|~x\in A~{\text{and}}~x\in B\}~.}$

The difference of two sets ${\displaystyle A}$  and ${\displaystyle B}$  is the set of all elements that are in ${\displaystyle A}$  but not in ${\displaystyle B}$ .

${\displaystyle E=A-B=\{x~|~x\in A~{\text{and}}~x\not \in B\}~.}$

The complement of a set ${\displaystyle A}$  (denoted by ${\displaystyle A^{'}}$ ) is the set of all elements that are not in ${\displaystyle A}$  but belong to a larger universal set ${\displaystyle U}$ .

${\displaystyle A^{'}=U-A=\{x~|~x\not \in A\}~.}$

## Countable Sets

Suppose we have a set ${\displaystyle A}$ . Such a set is called countable if each of its members can be labeled with an integer subscript of the form

${\displaystyle A=\{a_{1},a_{2},a_{3},a_{4},\dots \}~.}$

Obviously, each finite set is countable. Some infinite sets are also countable. For instance, the set of integers is countable because you can label each integer with an subscript that is also an integer. However, you cannot do that with the real numbers which are uncountable.

The set of functions

${\displaystyle P=\{f_{k}~|~f_{k}(x)=x^{k},k=1,2,\dots \}}$

is countable.

The set of points on the real line

${\displaystyle A=\{x~|~0\leq x\leq 1\}}$

is not countable because the points cannot be labeled ${\displaystyle a_{1}}$ , ${\displaystyle a_{2}}$ , ${\displaystyle \dots }$ .

## Cartesian Product

The Cartesian product of two sets ${\displaystyle A}$  and ${\displaystyle B}$  is the set of all ordered pairs ${\displaystyle (a,b)}$ , such that

${\displaystyle A\times B=\{(a,b)~|~a\in A,b\in B\}~.}$

In general, ${\displaystyle A\times B\neq B\times A}$ .

For example, if

${\displaystyle A=\{1,5,7\}~{\text{and}}~B=\{3,6\}}$

then

${\displaystyle A\times B=\{(1,3),(1,6),(5,3),(5,6),(7,3),(7,6)\}}$

and

${\displaystyle B\times A=\{(3,1),(3,5),(3,7),(6,1),(6,5),(6,7)\}\neq A\times B~.}$

## The Set of Real Numbers (${\displaystyle \mathbb {R} }$)

The set of real numbers (${\displaystyle \mathbb {R} ^{}}$ ) can be visualized as an infinitely long line with each real number being represented as a point on this line.

We usually deal with subsets of ${\displaystyle \mathbb {R} ^{}}$ , called intervals.

Let ${\displaystyle a}$  and ${\displaystyle b}$  be two points on ${\displaystyle \mathbb {R} ^{}}$  such that ${\displaystyle a\leq b}$ . Then,

• The open interval ${\displaystyle (a,b)}$  is defined as
${\displaystyle (a,b)=\{x~|~x\in \mathbb {R} ,a
• The closed interval ${\displaystyle [a,b]}$  is defined as
${\displaystyle [a,b]=\{x~|~x\in \mathbb {R} ,a\leq x\leq b\}~.}$
• The half-open intervals ${\displaystyle (a,b]}$  and ${\displaystyle [a,b)}$  are defined as
${\displaystyle (a,b]=\{x~|~x\in \mathbb {R} ,a

Let ${\displaystyle p\in \mathbb {R} ^{}}$  and ${\displaystyle \epsilon >0}$ . Then the neighborhood of ${\displaystyle p}$  is defined as the open interval

${\displaystyle {\text{nbd}}(p;\epsilon ):=(p-\epsilon ,p+\epsilon )=\{x~|~p-\epsilon

Let ${\displaystyle X\subset \mathbb {R} ^{}}$ . Then ${\displaystyle p}$  is an interior point of ${\displaystyle X}$  if we can find a nbd(${\displaystyle p}$ ) all of whose points belong to ${\displaystyle X}$ .

If every point of ${\displaystyle X}$  is an interior point, then ${\displaystyle X}$  is called an open set. For example, the interval ${\displaystyle (a,b)}$  is an open set. So is the real line ${\displaystyle \mathbb {R} ^{}}$ .

A set ${\displaystyle X\subset \mathbb {R} ^{}}$  is called closed if its complement ${\displaystyle X^{'}=\mathbb {R} ^{}-X}$  is open.

The closure ${\displaystyle {\bar {X}}}$  of a set ${\displaystyle X\subset \mathbb {R} ^{}}$  is the union of the set and its boundary points (a rigorous definition of closed sets can be made using the concept of points of accumulation).

## Open and Closed Sets in ${\displaystyle \mathbb {R} ^{n}}$

The concept of the real line can be extended to higher dimensions. In two dimensions, we have ${\displaystyle \mathbb {R} ^{2}}$  which is defined as

${\displaystyle \mathbb {R} ^{2}=\mathbb {R} ^{}\times \mathbb {R} ^{}=\{(x,y)~|~x,y\in \mathbb {R} ^{}\}~.}$

${\displaystyle \mathbb {R} ^{2}}$  can be thought of as a two-dimensional plane and each member of the set ${\displaystyle \mathbf {x} =(x,y)}$  represents a point on the plane.

In three dimensions, we have

${\displaystyle \mathbb {R} ^{3}=\mathbb {R} ^{}\times \mathbb {R} ^{}\times \mathbb {R} ^{}=\{(x,y,z)~|~x,y,z\in \mathbb {R} ^{}\}~.}$

In ${\displaystyle n}$  dimensions, the concept is extended to mean

${\displaystyle \mathbb {R} ^{n}=\mathbb {R} ^{}\times \mathbb {R} ^{}\times \mathbb {R} ^{}\dots \times \mathbb {R} ^{}=\{(x_{1},x_{2},x_{3},\dots ,x_{n})~|~x_{1},x_{2},x_{3},\dots ,x_{n}\in \mathbb {R} ^{}\}~.}$

In the case of sets in ${\displaystyle \mathbb {R} ^{n}}$  the concept of distance in ${\displaystyle \mathbb {R} ^{}}$  is extended so that

${\displaystyle {\text{nbd}}(\mathbf {p} ;\epsilon ):=\{\mathbf {x} ~|~\mathbf {p} \in \mathbb {R} ^{n},|\mathbf {x} -\mathbf {p} |<\epsilon \}}$

where

${\displaystyle |\mathbf {x} -\mathbf {p} |={\sqrt {(x_{1}-p_{1})^{2}+(x_{2}-p_{2})^{2}+\dots +(x_{n}-p_{n})^{2}}}~.}$

The definition of interior point also follows from the definition in ${\displaystyle \mathbb {R} ^{}}$ . Thus if ${\displaystyle \Omega \subset \mathbb {R} ^{n}}$ , then ${\displaystyle p\in \mathbb {R} ^{n}}$  is an interior point if we can always find a nbd${\displaystyle (p;\epsilon )}$ , all of whose points belong to ${\displaystyle \Omega }$ . If every point on ${\displaystyle \Omega }$  is an interior point, then ${\displaystyle \Omega }$  is an open set. As in the real number line, a closed set is the complement of an open set. One way of creating a closed set is by taking an open set ${\displaystyle \Omega }$  and its boundary ${\displaystyle \Gamma }$ . This particular closed set is called the closure ${\displaystyle {\bar {\Omega }}}$  of ${\displaystyle \Omega }$ . A rigorous definition can once again be obtained using the concept of points of accumulation.