Logic is a branch of mathematics that studies reasoning and arguments. It uses formal languages and systems of inference to represent mathematical statements, propositions, and rules of reasoning. A statement is a declarative sentence that can be either true or false. A simple statement conveys a single idea, while a compound statement conveys two or more ideas by connecting simple statements with connectives like "and", "or", and "if...then". The truth value of compound statements depends on the truth values of its simple statements and connectives, which can be represented using truth tables.