Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 573329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:42:45+00:00 2026-05-13T13:42:45+00:00

Could you please explain the De Morgan’s rules as simply as possible (e.g. to

  • 0

Could you please explain the De Morgan’s rules as simply as possible (e.g. to someone with only a secondary school mathematics background)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:42:46+00:00Added an answer on May 13, 2026 at 1:42 pm

    Overview of boolean algebra

    We have two values: T and F.

    We can combine these values in three ways: NOT, AND, and OR.

    NOT

    NOT is the simplest:

    • NOT T = F
    • NOT F = T

    We can write this as a truth table:

    when given.. | results in...
    ============================
               T | F
               F | T
    

    For conciseness

    x | NOT x
    =========
    T | F
    F | T
    

    Think of NOT as the complement, that is, it turns one value into the other.

    AND

    AND works on two values:

    x y | x AND y
    =============
    T T | T
    T F | F
    F T | F
    F F | F
    

    AND is T only when both its arguments (the values of x and y in the truth table) are T — and F otherwise.

    OR

    OR is T when at least one of its arguments is T:

    x y | x OR y
    =============
    T T | T
    T F | T
    F T | T
    F F | F
    

    Combining

    We can define more complex combinations. For example, we can write a truth table for x AND (y OR z), and the first row is below.

    x y z | x AND (y OR z)
    ======================
    T T T | ?
    

    Once we know how to evaluate x AND (y OR z), we can fill in the rest of the table.

    To evaluate the combination, evaluate the pieces and work up from there. The parentheses show which parts to evaluate first. What you know from ordinary arithmetic will help you work it out. Say you have 10 - (3 + 5). First you evaluate the part in parentheses to get

    10 - 8
    

    and evaluate that as usual to get the answer, 2.

    Evaluating these expressions works similarly. We know how OR works from above, so we can expand our table a little:

    x y z | y OR z | x AND (y OR z)
    ===============================
    T T T | T      | ?
    

    Now it’s almost like we’re back to the x AND y table. We simply substitute the value of y OR z and evaluate. In the first row, we have

    T AND (T OR T)
    

    which is the same as

    T AND T
    

    which is simply T.

    We repeat the same process for all 8 possible values of x, y, and z (2 possible values of x times 2 possible values of y times 2 possible values of z) to get

    x y z | y OR z | x AND (y OR z)
    ===============================
    T T T | T      | T
    T T F | T      | T
    T F T | T      | T
    T F F | F      | F
    F T T | T      | F
    F T F | T      | F
    F F T | T      | F
    F F F | F      | F
    

    Some expressions may be more complex than they need to be. For example,

    x | NOT (NOT x)
    ===============
    T | T
    F | F
    

    In other words, NOT (NOT x) is equivalent to just x.

    DeMorgan’s rules

    DeMorgan’s rules are handy tricks that let us convert between equivalent expressions that fit certain patterns:

    • NOT (x AND y) = (NOT x) OR (NOT y)
    • NOT (x OR y) = (NOT x) AND (NOT y)

    (You might think of this as how NOT distributes through simple AND and OR expressions.)

    Your common sense probably already understands these rules! For example, think of the bit of folk wisdom that "you can’t be in two places at once." We could make it fit the first part of the first rule:

    NOT (here AND there)
    

    Applying the rule, that’s another way of saying "you’re not here or you’re not there."

    Exercise: How might you express the second rule in plain English?

    For the first rule, let’s look at the truth table for the expression on the left side of the equals sign.

    x y | x AND y | NOT (x AND y)
    =============================
    T T | T       | F
    T F | F       | T
    F T | F       | T
    F F | F       | T
    

    Now the righthand side:

    x y | NOT X | NOT Y | (NOT x) or (NOT y)
    ========================================
    T T | F     | F     | F
    T F | F     | T     | T
    F T | T     | F     | T
    F F | T     | T     | T
    

    The final values are the same in both tables. This proves that the expressions are equivalent.

    Exercise: Prove that the expressions NOT (x OR y) and (NOT x) AND (NOT y) are equivalent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Wondering if someone could please explain the difference between these two queries and advise
Could someone please explain why this is happening? var y = new int[]{1,2}; Console.WriteLine(y
Could someone please explain this weird phenomenon: http://jsfiddle.net/sPA2V/ For some reason, the box footer
Could someone please explain when would I want to use delegation instead of inheritance?
Could someone please explain why when you have an plain widget as one line
Could someone please explain how to correctly allocate memory for for a pointer to
could someone please explain this to me: I have an MVC method I want
Could someone please explain, what exactly this O_LARGEFILE option does to support opening of
Could someone please explain the difference? From what I understand, I could expose my
Could someone please explain what an I/O Error 32 refers to in the context

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.