Lab tutorials

Using the Boolean Expression Simplifier Tool

Learn how to use the ECExplain Boolean expression simplifier to reduce logic expressions, generate truth tables, and verify Karnaugh map results step by step.

Visual

InputsExpression textVariable countInput modeSimplifierBoolean engineK-map groupingStep traceOutputsSimplified SOPTruth tableK-map view

Lab intro

Simplifying Boolean expressions by hand using algebraic laws or Karnaugh maps is error-prone, particularly for expressions with four or more variables. The ECExplain Boolean Expression Simplifier accepts an expression in standard notation, applies minimization, and returns the simplified sum-of-products or product-of-sums form. This tutorial covers entering expressions, reading the output, cross-checking with a K-map, and using the tool to verify your manual work.

What you will learn

  • How to enter a Boolean expression using the tool's notation conventions
  • How to read and interpret the simplified SOP and POS outputs
  • How to generate a truth table from an expression and verify it
  • How to view the corresponding Karnaugh map and confirm groupings
  • How to use the step-by-step simplification trace to understand which laws were applied

Prerequisites

  • Knowledge of AND, OR, NOT operations and their standard symbols
  • Understanding of minterms, maxterms, and canonical forms
  • Basic experience with Karnaugh maps for up to four variables

Step-by-step

  1. Step 1: Open the simplifier tool
    Navigate to the Tools section of ECExplain and click Boolean Simplifier. The page loads with a text input field at the top labeled 'Enter Expression', a dropdown to select the number of variables (2 to 6), and three output panels below: Simplified Expression, Truth Table, and K-Map.
    Tip: Set the variable count before entering the expression. The tool infers variables from the expression, but setting the count explicitly ensures that unused variables are still included in the truth table columns.
  2. Step 2: Enter an expression using correct notation
    Click the input field and type: A'B'C + AB'C + ABC' + ABC. In this tool, a single quote after a variable name means NOT. Use a plus sign for OR and no symbol (or a dot) for AND. Press Enter or click the Simplify button. The tool parses the expression and displays it in formatted notation below the input field before processing.
    Tip: Spaces between terms are optional but improve readability. The tool treats AB and A B identically. If a syntax error appears, check that every NOT is written as a single quote immediately after the variable, with no space between them.
  3. Step 3: Read the simplified SOP output
    The Simplified Expression panel shows the minimized sum-of-products form. For the expression entered in step 2, the simplified result should be AC + AB. Verify this by expanding AC + AB manually: AC covers minterms 5 and 7, AB covers minterms 6 and 7. Together they cover all four minterms in the original expression.
    Tip: If the simplified output contains more terms than expected, click the Show Steps button to open the simplification trace panel. Each row in the trace shows one applied law, such as absorption, consensus, or De Morgan.
  4. Step 4: Inspect the truth table
    Click the Truth Table tab in the output section. The table lists every combination of A, B, C (eight rows for three variables) with a column for the original expression output and a column for the simplified expression output. Every row should show the same value in both output columns if the simplification is correct.
    Tip: Use the truth table to spot errors in your manual simplification. If your hand-derived expression differs from the tool's result but both produce identical truth table outputs, both are valid minimal forms of the same function.
  5. Step 5: View the K-map and check groupings
    Click the K-Map tab. For three variables the tool displays a 2x4 grid with variables A and BC on the axes. Cells containing 1 are shaded. Hover over a group (indicated by a colored rectangle overlaid on the map) to see the corresponding product term highlighted in the simplified expression. For the example, two groups should be visible: one for AC and one for AB.
    Tip: If the K-map shows a grouping you did not expect, click the group rectangle to expand a tooltip that explains which variable values are constant within that group and therefore which variable is retained in the product term.
  6. Step 6: Enter a minterm list as an alternative input
    Clear the input field. From the input mode dropdown, switch from 'Expression' to 'Minterm List'. A new input field appears labeled 'Enter minterms (comma-separated)'. Type: 1, 3, 5, 7 and set the variable count to 3. Click Simplify. The tool treats these as the minterms where the function equals 1 and produces the same simplified output as if you had entered the full canonical SOP expression.
    Tip: Minterm list mode is faster when you are working from a truth table directly. You do not need to write out the full canonical expression first.
  7. Step 7: Export or copy the result
    Click the Copy button next to the Simplified Expression output to copy the expression to your clipboard. Alternatively, click Export to download a PDF summary that includes the original expression, the simplified form, the truth table, and the K-map image. You can attach this PDF to your lab report.
    Tip: The exported PDF uses standard Boolean notation with overlines for NOT, which matches most textbook formats. The clipboard copy uses the single-quote notation of the tool input, which is easier to paste into typed documents.

Expected output

For input A'B'C + AB'C + ABC' + ABC with three variables: the Simplified Expression panel shows AC + AB. The truth table has eight rows and both output columns are identical in every row. The K-map displays two rectangular groupings, one covering the two cells where A=1 and C=1, and one covering the two cells where A=1 and B=1. No ungrouped minterms remain.

Troubleshooting tips

  • Syntax error on entry: the tool cannot parse A*B+C. Use A.B+C or AB+C. The asterisk is not a recognized AND operator in this tool.
  • Truth table shows a mismatch between original and simplified columns: the simplification contains an error. Click Show Steps and look for a row where the applied law changes the function rather than its form. Report this as a bug using the feedback button.
  • K-map does not display: the variable count is set to a value different from the number of variables in the expression. Set the dropdown to match the number of distinct variables before clicking Simplify.
  • Simplified output has more literals than expected: the expression may contain terms that cannot be grouped together on the K-map because they are not adjacent in Gray code order. Review the K-map groupings to confirm there is no larger group you missed.
  • Copy button pastes an empty string: the browser blocked clipboard access. Use Ctrl+A on the simplified expression text, then Ctrl+C manually as a workaround.