QED
Predicate Logic · step 3 of 13

Free vs bound variables & scope

An occurrence of a variable is bound if it lies within the scope of a quantifier over that variable, and free otherwise. A formula with no free variables is a sentence and has a definite truth value; a formula with free variables is only true or false relative to an assignment. In ∀x P(x, y), the variable x is bound and y is free — so this expression says something about y, not a fixed fact.

Unlimited questions · marked criterion by criterion · no card needed

Method: how to approach it

The order below is what examiners expect to see, and each step carries its own marks.

  1. Mark each quantifier’s scopeThe scope of ∀x is the immediately following subformula. Bracket it explicitly before analysing anything else.
  2. Classify occurrence by occurrenceThe same letter can be free in one place and bound in another within one formula. Analyse occurrences, not letters.
  3. Check whether it is a sentenceNo free occurrences means the formula has a truth value once the structure is fixed. Otherwise it defines a relation.
  4. Rename before substitutingWhen substituting a term for a free variable, first rename any bound variable that would capture it. α-renaming a bound variable never changes meaning.

Worked example

In ∀x (P(x, y) → ∃y Q(y, z)), classify each variable occurrence.

  1. The scope of ∀x is the whole implication, so both occurrences of x are bound by it.
  2. The y in P(x, y) is outside the scope of ∃y, which covers only Q(y, z) — so that y is free.
  3. The y in Q(y, z) is inside ∃y, so it is bound.
  4. z is inside no quantifier over z, so it is free.

Answer. x: bound. First y: free. Second y: bound. z: free. The formula is not a sentence — it depends on the values of y and z.

Where marks get dropped

These are the specific errors that cost credit on free vs bound variables & scope questions — QED's rubric penalises each of them separately.

Practise this until it is automatic

Unlimited fresh questions

QED generates new free vs bound variables & scope problems on demand at warm-up, exam and challenge level, so you can drill this one skill until it stops costing you marks.

Marked like an examiner

Every answer is scored against a point-by-point rubric with partial credit, so you see exactly which step of the method broke down — not just a tick or a cross.

Answer in real notation

A one-tap symbol palette, a visual equation editor and a truth-table builder — or photograph your handwritten working and QED converts it to LaTeX.

Saved to your library

Every question you generate is kept and re-takeable as a timed exam, and your Predicate Logic mastery is tracked so you know when this is exam-ready.

Free vs bound variables & scope — frequently asked questions

Does renaming a bound variable change the formula?

No. ∀x P(x) and ∀w P(w) are the same statement, provided w does not clash with anything already in scope. This is exactly why renaming is safe before substitution.

Can a formula have the same variable free and bound?

Yes, and it is legal though bad style. P(x) ∧ ∀x Q(x) has a free first x and a bound second — most courses ask you to rename for clarity.

Why does variable capture matter?

Because it silently changes meaning. Automated provers and compilers implement careful renaming precisely to avoid this bug, and exams test that you spot it.

The rest of Predicate Logic

Quantifiers, predicates, binding, and validity. Each subtopic below has its own method, worked example and mark-losing traps.

Ready to make free vs bound variables & scope exam-proof?

Generate your first questions free — no card, no setup, no personal data stored. Practise until the method is second nature.

Start practising free →