Logic diagrams are often drawn to represent boolean expressions.
Each logic gate has its own symbol.
Diagram 1 shows the symbol for a NOT
gate.
Diagram 1
Diagram 2 shows the symbol for an AND
gate.
Diagram 2
Diagram 3 shows the symbol for an OR
gate.
Diagram 3
Diagram 4 shows the symbol for an XOR
gate.
Diagram 4
These symbols can be combined to represent boolean expressions. You need to just learn these symbols.
Draw the logic diagram for the expression
Q = NOT(A XOR B)
.