Abstract Algebra, Sets and Logic · Siblings

In algebra and in logic, some statements with variables are true for every value of their variables. An identity is an equation, such as $(x + 1)^2 = x^2 + 2x + 1$, that is true for every number substituted for its variables, because of the laws of arithmetic. A tautology is a propositional formula, such as $p \lor \neg p$, that is true for every choice of truth values for its variables, because of its logical form alone.

Definitions

identity

High school

Consider an equation with variables in it. The equation is an identity if it is true for every value of its variables.

Undergraduate

Consider expressions $f(x)$ and $g(x)$ in a variable $x$, or a tuple of variables $x = (x_1, \dots, x_n)$, and a set $D$ on which $f(x)$ and $g(x)$ are defined for every $x \in D$.

The equation $f(x) = g(x)$ is an identity on $D$ if

\[\forall x \in D,\ f(x) = g(x).\]

An identity is often written $f(x) \equiv g(x)$.

Examples
  • $\sin^2 x + \cos^2 x = 1$ is an identity because it is true for every $x$.
  • $(x + 1)^2 = x^2 + 2x + 1$ is an identity, because expanding $(x + 1)^2 = (x + 1)(x + 1)$ with the distributive law gives $x^2 + 2x + 1$ for every number $x$.
Non-examples
Things that may be mistaken for examples of this term.
  • $3x + 2$ is not an identity, because it has no relation sign, so there is nothing to be true or false.
  • $3x + 2 = 8$ is not an identity, because it is true only for $x = 2$.
  • The equation $A = \pi r^2$ is not an identity because is not true for every choice of variables $A$ and $r$, such as for $A = 0$ and $r = 1$.
  • $x + 1 = x$ for real $x$ is not an identity, because $x + 1 = x$ is false for every real number $x$.
  • $x^2 = 4$ for real $x$ is not an identity, because $x^2 = 4$ is false for $x = 0$.
  • $p \land \neg q$ is not an identity, because $p \land \neg q$ is a propositional formula, not an equation.
  • $p \lor \neg p$ is not an identity, because $p \lor \neg p$ is a propositional formula, not an equation.
Properties
  • An equation $f(x) = g(x)$ is an identity on $D$ if and only if the solution set of the equation is all of $D$.
  • An equation $f(x) = g(x)$ is an identity on $D$ if and only if the functions $x \mapsto f(x)$ and $x \mapsto g(x)$, with domain $D$, are equal.
  • Whether an equation is an identity depends on $D$. For example, $\sqrt{x^2} = x$ is an identity on $[0, \infty)$, but not on $\reals$, because $\sqrt{(-1)^2} = 1$.

tautology

High school

Consider a statement built from letters $p, q, r, \dots$ that each stand for a whole statement, such as $p \lor \neg p$ (“$p$ or not $p$”). The statement is a tautology if the statement is true for every choice of true or false for each of the letters.

Undergraduate (propositional logic)

A propositional formula $\varphi$ is a tautology if every truth assignment on the variables of $\varphi$ makes $\varphi$ true. This is written

\[\models \varphi.\]
Examples
  • $p \lor \neg p$ is a tautology, because $p \lor \neg p$ is true under both truth assignments on $p$: if $p$ is true, then $p$ is true, and if $p$ is false, then $\neg p$ is true.
Non-examples
Things that may be mistaken for examples of this term.
  • $3x + 2 = 8$ is not a tautology, because $3x + 2 = 8$ is an equation about numbers, not a propositional formula.
  • $(x + 1)^2 = x^2 + 2x + 1$ is not a tautology, because $(x + 1)^2 = x^2 + 2x + 1$ is an equation about numbers, not a propositional formula.
  • $p \land \neg p$ is not a tautology, because the truth assignment that makes $p$ true makes $\neg p$ false, so $p \land \neg p$ is false.
  • $p \land \neg q$ is not a tautology, because the truth assignment that makes $p$ and $q$ true makes $\neg q$ false, so $p \land \neg q$ is false.
Properties
  • A propositional formula is a tautology if and only if every row of its truth table gives the value true.
  • Every tautology is satisfiable.
  • A propositional formula $\varphi$ is a tautology if and only if $\neg \varphi$ is not satisfiable.
  • Replacing each propositional variable of a tautology by a proposition gives a true proposition. For example, the tautology $p \lor \neg p$ gives the true proposition “$7$ is prime or $7$ is not prime.”
  • The argument $p_1, \dots, p_n \;\therefore\; q$ is valid if and only if the formula $(p_1 \land \dots \land p_n) \implies q$ is a tautology.

Examples

Example identity tautology Why
$(x + 1)^2 = x^2 + 2x + 1$ ✓✗ $(x + 1)^2 = x^2 + 2x + 1$ is an identity, because $(x + 1)^2 = x^2 + 2x + 1$ is true for every number $x$. It is not a tautology, because $(x + 1)^2 = x^2 + 2x + 1$ is an equation about numbers, not a propositional formula, and the equation is true because of the distributive law, not because of its logical form.
$3x + 2 = 8$ ✗✗
identity: $3x + 2 = 8$ is not an identity, because it is true only for $x = 2$.
tautology: $3x + 2 = 8$ is not a tautology, because $3x + 2 = 8$ is an equation about numbers, not a propositional formula.
The tautology $p \lor \neg p$ ✗✓ $p \lor \neg p$ is a tautology, because $p \lor \neg p$ is true for both truth values of $p$. It is not an identity, because $p \lor \neg p$ is a propositional formula, not an equation, and its variable $p$ stands for a statement, not a number.
$p \land \neg q$ ✗✗
identity: $p \land \neg q$ is not an identity, because $p \land \neg q$ is a propositional formula, not an equation.
tautology: $p \land \neg q$ is not a tautology, because the truth assignment that makes $p$ and $q$ true makes $\neg q$ false, so $p \land \neg q$ is false.

The analogy

Each kind of equation matches a kind of propositional formula.

Equation in $x$ Propositional formula
The variable $x$ stands for a number. The variables $p, q, \dots$ stand for truth values.
An identity is true for every value of $x$, such as $x + x = 2x$. A tautology is true for every truth assignment, such as $p \lor \neg p$.
A conditional equation is true for some values of $x$ and false for others, such as $3x + 2 = 8$. A contingent formula is true for some truth assignments and false for others, such as $p \land \neg q$.
An equation with no solutions is false for every value of $x$, such as $x + 1 = x$. A contradiction is false for every truth assignment, such as $p \land \neg p$.
An equation has a solution. A formula is satisfiable.

For an identity and for a tautology, every value of the variables makes the statement true: the solution set of an identity is the whole domain, and every row of the truth table of a tautology is true.

Notes

  • A tautology is true because of its form alone, whatever its variables stand for. An identity is true because of facts about the numbers and the operations in it, such as the distributive law. For example, $x + x = 2x$ is true because of the laws of arithmetic, not because of logic.
  • Because an identity depends on its domain, an equation can be an identity on one domain but not on another. For example, $\sqrt{x^2} = x$ is an identity for $x \geq 0$, but not for every real number $x$, because $\sqrt{(-1)^2} = 1$. A tautology does not depend on what its variables stand for.
  • An equation $E$ in $x$ is an identity on a domain $D$ if and only if the sentence $\forall x \in D,\ E$ is true.
  • In first-order logic, a formula that is true in every interpretation is called logically valid, the first-order analogue of a tautology. A few identities, such as $x = x$, are logically valid, but most identities, such as $x + x = 2x$, are not, because an interpretation can give $+$ and $2$ meanings other than the usual ones.

See also

All distinctions · All definitions · Notation