Mathwords logoMathwords

Zero Set — Definition, Formula & Example

A zero set is the collection of every input that a function sends to 0. For example, the zero set of f(x)=x2−9f(x) = x^2 - 9 is {−3,3}\{-3, 3\}.

Let f:X→Rf: X \to \mathbb{R} (or f:X→Cf: X \to \mathbb{C}, or into any field) be a function on a set XX. The zero set of ff, also called its zero locus, is the preimage Z(f)=f−1({0})Z(f) = f^{-1}(\{0\}). For a family of functions {fi}\{f_i\}, the common zero set is Z({fi})=⋂iZ(fi)Z(\{f_i\}) = \bigcap_i Z(f_i). If XX is a topological space and ff is continuous, then Z(f)Z(f) is a closed subset of XX, because {0}\{0\} is closed in R\mathbb{R}.

Key Formula

Z(f)=f−1({0})={ x∈X:f(x)=0 }Z(f) = f^{-1}(\{0\}) = \{\, x \in X : f(x) = 0 \,\}
Where:
  • ff = A function from a set X to the real numbers (or another field)
  • XX = The domain of f, often a topological space such as the plane
  • Z(f)Z(f) = The zero set: every point of X where f equals 0

Worked Example

Problem: Let f(x,y)=(x−3)(y+2)f(x, y) = (x - 3)(y + 2) on R2\mathbb{R}^2. Find the zero set Z(f)Z(f), describe its shape, and explain why it is closed.
Step 1: Set the function equal to 0. A product of real numbers is 0 exactly when at least one factor is 0.
(x−3)(y+2)=0  ⟺  x=3  or  y=−2(x-3)(y+2) = 0 \iff x = 3 \ \text{ or } \ y = -2
Step 2: Write the zero set as a union. It is the vertical line x=3x = 3 together with the horizontal line y=−2y = -2. The two lines cross at (3,−2)(3, -2). As a check, (1,1)(1, 1) is not in the zero set because f(1,1)=(−2)(3)=−6≠0f(1,1) = (-2)(3) = -6 \neq 0.
Z(f)={(3,y):y∈R}∪{(x,−2):x∈R}Z(f) = \{(3, y) : y \in \mathbb{R}\} \cup \{(x, -2) : x \in \mathbb{R}\}
Step 3: Show the set is closed. The function ff is a polynomial, so it is continuous. The singleton {0}\{0\} is closed in R\mathbb{R}. The preimage of a closed set under a continuous map is closed.
Z(f)=f−1({0}) is closed in R2Z(f) = f^{-1}(\{0\}) \text{ is closed in } \mathbb{R}^2
Answer: Z(f)Z(f) is the union of the lines x=3x = 3 and y=−2y = -2, meeting at (3,−2)(3, -2). It is closed in R2\mathbb{R}^2 because ff is continuous.

Why It Matters

In algebraic geometry, the main objects of study, called varieties, are common zero sets of polynomials, such as the circle Z(x2+y2−25)Z(x^2 + y^2 - 25). In multivariable calculus, the implicit function theorem tells you when a zero set looks like a smooth curve or surface near a point. In topology, every closed set in a metric space is a zero set: a nonempty closed set AA equals Z(f)Z(f) for the continuous function f(x)=d(x,A)f(x) = d(x, A).

Common Mistakes

Mistake: Assuming every zero set is closed, even when the function is not continuous.
Correction: Closedness depends on continuity. The step function with f(x)=0f(x) = 0 for x<0x < 0 and f(x)=1f(x) = 1 for x≥0x \geq 0 has zero set (−∞,0)(-\infty, 0), which is not closed. Check that ff is continuous before you conclude Z(f)Z(f) is closed.

Related Terms

  • Empty Set — What the zero set is when no input gives 0
  • Zero Product Property — Splits the zero set of a product into the zero sets of its factors
  • Set — The kind of collection a zero set is
  • Closed Set — Zero sets of continuous functions are always closed sets
  • Topology — Supplies the open and closed sets used here
  • Algebraic Geometry — Studies zero sets of systems of polynomials
  • Polynomial — Zero sets of polynomials are found by solving them