Skip to content
BetterDL

Substitution rule

Also called: substitution, substitution principle, substitution theorem

Any Boolean law stays true when each of its letters is replaced by a whole expression, used consistently throughout.

The laws are written with single letters, but each letter can stand for any expression, as long as you replace it the same way everywhere in the law. This is the substitution rule.

For example, the complement law says = 1. Let X = , and you get = 1. It is true because is just some value, 0 or 1, and its complement is the other one.

This is what lets the basic laws do real work. To use a law on a messy expression:

  1. Look for the law's shape.
  2. Say what each letter stands for.
  3. Apply the law, then put the expressions back.

Some shapes to watch for:

The replacement must be consistent: if X stands for , then stands for , not .

Worked examples

Example

A whole bracket as one letter

Simplify .

  1. 1.

    Let X = . The expression has the shape .

  2. 2.

    By the complement law, = 0.

  3. 3.

    Result: 0, for every input.

Example

Absorption on blocks

Simplify .

  1. 1.

    Let X = . The expression has the shape .

  2. 2.

    Absorption: = X.

  3. 3.

    Result: .

Common mistakes

  • Substituting inconsistently, for example using X = but treating as .

  • Not recognizing a law because its letters are hidden inside larger expressions. Look for the shape.

Practice Substitution rule

Interactive questions with instant feedback and a worked solution for every wrong answer.

Boolean Algebra lesson

Learn it step by step

Substitution rule is taught in Boolean Algebra.