On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Sets & Logic · Grade 9-12

Invariance

Invariance is a property of an object that stays unchanged under a particular transformation or operation.

f(T(x))=f(x) for all x (property f is invariant under transformation T)
344

A 3×8 grid of 24 squares with a slideable divider: the two parts trade squares endlessly, but the total of 24 never moves — that unchanging total is the invariant.


Quick Answer

Invariance is a property of an object that stays unchanged under a particular transformation or operation. You use it when something is moved, rotated, rescaled or changed step by step, and the question is whether a target can ever be reached or what must be true at the end. Instead of following every possible sequence of moves, you find one quantity, such as a parity, a total or a length, that no allowed move can change. If the start and the target give different values of that quantity, no sequence of moves connects them.

Why This Matters

Invariants answer 'can this ever happen?' questions that would otherwise mean checking millions of move sequences: a parity argument shows in two lines that a puzzle position is unreachable. They also run through geometry, since rotations keep every length and angle, which is why a rotated triangle is congruent to the original. Without the idea you can only try moves and hope, and failing to find a path never proves there is none.

Intuitive Explanation

Five cups stand upside down. A move flips exactly two of them. Can you end with exactly one cup the right way up? You could try sequences forever. Instead, watch the number of upright cups. Flipping two cups changes it by +2, 0 or −2, so if it starts even it stays even after every move. One is odd, so the answer is no, and you know it without trying a single sequence.

That is the pattern: find a quantity f with f(T(x))=f(x) for the allowed move T, then compare its value at the start and at the target. The logic runs one way only. Different values prove the target is unreachable; equal values do not prove it is reachable. Invariance also belongs to a particular transformation. Area is invariant under rotation and translation but not under scaling, since doubling every length multiplies area by 4. Angles do survive scaling, which is why similar triangles have equal angles.

Do not confuse an invariant with a symmetry. A rectangle rotated by 37∘ keeps its area and perimeter, so both are invariants of that rotation, yet the rectangle ends up in a new position, so the rotation is not a symmetry. A half turn about its centre does land the rectangle on itself, and that is a symmetry. One preserved number is a weaker statement than the whole object matching itself.

Think of it like this. An invariant behaves like the total money in a closed room where people only trade with each other: coins and notes change hands, but the total never moves. If someone claims the room now holds more money than at the start, you know trading could not have done it, without watching a single trade.

Core idea. An invariant is the quantity or property that does not change while a transformation acts on everything else.


When to Use

Look for an invariant when a problem describes repeated moves or a transformation and asks whether a target is possible, reachable, or forced at the end. Good candidates are parity, a total, a remainder, a length or an angle. Name the move, then check that the quantity survives every allowed move, not just one of them. If the question is whether the whole figure lands on itself, use symmetry; if it asks how much a quantity changes, track the change directly.

Tip. Ask: Is there a quantity that stays exactly the same every time the given transformation is applied?

How to Recognize It

Before looking for an invariant, write down exactly which moves are allowed, because a quantity can only be invariant under particular moves, never in general.

  1. Does the problem let you repeat a move many times and ask whether some final state can ever be reached?

    If yes, an invariant is the natural tool: one quantity that no move changes can rule the target out without trying every sequence. If the question asks how much something changes, track that change directly instead.

  2. Does your candidate quantity survive every allowed move, not just the first one you checked?

    Check each type of move separately. Area survives rotations and reflections but not stretching, so with a stretch allowed it is not invariant. If one move changes it, try another candidate, such as a parity or a remainder.

  3. Do the start and the target give different values of that quantity?

    If yes, the target is impossible, and that is a complete proof. If they give the same value, the invariant proves nothing either way; you still need to find a sequence of moves or a second invariant.

  4. Is the question about the whole figure fitting onto itself rather than one number staying put?

    If yes, that is symmetry: a square turned 90∘ about its centre fills the same spot. Invariance needs only one preserved quantity, such as the side length, even when the figure moves somewhere new.

Invariance compared with Symmetry, Equivalence relation, and Constant function

Each row involves something staying the same, which is why they blur. Ask what stays the same and under what: one quantity under a move (invariance), a whole figure under a move (symmetry), a shared label across many objects (equivalence relation), or an output across all inputs (constant function).

Invariance

Meaning
Use this when an object is being transformed and you can solve by tracking the quantity that stays unchanged.
Key test
Is there a quantity that stays exactly the same every time the given transformation is applied?
Formula
f(T(x))=f(x) for all x (property f is invariant under transformation T)
Example
Cups sit with 0 facing up; each move flips exactly two cups. Can you ever reach 1 cup up out of 5?

Symmetry

Meaning
The object as a whole looks identical after the transformation, a fuller condition than one preserved quantity.
Key test
Use when the entire figure maps onto itself, not just a value.
Formula
f(x)=f(−x)
Example
A square unchanged by a 90° turn

Equivalence relation

Meaning
Groups objects deemed 'the same', without a transformation acting on one object.
Key test
Use when classifying many objects, not tracking one under change.
Formula
a∼b
Example
Clock times equal mod 12

Constant function

Meaning
A function with a fixed output for all inputs, not a property surviving a transformation.
Key test
Use when the output never varies with the input itself.
Formula
f(x)=7
Example
Always returns 7

Formula & Notation

f(T(x))=f(x) for all x (property f is invariant under transformation T)
f is an invariant of transformation T iff ∀x (f(T(x))=f(x)); the set of invariants of T is closed under composition

How to read it: f(T(x))=f(x) means 'f is unchanged by T'; the invariant f is preserved

Worked Examples

Example 1 — Coin-flip puzzle

Easy

Cups sit with 0 facing up; each move flips exactly two cups. Can you ever reach 1 cup up out of 5?
Show the steps and the answer
  1. Track u, the number of cups facing up. Flipping two down cups gives +2, one up and one down gives 0, two up cups gives −2.

    These are the only three kinds of move, so they cover every possible flip.

  2. Conclude that every move changes u by an even number, so whether u is even or odd never changes.

    Adding −2, 0 or +2 to an even number always gives an even number.

  3. Compare: the start has u=0, which is even; the target has u=1, which is odd.

    Different parities at start and target mean no sequence of moves can link them.

  4. Contrast with the target u=2: parity allows it, and one move, flipping any two cups, reaches it.

    An invariant only rules outcomes out; when the values match, you still have to find the moves.

Answer: No — parity invariance forbids it

Takeaway: Find a quantity no move can change, then compare its value at the start and at the target. Here parity settles the question without trying a single sequence.

Example 2 — Symmetry, not invariance

Standard

An equilateral triangle looks identical after a 120° rotation. Is that an invariant?
Show the steps and the answer
  1. Name the transformation: rotation by 120∘ about the triangle's centre.

    Both symmetry and invariance are claims about one named transformation.

  2. Follow the vertices: A→B, B→C, C→A, so the rotated triangle covers the original exactly.

    Every point lands on a point of the original figure, which is what makes the rotation a symmetry.

  3. List the invariants of this rotation: side length, perimeter, area, and the three 60∘ angles.

    Any rotation preserves these, even for a figure that ends up looking different.

  4. Compare with a 50∘ rotation: perimeter and area are unchanged, but the triangle lands in a new position.

    Both rotations have the same invariants; only 120∘, 240∘ and 360∘ also map the triangle onto itself.

Answer: It is a symmetry of the triangle

Takeaway: When the whole figure lands on itself, call it a symmetry. Invariance is the weaker claim that some measured quantity is unchanged.

Example 3 — Find the mistake: invariant under which move?

Application

A 3 cm by 4 cm rectangle is enlarged with scale factor 2. Leo writes: "Area is an invariant, so the enlarged rectangle still has area 12 cm2." Find the mistake and correct it.
Show the steps and the answer
  1. Name the transformation: a dilation with scale factor 2, so the sides become 6 cm and 8 cm.

    Leo's claim leaves out which transformation area is supposed to survive.

  2. Compute the new area: 6⋅8=48 cm2, which is 4⋅12.

    Scaling every length by k multiplies area by k2, here 22=4.

  3. Say where area really is invariant: under translations, rotations and reflections.

    Those moves keep every length, so they keep area; a dilation stretches lengths.

  4. List what the dilation does keep: the four 90∘ angles and the side ratio 3:4=6:8.

    Angles and ratios are the invariants of scaling, which is why an enlarged figure is similar to the original.

Answer: The enlarged rectangle has area 48 cm2; area is invariant under rigid motions, not under scaling.

Takeaway: An invariant always belongs to a transformation. Say which one before relying on a quantity staying fixed.

Where You'll See It

  • Spotting an unsolvable 15-puzzle

    In the sliding 15-puzzle, every slide preserves a combined parity of the tile order and the blank square's position, so exactly half of all arrangements can never be solved. That is why Sam Loyd's famous prize for swapping only tiles 14 and 15 was never claimed: that arrangement has the wrong parity.

  • A Rubik's cube that cannot be solved

    Legal turns keep the total twist of the eight corner pieces a multiple of 3. If someone pops out one corner and puts it back rotated, the total twist changes by 1 or 2, and no sequence of turns will ever solve the cube. Cubers use this to spot a tampered puzzle.

  • Why Greenland looks huge on maps

    The Mercator projection keeps angles invariant, so a straight line on the map is a constant compass bearing, which made it ideal for sailors. Area is not invariant under it: Greenland looks about as large as Africa, though Africa's area is roughly 14 times larger.

Common Mistakes

  1. The slip: Saying invariant without naming the transformation

    Instead: a quantity is invariant under a specific operation, not absolutely.

  2. The slip: Assuming an obvious quantity is preserved

    Instead: verify it survives every application before relying on it.

  3. The slip: Confusing the invariant with the whole object's symmetry

    Instead: one tracks a preserved value, the other a self-mapping figure.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. The numbers 1 to 10 are written on a board. A move erases two numbers a and b and writes a+b. After 9 moves one number is left. What is it?

    Hint: What happens to the total of all the numbers during a move?

  2. A point at (3,4) is rotated about the origin by any angle. Which quantity stays the same, and what is its value?

    Hint: Think about the circle the point moves along.

  3. A 6 by 4 rectangle is cut into pieces and rearranged, with no overlaps or gaps, into a new shape. Which of area and perimeter is invariant?

    Hint: What happens to the amount of paper, and what happens to the edges?

  4. Start with 1,2,3,4,5,6. A move erases two numbers a and b and writes ∣a−b∣. Can the last number left be 0?

    Hint: Compare the parity of a+b and ∣a−b∣. Is the total odd or even at the start?

  5. A regular hexagon lands exactly on itself after a 60∘ turn. Is that best described as symmetry or as an invariant quantity?

    Hint: Is a whole figure mapping onto itself, or is one number staying fixed?

  6. A move replaces two numbers a and b with a+b and a−b. Ty says, "The sum of the numbers is invariant." Test his claim with 5 and 3.

    Hint: Add the numbers before the move, then add them after.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can dominoes cover a chessboard with two opposite corners removed?

No, and colour is the invariant. Each domino covers one black and one white square wherever it lies. Opposite corners are the same colour, so removing them leaves 32 squares of one colour and 30 of the other. Any set of dominoes covers equal numbers of each colour, so 31 dominoes can never fit, even though 62 squares look like exactly enough.

Is conservation of energy an invariant?

Yes. In physics, the total energy of a closed system is unchanged by every interaction inside it, which is exactly an invariant under the system's allowed moves. It gives a roller coaster's speed at the bottom of a drop from rest, about 2gh\sqrt{2gh} if friction is ignored, without following the shape of the track. A result called Noether's theorem links each conserved quantity like this to a symmetry of the laws of physics.

Does an invariant have to be a number?

No. It can be a parity (odd or even), a colour count, a remainder, a sign, or a yes-or-no property such as 'the shape is convex'. Parity is the favourite in puzzles because many moves change a total by an even amount. What matters is that you can work it out for the start and the target and show that no allowed move changes it.

What is a monovariant?

A monovariant is a quantity that always changes in one direction, such as a total that can only go down. It is the close cousin of an invariant. If a quantity is a non-negative whole number and strictly decreases with every move, the process must stop, because a whole number cannot keep dropping below 0. Monovariants answer 'does this ever end?', while invariants answer 'can this state be reached?'.

Learning Path

Invariance

You are here

Next →

Symmetry (Meta)
You need Geometric Transformation first: translations, rotations, reflections and dilations, and what each does to a figure. Invariance adds the question of what a transformation leaves alone, such as length, angle, area or parity, and uses the answer to rule outcomes out. Next, Symmetry (Meta) studies transformations that leave the entire object unchanged, not just one measured quantity.

See Also