This site is a work in progress. New lessons are added regularly.
Contact us
Using Symmetry
Learning goals
Test symmetry by swapping x and y
Rewrite any symmetric polynomial in the sum and product
Convert a symmetric system into t2−st+p=0
Require s2≥4p for a real pair
Substitute u=x+x1 to solve a palindromic equation
Place the axis of symmetry at the roots' midpoint
What makes an expression symmetric
An expression in two variables is symmetric when swapping the two variables leaves it unchanged.
Trade every x for a y and every y for an x; if what you get is identical to what you started
with, the expression is symmetric.
The sum x+y passes the test, since swapping gives y+x, the same number. The product xy passes,
since swapping gives yx. So does x2+y2, and so does x1+y1 (for nonzero x and y), which swaps into
y1+x1. Now test two that fail. The difference x−y swaps into y−x, which is
the opposite sign, not the same expression, so x−y is not symmetric. Neither is x2y, which swaps
into y2x; those two agree only for special values of x and y, never as expressions.
Here is the leverage hidden in that plain definition. If an expression truly cannot tell x from y,
then it cannot depend on them one at a time. Such an expression must instead be expressible through
quantities that are themselves unmoved by the swap. For two variables there are two such basic building blocks, and every
symmetric expression is assembled from them: the sum and the product.
Check your understanding
Which of these expressions is NOT symmetric in x and y?
Swap x and y in each expression and see which one changes.
x2y⟶y2x
The first three are untouched by the swap, but x2y becomes y2x, a genuinely different expression, so it is not symmetric.
Every symmetric expression is built from the sum and product
Fix two abbreviations once and for all: let s=x+y be the sum and p=xy the product. Both are
symmetric, since swapping x and y leaves x+y and xy untouched. The claim of the last section
was that every symmetric expression is built from these two, and the way to see it is simply to compute.
Before computing anything, it is worth watching the swap fail to do damage. A rectangle carries both s
and p on its face: its area is the product of the two sides, and its perimeter is twice their sum. The
figure below reports both for whatever pair of sides you set. A swap of the two sides is therefore a
swap of x and y that you can perform and then look at.
Build 3 wide and 4 tall. The readout says perimeter 14, area 12, which is 2s and p for the pair
{3,4}. Now swap them, to 4 wide and 3 tall. The first half of the sentence changes, from ”3 units wide
and 4 units tall” to ”4 units wide and 3 units tall”. The picture turns on its side, but the
perimeter and the area do not move at all. That is this lesson’s definition happening in front of you. The
width on its own is not symmetric, and the swap catches it out immediately. The sum and the product are
symmetric, and the swap has no grip on them. Try any other pair and its mirror, 2 and 7, or 5 and
6. The two readouts hold still under every such swap, while the description of the shape does not.
Rectangle explorer
Width3Height4
A rectangle 3 units wide and 4 units tall.
Perimeter 14 units.
Area 12 square units.
A rectangle resized a square at a time, reporting its width and height and then its perimeter and its area. The area is the product of the two sides and the perimeter is twice their sum, so those two readings are symmetric in the pair of sides while the width and the height taken singly are not.
Rewriting the standard symmetric expressions with s and p only#
Begin with x2+y2. Reaching for x and y one at a time is tempting, but the square of the sum
already carries both squares inside it:
(x+y)2=x2+2xy+y2.
The left side is s2 and the middle term is 2p, so subtracting 2p from each side isolates exactly
what we wanted:
x2+y2=s2−2p.
The reciprocals go the same way, provided neither x nor y is zero so that p is not zero either. Add the two fractions over a common denominator, and the numerator is
the sum while the denominator is the product:
x1+y1=xyy+x=ps.
For the sum of cubes, cube the sum and watch the cross terms gather:
(x+y)3=x3+3x2y+3xy2+y3=x3+y3+3xy(x+y).
The last piece is 3p⋅s and the left side is s3, so moving that piece across gives
x3+y3=s3−3ps.
One case deserves its own line because it looks like it should break the pattern. The difference x−y
is not symmetric: swapping the letters turns it into y−x, the negative of what you began with. Yet
its square is symmetric, because squaring erases the sign, and it too reduces to s and p:
(x−y)2=(x+y)2−4xy=s2−4p.
That every one of these came out in terms of s and p alone is not a coincidence of the examples
chosen. Any symmetric polynomial in x and y can be written as a polynomial in s and p, with no trace of
x and y left behind. That statement is a genuine theorem, and proving it in full generality belongs
to a later study of symmetric functions. Here we will simply keep verifying it one expression at a time,
and it will never let us down.
∎
The same trick reapplies one level up. Setting a=x2 and b=y2 in a2+b2=(a+b)2−2ab gives x4+y4=(x2+y2)2−2(xy)2, which becomes (s2−2p)2−2p2 once you substitute the reduction above. Higher powers keep falling this way, each one leaning on the reductions already found.
Worked example 1Given x+y=5 and xy=3, find x2+y2 and x3+y3
Read off the two basic quantities: s=5 and p=3. Neither x nor y is known on its own, and
neither needs to be. Use the reduction for the sum of squares first:
x2+y2=s2−2p=52−2(3)=25−6=19.
Now the sum of cubes, taking care that the correction term carries a factor of s:
x3+y3=s3−3ps=53−3(3)(5)=125−45=80.
Both answers came without ever finding x or y separately, which is the point. The symmetric totals
were all the expressions needed.
Check your understanding
If x+y=6 and xy=4, what is x2+y2?
Use x2+y2=s2−2p with s=6 and p=4.
x2+y2=62−2(4)=36−8=28
The common slip is s2+2p=44; the cross term 2xy is subtracted, not added.
Turning a symmetric system into one quadratic
The sum and product are useful for evaluating, but their real power shows up when you have to solve. In
the sums and products of roots lesson you learned that a monic quadratic t2−st+p=0 has two roots
that add to s and multiply to p. Read that fact backward. If you are handed the sum s and the
product p of two unknown numbers, then those two numbers are exactly the roots of t2−st+p=0.
A symmetric system in x and y has become a single quadratic in t.
Worked example 2Solve the system x+y=5, xy=6
The two unknowns have sum s=5 and product p=6, so they are the roots of
t2−st+p=0⟹t2−5t+6=0.
Factor the quadratic:
t2−5t+6=(t−2)(t−3)=0,
so the roots are t=2 and t=3. The pair of numbers with sum 5 and product 6 is therefore
{2,3}: either x=2 and y=3, or x=3 and y=2. Two equations that both mixed x and y
together were untangled by a single quadratic.
Look carefully at what that answer does and does not say. Solving for s and p hands back the
unordered pair {2,3}, and never a label announcing which number is x and which is y. That is not
a defect of the method. The system you started with, x+y=5 together with xy=6, is itself
symmetric: it reads exactly the same after you swap x and y. A problem that cannot tell the two
apart cannot possibly have an answer that does. Its solutions are therefore forced to come in swapped
pairs, here (2,3) and (3,2). The method returns precisely what the problem determines, no more and no less.
The same pair s and p also settles, at a glance, whether x and y are real at all. Since
(x−y)2=s2−4p and the square of a real number is never negative, a real pair exists exactly when
s2≥4p. When s2<4p the two numbers still exist, but they form a complex conjugate pair of the
kind from the complex numbers chapter. Every worked example and exercise in this lesson keeps
s2≥4p, so the pairs stay real.
Often a system is symmetric without handing you s and p directly. The move then is to reduce whatever
you are given to s and p first, using the identities from the previous section, and only then build
the quadratic.
Worked example 3Solve the system x+y=6, x2+y2=20
The sum is given outright, s=6, but the product is not. Recover it from the reduction
x2+y2=s2−2p, which rearranges to give p once the other two quantities are known:
20=62−2p⟹2p=36−20=16⟹p=8.
Now the system is in standard form with s=6 and p=8, so x and y are the roots of
t2−6t+8=0⟹(t−2)(t−4)=0.
The pair is {2,4}. Check it against both original equations: 2+4=6, and
22+42=4+16=20. Both hold, so {x,y}={2,4}.
Check your understanding
For the system x+y=7 and xy=12, what is the pair {x,y}?
The two numbers with sum s=7 and product p=12 are the roots of t2−st+p=0.
t2−7t+12=0⟹(t−3)(t−4)=0
So {x,y}={3,4}. Asking for the unordered pair sidesteps the fact that (x,y) could be (3,4) or (4,3); both are solutions.
Pairing a number with its reciprocal
A close cousin of the two-variable story appears with a single variable, whenever a problem pairs x
with its reciprocal x1. For any nonzero x, set
k=x+x1.
This is the sum-and-product idea with the product already fixed, because x⋅x1=1, so
here p=1 automatically. Every power sum in x and x1 therefore reduces to k alone,
exactly as the two-variable sums reduced to s and p.
Square k and watch the middle term collapse, since x times x1 is 1:
(x+x1)2=x2+2⋅x⋅x1+x21=x2+x21+2,
so subtracting 2 from each side gives
x2+x21=k2−2.
Cube k and the same cancellation groups the cross terms into another copy of k:
(x+x1)3=x3+3x+x3+x31=x3+x31+3(x+x1),
which rearranges to
x3+x31=k3−3k.
These are the two-variable identities s2−2p and s3−3ps with p=1, so nothing new had to be
memorized.
Worked example 4Given x+x1=4, find x2+x21 and x3+x31
Here k=4. Apply the two reductions in turn. First the squares:
x2+x21=k2−2=42−2=14.
Then the cubes, using k3−3k:
x3+x31=k3−3k=43−3(4)=64−12=52.
As with the two-variable examples, the individual value of x was never needed. Knowing the one
symmetric quantity k was enough to reach both answers.
Palindromic equations
The reciprocal pairing is precisely what cracks a whole family of high-degree equations that would
otherwise demand machinery you do not have. Look at the coefficients of
2x4−9x3+14x2−9x+2=0.
Read left to right they are 2,−9,14,−9,2, and read right to left they are the very same list. An
equation whose coefficients form a palindrome is called a reciprocal or palindromic equation,
and that mirror in the coefficients is a symmetry you can trade on.
Worked example 5Solve 2x4−9x3+14x2−9x+2=0
First confirm that x=0 is not a root, so that dividing by a power of x loses nothing. Putting
x=0 into the left side gives 2, not 0, so zero is safely not a solution. Divide every term by
x2, the middle power:
2x2−9x+14−x9+x22=0.
Now group the terms that mirror each other, the x2 with the x21 and the x with the
x1:
2(x2+x21)−9(x+x1)+14=0.
The substitution u=x+x1 now takes over, with x2+x21=u2−2 from the
previous section:
2(u2−2)−9u+14=0⟹2u2−9u+10=0.
The quartic has become a quadratic. Factor it:
2u2−9u+10=(2u−5)(u−2)=0,
so u=25 or u=2. Each value of u is a value of x+x1, so back-substitute
and clear the fraction by multiplying through by x. For u=25:
x+x1=25⟹2x2−5x+2=0⟹(2x−1)(x−2)=0,
giving x=21 or x=2. For u=2:
x+x1=2⟹x2−2x+1=0⟹(x−1)2=0,
giving x=1 as a double root. The four roots are 2, 21, 1, and 1. A quick check
confirms the two easy ones: at x=2,
2(16)−9(8)+14(4)−9(2)+2=32−72+56−18+2=0,
and at x=1, 2−9+14−9+2=0. Notice the shape of the answer. The roots fall into reciprocal
pairs, 2 with 21, and 1 paired with itself since 1 is its own reciprocal. That is the
coefficient symmetry reappearing in the solution: if r is a root of a palindromic equation, then
r1 is a root as well. A fourth-degree equation fell to a quadratic, with no quartic formula in
sight, purely because it was symmetric.
The axis of symmetry
Symmetry has been a tool for solving so far. It is also the explanation behind a formula you have leaned
on since you first met the quadratic formula. The two roots of ax2+bx+c=0 are
x=2a−b−b2−4acandx=2a−b+b2−4ac.
The only difference between them is the sign in front of the square root. That means one root sits as far
below 2a−b as the other sits above it, so the two roots are mirror images across the vertical
line x=−2ab. Their midpoint is the average of the two, and adding them makes the
±⋅ cancel outright:
So the line x=−2ab is the axis of symmetry of the parabola, lying exactly halfway between the
roots, and the vertex rides on that line. This is why the vertex sits at x=−2ab: it is not a
separate fact to memorize but the midpoint of the two mirror-image roots. The square root measures how
far each root strays from that midpoint.
The two roots of a quadratic sit mirrored across the vertical line x equals negative b over 2a. Because the roots differ only by the plus-or-minus square root in the quadratic formula, they lie the same distance d on either side of that line, so the line is the axis of symmetry and the vertex rides on it, exactly halfway between the roots.
You have used this reflect-and-pair trick once before without naming it. In the arithmetic series lesson,
Gauss added 1+2+⋯+n by writing the sum forwards and backwards and pairing each term with its
mirror. That pairing works because the first term plus the last, the second plus the second-to-last, and
so on all share the same total n+1. Pairing all n terms that way gives n(n+1) for twice the sum,
so the sum is 2n(n+1). The pairing worked for the same reason the quartic did: the
arrangement reads the same forwards and backwards. A reflection that leaves the whole thing unchanged is
exactly a symmetry to exploit.
Common mistakes
Practice
Multiple Choice Questions (MCQ)
Progressively harder sets of questions. Each opens on its own page.
Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its
own so you can check yourself and try again, then the full worked solution, plus a rubric
to mark your own work against.
By the middle of the seventeen hundreds one question had been open for two centuries. Equations of
degree two, three and four could each be cracked by a formula. Degree five refused, and nobody could
say why. Every fresh trick worked on the old cases and then died on the fifth.
In 1770 Joseph-Louis Lagrange stopped hunting for a trick. He turned the question around and asked why
the old ones had ever worked. His answer was about swapping.
Take the roots of an equation and shuffle them among themselves. Some expressions in the roots come
through every shuffle untouched, the way x+y and xy come through a swap of the two letters.
Lagrange showed that those survivors, and only those, can be built from the coefficients. An equation
knows its roots as a set, never which root is which.
That reframes solving as a hunt for whatever the shuffling cannot disturb, and it explains the old
failures. A quadratic has just two roots, so a shuffle has almost nothing to break and nearly
everything survives. Higher up the shuffles grow richer and far less comes through, and at degree five
his own method stalled where every earlier one had. He had not proved a formula impossible. He had
shown where to look.
Your swap is the smallest case of that machinery. You exchanged x and y, watched s and p refuse
to move, and solved the whole system through them.