# 8.3: Boolean Relationships on Venn Diagrams

- Page ID
- 947

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\id}{\mathrm{id}}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\kernel}{\mathrm{null}\,}\)

\( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\)

\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\)

\( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)

\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)

\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vectorC}[1]{\textbf{#1}} \)

\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

The fourth example has ** A** partially overlapping

**. Though, we will first look at the whole of all hatched area below, then later only the overlapping region. Let’s assign some Boolean expressions to the regions above as shown below.**

**B**Below left there is a red horizontal hatched area for

**. There is a blue vertical hatched area for**

**A****.**

**B**If we look at the whole area of both, regardless of the hatch style, the sum total of all hatched areas, we get the illustration above right which corresponds to the inclusive ** OR** function of A, B. The Boolean expression is

**. This is shown by the 45**

**A+B**^{o}hatched area. Anything outside of the hatched area corresponds to

**as shown above. Let’s move on to next part of the fourth example**

**(A+B)-not**The other way of looking at a Venn diagram with overlapping circles is to look at just the part common to both ** A** and

**, the double hatched area below left. The Boolean expression for this common area corresponding to the**

**B****function is**

**AND****as shown below right. Note that everything outside of double hatched**

**AB****is**

**AB****.**

**AB-not**Note that some of the members of ** A**, above, are members of

**. Some of the members of**

**(AB)’****are members of**

**B****. But, none of the members of**

**(AB)’****are within the doubly hatched area**

**(AB)’****.**

**AB**We have repeated the second example above left. Your fifth example, which you previously sketched, is provided above right for comparison. Later we will find the occasional element, or group of elements, totally contained within another group in a Karnaugh map.

Next, we show the development of a Boolean expression involving a complemented variable below.

** Example:** (above)

Show a Venn diagram for ** A’B** (A-not AND B).

**Solution:**

Starting above top left we have red horizontal shaded ** A’** (A-not), then, top right,

**. Next, lower left, we form the AND function**

**B****by overlapping the two previous regions. Most people would use this as the answer to the example posed. However, only the double hatched**

**A’B****is shown far right for clarity. The expression**

**A’B****is the region where both**

**A’B****and**

**A’****overlap. The clear region outside of**

**B****is**

**A’B****, which was not part of the posed example.**

**(A’B)’**Let’s try something similar with the Boolean ** OR** function.

**Example:**

Find **B’+A**

**Solution:**

Above right we start out with ** B** which is complemented to

**. Finally we overlay**

**B’****on top of**

**A****. Since we are interested in forming the**

**B’****function, we will be looking for all hatched area regardless of hatch style. Thus,**

**OR****is all hatched area above right. It is shown as a single hatch region below left for clarity.**

**A+B’****Example:**

Find **(A+B’)’**

**Solution:**

The green 45^{o} ** A+B’** hatched area was the result of the previous example. Moving on to a to,

**,the present example, above left, let us find the complement of**

**(A+B’)’****, which is the white clear area above left corresponding to**

**A+B’****. Note that we have repeated, at right, the**

**(A+B’)’****double hatched result from a previous example for comparison to our result. The regions corresponding to**

**AB’****and**

**(A+B’)’****above left and right respectively are identical. This can be proven with DeMorgan’s theorem and double negation.**

**AB’**This brings up a point. Venn diagrams don’t actually prove anything. Boolean algebra is needed for formal proofs. However, Venn diagrams can be used for verification and visualization. We have verified and visualized DeMorgan’s theorem with a Venn diagram.

**Example:**

What does the Boolean expression ** A’+B’** look like on a Venn Diagram?

** Solution:** above figure

Start out with red horizontal hatched ** A’** and blue vertical hatched

**above. Superimpose the diagrams as shown. We can still see the**

**B’****red horizontal hatch superimposed on the other hatch. It also fills in what used to be part of the**

**A’****(B-true) circle, but only that part of the**

**B****open circle not common to the**

**B****open circle. If we only look at the**

**A****blue vertical hatch, it fills that part of the open**

**B’****circle not common to**

**A****. Any region with any hatch at all, regardless of type, corresponds to**

**B****. That is, everything but the open white space in the center.**

**A’+B’****Example:**

What does the Boolean expression ** (A’+B’)’** look like on a Venn Diagram?

** Solution:** above figure, lower left

Looking at the white open space in the center, it is everything ** NOT** in the previous solution of

**, which is**

**A’+B’****.**

**(A’+B’)’****Example:**

Show that **(A’+B’)’ = AB**

** Solution:** below figure, lower left

We previously showed on the above right diagram that the white open region is ** (A’+B’)’**. On an earlier example we showed a doubly hatched region at the intersection (overlay) of

**. This is the left and middle figures repeated here. Comparing the two Venn diagrams, we see that this open region ,**

**AB****, is the same as the doubly hatched region**

**(A’+B’)’****(A AND B). We can also prove that**

**AB****by DeMorgan’s theorem and double negation as shown above.**

**(A’+B’)’=AB**We show a three variable Venn diagram above with regions ** A** (red horizontal),

**(blue vertical), and,**

**B****(green 45**

**C**^{o}). In the very center note that all three regions overlap representing Boolean expression

**. There is also a larger petal shaped region where**

**ABC****and**

**A****overlap corresponding to Boolean expression**

**B****. In a similar manner**

**AB****and**

**A****overlap producing Boolean expression**

**C****. And**

**AC****and**

**B****overlap producing Boolean expression**

**C****.**

**BC**Looking at the size of regions described by AND expressions above, we see that region size varies with the number of variables in the associated AND expression.

, 1-variable is a large circular region.**A**, 2-variable is a smaller petal shaped region.**AB**, 3-variable is the smallest region.**ABC**- The more variables in the AND term, the smaller the region.