QED
Sets · step 10 of 13

Characteristic (indicator) functions

The characteristic function 1_A maps each element of the universe to 1 if it lies in A and 0 otherwise. This converts set algebra into arithmetic: intersection becomes multiplication, complement becomes 1 − 1_A, and union follows by inclusion–exclusion. It is also the cleanest way to see why |𝒫(U)| = 2^|U| — subsets correspond exactly to functions U → {0, 1}.

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. Write each set as its indicatorReplace A by 1_A(x) throughout, so every membership statement becomes a 0/1 value.
  2. Translate the operations1_{A∩B} = 1_A · 1_B; 1_{Aᶜ} = 1 − 1_A; 1_{A∪B} = 1_A + 1_B − 1_A·1_B; 1_{A\B} = 1_A(1 − 1_B).
  3. Do ordinary algebraProve set identities by expanding both sides as polynomials in the indicators and comparing. Note 1_A² = 1_A, since 0 and 1 are idempotent.
  4. Sum to countOver a finite universe, |A| = Σₓ 1_A(x). Summing an identity between indicators yields a counting identity for free.

Worked example

Use indicator functions to prove |A ∪ B| = |A| + |B| − |A ∩ B|.

  1. For each x: 1_{A∪B}(x) = 1_A(x) + 1_B(x) − 1_A(x)·1_B(x). Check the four cases of membership to confirm.
  2. Note 1_A(x)·1_B(x) = 1_{A∩B}(x).
  3. Sum both sides over all x in the finite universe.
  4. Σ 1_{A∪B} = Σ 1_A + Σ 1_B − Σ 1_{A∩B}.

Answer. |A ∪ B| = |A| + |B| − |A ∩ B|, obtained by summing a pointwise identity.

Where marks get dropped

These are the specific errors that cost credit on characteristic (indicator) functions questions — QED's rubric penalises each of them separately.

Practise this until it is automatic

Unlimited fresh questions

QED generates new characteristic (indicator) functions 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 Sets mastery is tracked so you know when this is exam-ready.

Characteristic (indicator) functions — frequently asked questions

Why are indicator functions useful in probability?

Because E[1_A] = P(A). Writing a count as a sum of indicators and applying linearity of expectation is the standard trick for computing expected values without touching the distribution.

How do they show |𝒫(U)| = 2^|U|?

Subsets of U correspond bijectively to functions U → {0,1}, since each subset has exactly one indicator and each such function determines exactly one subset. There are 2^|U| such functions.

Is 1_A the same as the identity function?

No. The identity maps every element to itself; the indicator maps into {0, 1} and records membership only.

The rest of Sets

Set-builder notation, operations, and set identities. Each subtopic below has its own method, worked example and mark-losing traps.

Ready to make characteristic (indicator) functions 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 →