Invariants Formula

Invariants are quantities or properties that remain unchanged during a process, operation, or transformation—values that stay the same no matter how the system is rearranged or acted upon.

The Formula

If T is a transformation, then P is an invariant when P(before)=P(after T)

Ask yourself: Is there a property that holds equal before and after the transformation?

Quick example

Area is invariant under translation. Perimeter is invariant under rotation.

Notation

An invariant is a property P that satisfies P(x)=P(T(x)) for all valid inputs

What this formula means

Quantities or properties that remain unchanged during a process, operation, or transformation—values that stay the same no matter how the system is rearranged or acted upon.

Marbles traded among friends behave like an invariant: every trade moves marbles from one pocket to another, but the total among them never changes, so you know it without watching a single trade. Let someone buy new marbles and the total stops being invariant; an invariant holds only for the moves you named.

Formal view

I is an invariant of T  ⟺  ∀x∈D:I(T(x))=I(x)

Worked examples

Example 1

medium
A sequence starts at 1 and each term is 3 times the previous minus 2: an+1=3an−2. Show that the quantity an−1 grows by a factor of 3 each step (i.e., an−1=3n−1(a1−1) is an invariant structure).
Show solution

Answer

an=1 for all n; fixed point is an invariant

First step

1.
Define bn=an−1. Then bn+1=an+1−1=(3an−2)−1=3an−3=3(an−1)=3bn.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

hard
In a game, you can add 3 or subtract 5 from a number. Starting at 0, can you reach 1? Use an invariant (parity or modular) argument.

Example 3

medium
The sum of digits of a number doesn't change modulo 9 when you add 9. Verify: 47 → 47+9=56. Is the digit sum invariant mod 9?

Common mistakes

  • Assuming any unchanged-looking quantity is the invariant - verify P(before)=P(after) for the actual transformation.
  • Confusing the invariant with the thing being transformed - the invariant is what survives, not what moves.
  • Overlooking parity or count invariants - sometimes what's preserved is a remainder or oddness, not an obvious total.

Why this formula matters

Invariants answer questions about processes too long to simulate. If every move keeps a sum fixed, the last number on the board is known in advance; if every move keeps a count even, a state with an odd count can never be reached. They also prove impossibility, which trial and error cannot: no number of failed attempts shows a puzzle has no solution, but one invariant does.

Frequently asked questions

What is the Invariants formula?

Quantities or properties that remain unchanged during a process, operation, or transformation—values that stay the same no matter how the system is rearranged or acted upon.

How do you use the Invariants formula?

Look for an invariant when a problem describes repeated moves and asks what the final state must be, whether a target is possible, or whether a process must stop. Test candidates, such as a total, a parity, a remainder, an area or a colour count, by checking that a single move cannot change them. If a problem asks for one step's value rather than what holds across all moves, compute directly; if a quantity changes steadily, such as a count that drops each move, use it to show the process ends.

What do the symbols mean in the Invariants formula?

An invariant is a property P that satisfies P(x)=P(T(x)) for all valid inputs

Why is the Invariants formula important in Math?

Invariants answer questions about processes too long to simulate. If every move keeps a sum fixed, the last number on the board is known in advance; if every move keeps a count even, a state with an odd count can never be reached. They also prove impossibility, which trial and error cannot: no number of failed attempts shows a puzzle has no solution, but one invariant does.

What do students get wrong about Invariants?

The procedure for invariants is the easy part; the trap is assuming any unchanged-looking quantity is the invariant. Asking "Is there a property that holds equal before and after the transformation?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Invariants formula?

Before studying the Invariants formula, you should understand: equal.