This site is a work in progress. New lessons are added regularly. Contact us

Using Symmetry

Learning goals

  • Test symmetry by swapping xx and yy
  • Rewrite any symmetric polynomial in the sum and product
  • Convert a symmetric system into t2st+p=0t^2 - st + p = 0
  • Require s24ps^2 \ge 4p for a real pair
  • Substitute u=x+1xu = x + \tfrac{1}{x} 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 xx for a yy and every yy for an xx; if what you get is identical to what you started with, the expression is symmetric.

The sum x+yx + y passes the test, since swapping gives y+xy + x, the same number. The product xyxy passes, since swapping gives yxyx. So does x2+y2x^2 + y^2, and so does 1x+1y\frac{1}{x} + \frac{1}{y} (for nonzero xx and yy), which swaps into 1y+1x\frac{1}{y} + \frac{1}{x}. Now test two that fail. The difference xyx - y swaps into yxy - x, which is the opposite sign, not the same expression, so xyx - y is not symmetric. Neither is x2yx^2 y, which swaps into y2xy^2 x; those two agree only for special values of xx and yy, never as expressions.

Here is the leverage hidden in that plain definition. If an expression truly cannot tell xx from yy, 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 xx and yy?

Answer choices

Every symmetric expression is built from the sum and product

Fix two abbreviations once and for all: let s=x+ys = x + y be the sum and p=xyp = xy the product. Both are symmetric, since swapping xx and yy leaves x+yx + y and xyxy 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 ss and pp 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 xx and yy that you can perform and then look at.

Build 33 wide and 44 tall. The readout says perimeter 1414, area 1212, which is 2s2s and pp for the pair {3,4}\{3, 4\}. Now swap them, to 44 wide and 33 tall. The first half of the sentence changes, from ”33 units wide and 44 units tall” to ”44 units wide and 33 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, 22 and 77, or 55 and 66. The two readouts hold still under every such swap, while the description of the shape does not.

Rectangle explorer

A rectangle 3 units wide and 4 units tall. Perimeter 14 units. Area 12 square units. A rectangle drawn on a grid of unit squares, inside a dashed boundary showing how large it can grow. Use the controls below the figure to change either dimension and watch the perimeter and the area separately. 3 4
Width Height

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 ss and pp only#

Begin with x2+y2x^2 + y^2. Reaching for xx and yy one at a time is tempting, but the square of the sum already carries both squares inside it:

(x+y)2=x2+2xy+y2.(x + y)^2 = x^2 + 2xy + y^2.

The left side is s2s^2 and the middle term is 2p2p, so subtracting 2p2p from each side isolates exactly what we wanted:

x2+y2=s22p.x^2 + y^2 = s^2 - 2p.

The reciprocals go the same way, provided neither xx nor yy is zero so that pp is not zero either. Add the two fractions over a common denominator, and the numerator is the sum while the denominator is the product:

1x+1y=y+xxy=sp.\frac{1}{x} + \frac{1}{y} = \frac{y + x}{xy} = \frac{s}{p}.

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).(x + y)^3 = x^3 + 3x^2 y + 3x y^2 + y^3 = x^3 + y^3 + 3xy(x + y).

The last piece is 3ps3p \cdot s and the left side is s3s^3, so moving that piece across gives

x3+y3=s33ps.x^3 + y^3 = s^3 - 3ps.

One case deserves its own line because it looks like it should break the pattern. The difference xyx - y is not symmetric: swapping the letters turns it into yxy - x, the negative of what you began with. Yet its square is symmetric, because squaring erases the sign, and it too reduces to ss and pp:

(xy)2=(x+y)24xy=s24p.(x - y)^2 = (x + y)^2 - 4xy = s^2 - 4p.

That every one of these came out in terms of ss and pp alone is not a coincidence of the examples chosen. Any symmetric polynomial in xx and yy can be written as a polynomial in ss and pp, with no trace of xx and yy 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=x2a = x^2 and b=y2b = y^2 in a2+b2=(a+b)22aba^2 + b^2 = (a + b)^2 - 2ab gives x4+y4=(x2+y2)22(xy)2x^4 + y^4 = (x^2 + y^2)^2 - 2(xy)^2, which becomes (s22p)22p2(s^2 - 2p)^2 - 2p^2 once you substitute the reduction above. Higher powers keep falling this way, each one leaning on the reductions already found.

Worked example 1 Given x+y=5x + y = 5 and xy=3xy = 3, find x2+y2x^2 + y^2 and x3+y3x^3 + y^3

Read off the two basic quantities: s=5s = 5 and p=3p = 3. Neither xx nor yy is known on its own, and neither needs to be. Use the reduction for the sum of squares first:

x2+y2=s22p=522(3)=256=19.x^2 + y^2 = s^2 - 2p = 5^2 - 2(3) = 25 - 6 = 19.

Now the sum of cubes, taking care that the correction term carries a factor of ss:

x3+y3=s33ps=533(3)(5)=12545=80.x^3 + y^3 = s^3 - 3ps = 5^3 - 3(3)(5) = 125 - 45 = 80.

Both answers came without ever finding xx or yy separately, which is the point. The symmetric totals were all the expressions needed.

Check your understanding

If x+y=6x + y = 6 and xy=4xy = 4, what is x2+y2x^2 + y^2?

Answer choices

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 t2st+p=0t^2 - st + p = 0 has two roots that add to ss and multiply to pp. Read that fact backward. If you are handed the sum ss and the product pp of two unknown numbers, then those two numbers are exactly the roots of t2st+p=0t^2 - st + p = 0. A symmetric system in xx and yy has become a single quadratic in tt.

Worked example 2 Solve the system x+y=5x + y = 5, xy=6xy = 6

The two unknowns have sum s=5s = 5 and product p=6p = 6, so they are the roots of

t2st+p=0t25t+6=0.t^2 - st + p = 0 \quad\Longrightarrow\quad t^2 - 5t + 6 = 0.

Factor the quadratic:

t25t+6=(t2)(t3)=0,t^2 - 5t + 6 = (t - 2)(t - 3) = 0,

so the roots are t=2t = 2 and t=3t = 3. The pair of numbers with sum 55 and product 66 is therefore {2,3}\{2, 3\}: either x=2x = 2 and y=3y = 3, or x=3x = 3 and y=2y = 2. Two equations that both mixed xx and yy together were untangled by a single quadratic.

Look carefully at what that answer does and does not say. Solving for ss and pp hands back the unordered pair {2,3}\{2, 3\}, and never a label announcing which number is xx and which is yy. That is not a defect of the method. The system you started with, x+y=5x + y = 5 together with xy=6xy = 6, is itself symmetric: it reads exactly the same after you swap xx and yy. 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)(2, 3) and (3,2)(3, 2). The method returns precisely what the problem determines, no more and no less.

The same pair ss and pp also settles, at a glance, whether xx and yy are real at all. Since (xy)2=s24p(x - y)^2 = s^2 - 4p and the square of a real number is never negative, a real pair exists exactly when s24ps^2 \ge 4p. When s2<4ps^2 < 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 s24ps^2 \ge 4p, so the pairs stay real.

Often a system is symmetric without handing you ss and pp directly. The move then is to reduce whatever you are given to ss and pp first, using the identities from the previous section, and only then build the quadratic.

Worked example 3 Solve the system x+y=6x + y = 6, x2+y2=20x^2 + y^2 = 20

The sum is given outright, s=6s = 6, but the product is not. Recover it from the reduction x2+y2=s22px^2 + y^2 = s^2 - 2p, which rearranges to give pp once the other two quantities are known:

20=622p2p=3620=16p=8.20 = 6^2 - 2p \quad\Longrightarrow\quad 2p = 36 - 20 = 16 \quad\Longrightarrow\quad p = 8.

Now the system is in standard form with s=6s = 6 and p=8p = 8, so xx and yy are the roots of

t26t+8=0(t2)(t4)=0.t^2 - 6t + 8 = 0 \quad\Longrightarrow\quad (t - 2)(t - 4) = 0.

The pair is {2,4}\{2, 4\}. Check it against both original equations: 2+4=62 + 4 = 6, and 22+42=4+16=202^2 + 4^2 = 4 + 16 = 20. Both hold, so {x,y}={2,4}\{x, y\} = \{2, 4\}.

Check your understanding

For the system x+y=7x + y = 7 and xy=12xy = 12, what is the pair {x,y}\{x, y\}?

Answer choices

Pairing a number with its reciprocal

A close cousin of the two-variable story appears with a single variable, whenever a problem pairs xx with its reciprocal 1x\frac{1}{x}. For any nonzero xx, set

k=x+1x.k = x + \frac{1}{x}.

This is the sum-and-product idea with the product already fixed, because x1x=1x \cdot \frac{1}{x} = 1, so here p=1p = 1 automatically. Every power sum in xx and 1x\frac{1}{x} therefore reduces to kk alone, exactly as the two-variable sums reduced to ss and pp.

Square kk and watch the middle term collapse, since xx times 1x\frac{1}{x} is 11:

(x+1x)2=x2+2x1x+1x2=x2+1x2+2,\left(x + \frac{1}{x}\right)^2 = x^2 + 2 \cdot x \cdot \frac{1}{x} + \frac{1}{x^2} = x^2 + \frac{1}{x^2} + 2,

so subtracting 22 from each side gives

x2+1x2=k22.x^2 + \frac{1}{x^2} = k^2 - 2.

Cube kk and the same cancellation groups the cross terms into another copy of kk:

(x+1x)3=x3+3x+3x+1x3=x3+1x3+3(x+1x),\left(x + \frac{1}{x}\right)^3 = x^3 + 3x + \frac{3}{x} + \frac{1}{x^3} = x^3 + \frac{1}{x^3} + 3\left(x + \frac{1}{x}\right),

which rearranges to

x3+1x3=k33k.x^3 + \frac{1}{x^3} = k^3 - 3k.

These are the two-variable identities s22ps^2 - 2p and s33pss^3 - 3ps with p=1p = 1, so nothing new had to be memorized.

Worked example 4 Given x+1x=4x + \frac{1}{x} = 4, find x2+1x2x^2 + \frac{1}{x^2} and x3+1x3x^3 + \frac{1}{x^3}

Here k=4k = 4. Apply the two reductions in turn. First the squares:

x2+1x2=k22=422=14.x^2 + \frac{1}{x^2} = k^2 - 2 = 4^2 - 2 = 14.

Then the cubes, using k33kk^3 - 3k:

x3+1x3=k33k=433(4)=6412=52.x^3 + \frac{1}{x^3} = k^3 - 3k = 4^3 - 3(4) = 64 - 12 = 52.

As with the two-variable examples, the individual value of xx was never needed. Knowing the one symmetric quantity kk 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

2x49x3+14x29x+2=0.2x^4 - 9x^3 + 14x^2 - 9x + 2 = 0.

Read left to right they are 2,9,14,9,22, -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 5 Solve 2x49x3+14x29x+2=02x^4 - 9x^3 + 14x^2 - 9x + 2 = 0

First confirm that x=0x = 0 is not a root, so that dividing by a power of xx loses nothing. Putting x=0x = 0 into the left side gives 22, not 00, so zero is safely not a solution. Divide every term by x2x^2, the middle power:

2x29x+149x+2x2=0.2x^2 - 9x + 14 - \frac{9}{x} + \frac{2}{x^2} = 0.

Now group the terms that mirror each other, the x2x^2 with the 1x2\frac{1}{x^2} and the xx with the 1x\frac{1}{x}:

2(x2+1x2)9(x+1x)+14=0.2\left(x^2 + \frac{1}{x^2}\right) - 9\left(x + \frac{1}{x}\right) + 14 = 0.

The substitution u=x+1xu = x + \frac{1}{x} now takes over, with x2+1x2=u22x^2 + \frac{1}{x^2} = u^2 - 2 from the previous section:

2(u22)9u+14=02u29u+10=0.2(u^2 - 2) - 9u + 14 = 0 \quad\Longrightarrow\quad 2u^2 - 9u + 10 = 0.

The quartic has become a quadratic. Factor it:

2u29u+10=(2u5)(u2)=0,2u^2 - 9u + 10 = (2u - 5)(u - 2) = 0,

so u=52u = \frac{5}{2} or u=2u = 2. Each value of uu is a value of x+1xx + \frac{1}{x}, so back-substitute and clear the fraction by multiplying through by xx. For u=52u = \frac{5}{2}:

x+1x=522x25x+2=0(2x1)(x2)=0,x + \frac{1}{x} = \frac{5}{2} \quad\Longrightarrow\quad 2x^2 - 5x + 2 = 0 \quad\Longrightarrow\quad (2x - 1)(x - 2) = 0,

giving x=12x = \frac{1}{2} or x=2x = 2. For u=2u = 2:

x+1x=2x22x+1=0(x1)2=0,x + \frac{1}{x} = 2 \quad\Longrightarrow\quad x^2 - 2x + 1 = 0 \quad\Longrightarrow\quad (x - 1)^2 = 0,

giving x=1x = 1 as a double root. The four roots are 22, 12\frac{1}{2}, 11, and 11. A quick check confirms the two easy ones: at x=2x = 2,

2(16)9(8)+14(4)9(2)+2=3272+5618+2=0,2(16) - 9(8) + 14(4) - 9(2) + 2 = 32 - 72 + 56 - 18 + 2 = 0,

and at x=1x = 1, 29+149+2=02 - 9 + 14 - 9 + 2 = 0. Notice the shape of the answer. The roots fall into reciprocal pairs, 22 with 12\frac{1}{2}, and 11 paired with itself since 11 is its own reciprocal. That is the coefficient symmetry reappearing in the solution: if rr is a root of a palindromic equation, then 1r\frac{1}{r} 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=0ax^2 + bx + c = 0 are

x=bb24ac2aandx=b+b24ac2a.x = \frac{-b - \sqrt{b^2 - 4ac}}{2a} \qquad \text{and} \qquad x = \frac{-b + \sqrt{b^2 - 4ac}}{2a}.

The only difference between them is the sign in front of the square root. That means one root sits as far below b2a\frac{-b}{2a} as the other sits above it, so the two roots are mirror images across the vertical line x=b2ax = -\frac{b}{2a}. Their midpoint is the average of the two, and adding them makes the ±\pm\sqrt{\cdot} cancel outright:

12(bb24ac2a+b+b24ac2a)=122b2a=b2a.\frac{1}{2}\left(\frac{-b - \sqrt{b^2 - 4ac}}{2a} + \frac{-b + \sqrt{b^2 - 4ac}}{2a}\right) = \frac{1}{2} \cdot \frac{-2b}{2a} = -\frac{b}{2a}.

So the line x=b2ax = -\frac{b}{2a} 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=b2ax = -\frac{b}{2a}: 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 roots of a quadratic are mirror images across the axis x equals negative b over 2aAn upward-opening parabola meets the horizontal x-axis at a left root and a right root. A vertical dashed line through the vertex, labeled x equals negative b over 2a, lies midway between the roots. Two equal horizontal segments, each labeled d, join the line to the two roots, showing the roots are the same distance from the axis of symmetry.x = -b/2avertexddr₁r₂
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++n1 + 2 + \cdots + 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+1n + 1. Pairing all nn terms that way gives n(n+1)n(n + 1) for twice the sum, so the sum is n(n+1)2\frac{n(n + 1)}{2}. 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.

Free Response Questions (FRQ)

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.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

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+yx + y and xyxy 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 xx and yy, watched ss and pp refuse to move, and solved the whole system through them.