Formal semantics uses mathematical tools to study meaning in natural language. Montague grammar, developed in the 1970s, provides a rigorous framework for analyzing linguistic expressions. Dynamic semantics extends this approach to account for how meaning evolves in discourse. Key concepts include type-driven interpretation, compositionality, and discourse representation theory. These approaches allow for precise analysis of complex linguistic phenomena like anaphora and presupposition. Applications range from natural language processing to dialogue systems and machine translation.