On this concept: Formula

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

Math · Algebra Fundamentals · Grade 9-12

Algebraic Invariance

Algebraic invariance is a property or quantity that does not change when you apply a certain transformation, like a polynomial's degree under multiplication by a nonzero constant.

deg⁡(P(x))=n is invariant under equivalent rewriting

Quick Answer

Algebraic invariance is a property or quantity that does not change when you apply a certain transformation, like a polynomial's degree under multiplication by a nonzero constant. You use it when a problem changes something (rewrites an expression, scales it, shifts a graph, or repeats a move) and asks what is guaranteed to stay the same. An invariant is always tied to a named transformation. If two objects disagree on an invariant, no sequence of the allowed moves can turn one into the other.

Why This Matters

Invariants answer "can this ever happen?" without trying every possibility: if each allowed move keeps a total even, an odd total can never appear. They also catch algebra errors, because a correct factoring or expansion keeps the degree and the value at every x. Without naming the transformation, you cannot tell which features you are allowed to trust.

Intuitive Explanation

Shuffle a deck of cards as many times as you like. The order changes completely, but there are still 52 cards, 13 hearts and 4 aces. Those counts are invariants of shuffling. Tear a card in half and the count changes: tearing is a different transformation, with different invariants. The habit to build is to name the move first, then ask what it cannot change.

Expressions work the same way. Multiply P(x)=x3−2x+1 by 5 to get 5x3−10x+5. Every coefficient changed, but the degree is still 3 and the roots are the same, because 5P(x)=0 exactly when P(x)=0. Shift the graph of y=x2 three units right to get y=(x−3)2: the vertex moves from (0,0) to (3,0), but the shape and the minimum value 0 stay fixed.

Invariance is not the same as equivalence. x2+2x+1 and (x+1)2 are equivalent: they agree for every x, so they are one function written two ways. Invariance is about a feature that survives a change that may produce a genuinely different object: 5P(x) is not equal to P(x), yet the two share a degree and roots. Ask whether the whole expression stayed the same or only one feature of it.

Invariants also settle impossibility puzzles. Write 1 to 10 on a board, then repeatedly erase two numbers and write their difference. The total keeps changing, but its parity does not: replacing a and b by a−b lowers the total by 2b, an even number. The total starts at 55, which is odd, so the last number left must be odd.

Think of it like this. An invariant is like a fingerprint. Change your clothes, your haircut and your address, and the print still identifies you. A burn would change it, just as differentiating a polynomial changes its degree while scaling does not, so an invariant only makes sense once you say which changes are allowed.

Core idea. An algebraic invariant is a quantity that stays the same after an allowed transformation.


When to Use

Look for an invariant when a problem applies a transformation or a repeated move and asks what stays the same, what is preserved, or whether some final state is possible at all. Name the allowed move, then test each quantity against it: degree, roots, sum, parity, area. If the question asks whether two expressions are equal for every x, that is equivalence, so expand or simplify instead. If it asks for the value after one specific change, just compute it.

Tip. Ask: Does this quantity stay exactly the same after the allowed transformation is applied?

How to Recognize It

First name the move the problem allows, then look for a quantity that every such move leaves alone.

  1. Does the problem describe a move that can be repeated many times, then ask whether some end state is reachable?

    Look for a quantity the move never changes, such as a sum, a parity or a remainder. If the start and the target disagree on it, the target is unreachable, however many moves you try.

  2. Does the move change how the expression looks but keep a feature such as its degree or its roots?

    Multiplying x2−5x+6 by 3 changes every coefficient but keeps the roots 2 and 3 and the degree 2. Subtracting 6 keeps the degree but changes the roots to 0 and 5, so name the move first.

  3. Is the question whether two expressions are equal for every value of x?

    That is equivalence: expand or simplify both and compare. Invariance asks what survives a change, and two expressions sharing an invariant, such as their degree, can still be unequal.

  4. Does the question want the result of one specific change rather than what always survives?

    Then just compute it. Shifting y=x2 up by 3 gives y=x2+3; the invariant view adds only that the parabola's shape and width are unchanged by any vertical shift.

Algebraic Invariance compared with A variable, A constant, and Equivalence (equal expressions)

All four rows describe what changes and what does not. Ask what is held fixed, and under what: a quantity preserved by a named move (invariance), a value free to change (variable), a number fixed inside one expression (constant), or two forms equal for every input (equivalence).

Algebraic Invariance

Meaning
Use this when you need a quantity that stays fixed under a transformation so you can compare before and after.
Key test
Does this quantity stay exactly the same after the allowed transformation is applied?
Formula
deg⁡(P(x))=n is invariant under equivalent rewriting
Example
Multiply P(x)=x3−2x+1 by the nonzero constant 5. Which is invariant: the degree or the leading coefficient?

A variable

Meaning
A symbol whose value is meant to change/vary.
Key test
Use when representing an unknown or changing quantity.
Example
x in 2x+1

A constant

Meaning
A fixed number in one expression; it can still change under a transformation.
Key test
Use when naming a fixed value within a single expression.
Example
The 5 in x+5

Equivalence (equal expressions)

Meaning
Two forms that are equal everywhere; invariance is about a quantity being preserved.
Key test
Use when two expressions name the same value.
Formula
a(x−h)2+k=ax2+…
Example
Vertex form equals standard form

Formula & Notation

deg⁡(P(x))=n is invariant under equivalent rewriting
Given a set of transformations T, a property ϕ is an invariant if ∀T∈T,  ∀E:ϕ(E)=ϕ(T(E)). E.g., deg⁡(P)=deg⁡(cP) for c≠0; the solution set is invariant under equivalence transformations.

How to read it: An invariant property I satisfies I(before)=I(after) for any allowed transformation.

Worked Examples

Example 1 — Find what is preserved

Easy

Multiply P(x)=x3−2x+1 by the nonzero constant 5. Which is invariant: the degree or the leading coefficient?
Show the steps and the answer
  1. Apply the transformation: 5P(x)=5x3−10x+5.

    To judge what survives, put the after-picture next to the before-picture.

  2. Compare degrees: the highest power is x3 before and after, so the degree stays 3.

    Multiplying by a nonzero number cannot make the x3 term vanish or create a higher power.

  3. Compare leading coefficients: 1 before, 5 after.

    Scaling multiplies every coefficient, the leading one included, so it changes unless the constant is 1.

  4. Note why the constant must be nonzero: multiplying by 0 gives the zero polynomial, which has no degree.

    The invariant holds for the transformation exactly as stated; allow a different move and the list of invariants changes.

Answer: Degree is invariant; leading coefficient is not

Takeaway: Scaling by a nonzero constant keeps the degree (and the roots) but changes every coefficient.

Example 2 — Invariant vs merely changed

Standard

Adding 3 to every root of a quadratic shifts the parabola. Is the vertex location invariant?
Show the steps and the answer
  1. Take a concrete case: f(x)=(x−1)(x−5) has roots 1 and 5; adding 3 to each gives g(x)=(x−4)(x−8).

    A specific quadratic shows exactly what the shift does to each feature.

  2. Find each vertex: f has axis x=3 and f(3)=(2)(−2)=−4; g has axis x=6 and g(6)=(2)(−2)=−4.

    The axis sits midway between the roots, so moving both roots by 3 moves the axis by 3.

  3. Compare: the vertex moves from (3,−4) to (6,−4).

    Its x-coordinate changed, so the vertex location is not invariant, even though its height −4 survived.

  4. Compare shapes: g(x)=f(x−3), and both expand with leading coefficient 1 (x2−6x+5 and x2−12x+32).

    A horizontal shift slides the graph without stretching it, so the shape and the minimum value are invariants of this move.

Answer: Vertex is NOT invariant under a shift; the shape is

Takeaway: Under a horizontal shift the vertex travels with the roots, while the shape and the lowest value stay fixed.

Example 3 — Find the mistake: one survivor is not all

Application

Replace x with 2x in P(x)=x2−5x+6 to get Q(x)=P(2x). Lee writes: "Only the input was relabelled, so Q has the same degree, the same roots 2 and 3, and the same y-intercept as P." Find the mistake and correct it.
Show the steps and the answer
  1. Write out Q(x)=(2x)2−5(2x)+6=4x2−10x+6.

    With the transformed polynomial in front of you, each of Lee's three claims can be tested instead of assumed.

  2. Degree: still 2. y-intercept: Q(0)=6=P(0).

    Substituting 2x keeps x2 as the top power, and at x=0 the input 2x is also 0, so the intercept cannot move.

  3. Roots: Q(x)=0 when 2x=2 or 2x=3, so x=1 or x=32.

    P is zero at inputs 2 and 3, so Q is zero where 2x reaches those inputs, at half the x-values.

  4. Check: Q(1)=4−10+6=0 and Q(32)=9−15+6=0, while Q(2)=16−20+6=2.

    Both new roots work and 2 is no longer a root, so Lee's claim about the roots is false.

Answer: Degree (2) and y-intercept (6) are invariant; the roots are not: they move from 2 and 3 to 1 and 32.

Takeaway: Check each feature separately against the named move; one feature surviving says nothing about the others.

Where You'll See It

  • Checking multiplication by casting out nines

    A number and its digit sum leave the same remainder when divided by 9, so the digit sum is an invariant. To check 47×23=1081: the digit sums reduce to 2 and 5, and 2×5=10 reduces to 1; the digits of 1081 add to 10, which also reduces to 1. A mismatch would prove an error, though a match does not prove the answer right.

  • Spotting an unsolvable Rubik's cube

    Every legal turn changes the orientation of an even number of edge pieces (0 or 4), so the number of flipped edges always stays even. If someone reassembles a cube with a single edge flipped, no sequence of turns will ever solve it, and the invariant tells you to pop the piece out instead of searching for moves.

  • Scaling a recipe

    Tripling a recipe that uses 2 cups of flour to 1 cup of sugar gives 6 cups and 3 cups: every amount changes, but the ratio 2 : 1 is invariant, so it tastes the same. Adding an extra cup of each, giving 3 and 2, is a different transformation, and it does not keep the ratio.

Common Mistakes

  1. The slip: Assuming all features are invariant under a transformation

    Instead: state WHICH transformation and check each quantity separately.

  2. The slip: Confusing 'the expression changed' with 'the invariant changed'

    Instead: the form can change while the invariant (e.g. degree) stays fixed.

  3. The slip: Calling a number invariant without naming the transformation

    Instead: invariance is always relative to a specified allowed operation.


Mini Practice

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

  1. Rewrite P(x)=2x2−5x+3 in factored form. Which stay the same: the degree, the roots, or the written form?

    Hint: Find two factors that multiply back to P(x), then compare.

  2. Replace x with x−2 in P(x)=x2−1, shifting the graph right by 2. Which is invariant: the degree, the roots, or the minimum value?

    Hint: Write (x−2)2−1 and find its roots and lowest value.

  3. For the system x+y=10 and x−y=4, add the two equations. Is the solution the same before and after? Find it.

    Hint: Adding equations is an allowed step. What does it give for x?

  4. Expanding (x+1)3 gives x3+3x2+3x+1. Check that both forms give the same value at x=2, and name what stays invariant.

    Hint: Substitute x=2 into both forms.

  5. Shifting y=x2 up by 4 gives y=x2+4. Are these equivalent (equal) expressions, or a transformation with invariants? Name one invariant.

    Hint: Do the two expressions give the same output at x=0?

  6. A student says: "Multiplying x2−9 by 2 gives 2x2−18, so everything changed, including the roots." Correct the student.

    Hint: Solve 2x2−18=0.

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

How can an invariant prove that a puzzle is impossible?

Remove two opposite corner squares from a chessboard and try to cover the remaining 62 squares with dominoes, each covering two neighbouring squares. Every domino covers one black and one white square, so any covering uses equal numbers of each. Both removed corners are the same colour, though, leaving 32 of one colour and 30 of the other. The colour count rules the tiling out.

Is parity, odd or even, really an invariant?

It is one of the most useful, but only under the right moves. Adding 2 never changes a number's parity, so starting at 7 and adding 2 repeatedly can never reach 100. Adding 1 flips parity every time, so it is not invariant under that move, but it alternates predictably, which is just as useful: 50 steps from 7 must land on an odd number.

Is the discriminant of a quadratic an invariant?

Under a horizontal shift, yes. Replacing xx with x−hx-h slides the graph sideways without changing its shape or its height, so b2−4acb^2-4ac stays the same. Under a vertical shift it changes: x2−4x^2-4 has discriminant 16 and two roots, but x2+4x^2+4 has −16-16 and none. Once again, an invariant only makes sense after the move is named.

Where do invariants appear in science?

Conservation laws are invariants. In a collision the objects' speeds and directions change, but the total momentum stays the same, and in a closed system the total energy stays the same. Physicists use these exactly as puzzle solvers do: instead of following every detail of the motion, they compare the totals before and after, which the laws guarantee are equal.

Learning Path

← Before

Expressions
Algebraic Invariance

You are here

You need Expressions first: rewriting, expanding and scaling them without changing what they mean. Algebraic invariance adds the habit of naming a transformation and asking which features it cannot change. Next, Invariants turns that habit into a proof tool for puzzles and impossibility arguments, and Symmetric Functions studies expressions like r1+r2 and r1r2 that stay fixed when two roots swap places.

See Also