Most definitions in mathematics use two quantifiers at once: "for every $x$ there is a $y$ such that…" With negation of quantifiers in hand, this lesson shows how to read, decide and negate such statements, and why the order of the quantifiers matters.
Key idea
Why it works
A table of $P(x, y)$ makes this visible. Rows are values of $x$, columns are values of $y$, on the domain $\{1, 2, 3\}$: $$\begin{array}{c|ccc} P(x, y) & y = 1 & y = 2 & y = 3 \\ \hline x = 1 & \mathrm{F} & \mathrm{T} & \mathrm{F} \\ x = 2 & \mathrm{T} & \mathrm{F} & \mathrm{F} \\ x = 3 & \mathrm{F} & \mathrm{F} & \mathrm{T} \end{array}$$ $\forall x\, \exists y\, P(x, y)$ asks for a T in every row: true. $\exists y\, \forall x\, P(x, y)$ asks for a column of all T's: false.
Worked examples
Worked example: Deciding over the real numbers
- First statement: for any $x$, choose $y = -x$. Then $x + y = 0$. The choice depends on $x$, which is allowed: true.
- Second statement: we need one $y$ that works for every $x$. Try $y = 0$: $x + 0 = x$ for every $x$. True.
- Both are true, but for different reasons: the first needed a $y$ for each $x$, the second found a single $y$.
Answer: true, true
Worked example: Negating a nested statement
- In symbols: $\forall x\, \exists y\, F(x, y)$.
- Move the negation through both quantifiers, switching each: $\exists x\, \forall y\, \neg F(x, y)$.
- In words: "Some student is friends with nobody in the class."
Answer: $\exists x\, \forall y\, \neg F(x, y)$
Worked example: When the order matters
- We need a partner $y$ for every $x$. For $x \ne 0$, $y = \frac{1}{x}$ works.
- But $x = 0$ has no partner: $0 \cdot y = 0$ for every $y$.
- One $x$ without a partner makes the statement false. (Over the nonzero real numbers it would be true.)
Answer: false
Common mistake