In mathematical expressions, logical operators such as AND, OR, and NOT are used within functions to evaluate conditions, yielding Boolean values (true or false). They enable the combination of multiple conditions in decision-making logic, crucial for defining the domain or characteristics of functions in discrete mathematics.