On this concept: Formula

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

Math · Algebra Fundamentals · Grade 6-8

Algebraic Symmetry

Algebraic symmetry means swapping variables leaves an expression unchanged: x2+y2 is symmetric, x2+xy is not.

f(x,y)=f(y,x) means f is symmetric in x and y

Quick Answer

Algebraic symmetry means swapping variables leaves an expression unchanged: x2+y2 is symmetric, x2+xy is not. To test an expression, replace every x with y and every y with x at the same time, then compare the result with the original. Symmetry saves work: if (2,3) solves a symmetric equation, so does (3,2), and a symmetric formula, like the area lw of a rectangle, gives the same answer whichever side you call the length.

Why This Matters

Symmetry gives you two answers for the price of one and catches errors for free. If x+y=10 and xy=21 give x=3, y=7, symmetry hands you x=7, y=3 without solving again. And if a formula for something symmetric, such as the perimeter of a rectangle, changes when you swap length and width, the formula is wrong.

Intuitive Explanation

Two friends, Xavi and Yuki, share a pizza bill. "Xavi's share plus Yuki's share" is the same total whichever name you say first. Swap the names and the phrase means exactly the same thing. That is symmetry: in x+y or xy, swapping x and y gives back the same expression. "Xavi's share minus Yuki's share" is different. Swap the names and the answer changes sign, so x−y is not symmetric.

To test an expression, swap every x for y and every y for x at the same time, then tidy up and compare. For x2+y2 the swap gives y2+x2, the same sum in a different order. For x2+xy the swap gives y2+yx. Try x=1, y=2: the original is 1+2=3, while the swapped version is 4+2=6. They differ, so x2+xy is not symmetric, even though both letters appear in it.

Symmetry belongs to a whole expression, not to a single operation. The commutative law a+b=b+a is a rule about adding two numbers; symmetry asks whether a longer expression, such as x2y+xy2, survives the swap as a whole. It also differs from the mirror symmetry of a shape, though the two are linked: the graph of a symmetric equation in x and y is its own mirror image across the line y=x.

Think of it like this. Symmetry in algebra works like a handshake: "Alex shook hands with Sam" and "Sam shook hands with Alex" describe the same event. "Alex passed the ball to Sam" changes meaning when the names swap, just as x−y and x2+xy do. In both cases the test is the same: switch the names and ask whether anything changed.

Core idea. An expression is symmetric if exchanging its variables leaves it identical.


When to Use

Check for symmetry when two variables play matching roles: length and width, two numbers with a given sum and product, two people sharing equally. If the expression survives the swap, every solution (a,b) comes with a partner (b,a), and a formula that should be symmetric can be checked by swapping. If you are only reordering a single sum or product, that is the commutative property; if you replace x with −x, you are testing for an even function.

Tip. Ask: If I swap the two variables, do I get back the exact same expression?

How to Recognize It

Look at the two letters in the problem and whether they play the same role in the story or the formula.

  1. Do the two quantities do the same job, like two side lengths or two numbers with a given sum?

    Then the expression is probably symmetric, and every answer (a,b) comes with a partner (b,a). Quantities with different jobs, like the base and the exponent in ab, usually are not: 23=8 but 32=9.

  2. After trading the letters, does every term still appear, perhaps in a different order?

    xy+x+y becomes yx+y+x, the same terms, so it is symmetric. x2y becomes y2x, a different term, so x2y+y is not. Reordering inside one product is just the commutative property at work.

  3. Is the change replacing x with −x, rather than trading two letters?

    That is a one-letter test for an even function: x2+1 passes because (−x)2+1=x2+1. Symmetry in this lesson needs two letters to change places.

  4. Is the question about a picture, such as a shape or a graph, rather than an expression?

    Mirror and turning symmetry of figures is geometric symmetry. The two meet in one place: a symmetric equation in x and y, like x+y=4, has a graph that is its own reflection in the line y=x.

Algebraic Symmetry compared with Commutative property, Geometric symmetry, and Even function

All four rows describe something unchanged by a swap or a flip. Ask what is swapped: two letters in an expression (algebraic symmetry), the two inputs of one operation (commutative property), parts of a picture (geometric symmetry), or x for −x (even function).

Algebraic Symmetry

Meaning
Use this when you want to know whether swapping two variables leaves an expression unchanged.
Key test
If I swap the two variables, do I get back the exact same expression?
Formula
f(x,y)=f(y,x) means f is symmetric in x and y
Example
Is xy+x+y symmetric in x and y?

Commutative property

Meaning
An operation rule (a+b=b+a) about reordering operands, not an expression's invariance.
Key test
Use when justifying that addition/multiplication can be reordered.
Formula
a+b=b+a
Example
Reorder a sum

Geometric symmetry

Meaning
Mirror/rotational sameness of a shape, not of an algebraic expression.
Key test
Use for figures and graphs, not variable-swaps.
Example
Square's reflection

Even function

Meaning
Invariance under x→−x in one variable, not swapping two variables.
Key test
Use when checking f(−x)=f(x), not f(x,y)=f(y,x).
Formula
f(−x)=f(x)
Example
x2 is even

Formula & Notation

f(x,y)=f(y,x) means f is symmetric in x and y
A function f:Rn→R is symmetric if f(xσ(1),…,xσ(n))=f(x1,…,xn) for every permutation σ∈Sn. For two variables: f(x,y)=f(y,x)  ∀ x,y∈R.

How to read it: An expression is symmetric if swapping variables leaves it unchanged. x2+y2 is symmetric; x2+xy is not.

Worked Examples

Example 1 — Test for symmetry

Easy

Is xy+x+y symmetric in x and y?
Show the steps and the answer
  1. Swap every x for y and every y for x: yx+y+x.

    The swap must happen everywhere at once, so no term keeps its old letter.

  2. Reorder: yx=xy and y+x=x+y, so the result is xy+x+y.

    Ordinary reordering of the product and the sum shows the swapped expression equals the original.

  3. Test numbers: x=2, y=5 gives 10+2+5=17; x=5, y=2 gives 10+5+2=17.

    The two orders give the same value, as a symmetric expression must.

Answer: Yes, symmetric

Takeaway: Swap every letter at once, tidy up, and compare; if you get the original back, the expression is symmetric.

Example 2 — Looks symmetric, isn't

Standard

Is x2+xy symmetric in x and y?
Show the steps and the answer
  1. Swap the letters: y2+yx.

    Every x becomes y and every y becomes x.

  2. Compare: the xy term matches, but x2 has become y2.

    One term surviving the swap is not enough; every term has to.

  3. Confirm with numbers: x=1, y=2 gives 1+2=3, but x=2, y=1 gives 4+2=6.

    Swapping the inputs changed the value, which proves the expression is not symmetric.

Answer: No — not symmetric

Takeaway: Containing both letters does not make an expression symmetric; a term like x2 with no partner y2 breaks it.

Example 3 — Find the mistake: checking only some terms

Application

Ben says x2y+xy2+x is symmetric because "swapping turns x2y into y2x and xy2 into yx2, and those are the same two terms." Find the mistake and correct it.
Show the steps and the answer
  1. Swap every term, including the last: y2x+yx2+y.

    Ben checked the first two terms and skipped the +x.

  2. Compare: the first two terms match the original, but +x has become +y.

    The whole expression must survive the swap, so one changed term is enough to break symmetry.

  3. Test numbers: x=1, y=2 gives 2+4+1=7; x=2, y=1 gives 4+2+2=8.

    The two values differ, so the expression is not symmetric.

  4. Repair it if symmetry is wanted: x2y+xy2+x+y.

    Adding the partner term +y gives every term a match after the swap.

Answer: Not symmetric: the +x becomes +y. Adding +y gives the symmetric expression x2y+xy2+x+y.

Takeaway: Check every term under the swap; a single unmatched term breaks symmetry.

Where You'll See It

  • Fencing a rectangular pen

    Area lw and perimeter 2l+2w are both symmetric in l and w, so a 3 m by 8 m pen and an 8 m by 3 m pen need the same 22 m of fence and enclose the same 24 m². If l+w=10 and lw=21 give a 3-by-7 pen, the swap gives 7-by-3, the same pen turned round.

  • Handshakes between two teams

    When a team of a players shakes hands with a team of b players, each pair shakes once, giving ab handshakes. The formula is symmetric: 5 players meeting 8 gives 40 handshakes, the same as 8 meeting 5, because every handshake has one person from each side.

  • Settling up after a shared trip

    If Ana spent a dollars and Bo spent b dollars on a shared trip, the total a+b is symmetric, but what Ana owes Bo, b−a2, is not: swapping the names flips the sign and the direction of the debt. With $30 and $50, Ana owes Bo $10.

Common Mistakes

  1. The slip: Assuming any expression with both variables is symmetric

    Instead: actually swap and compare; x2+xy fails.

  2. The slip: Confusing symmetry with the commutative property

    Instead: symmetry is about an expression's invariance, not an operation's reordering.

  3. The slip: Checking only one term

    Instead: every term must survive the swap for the whole expression to be symmetric.


Mini Practice

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

  1. Is x−y symmetric in x and y? Test with x=5 and y=2.

    Hint: Swap the values and compare the two results.

  2. Swap x and y in x2+y2+3. Is the expression symmetric?

    Hint: Write the new expression and compare it term by term.

  3. Is x2y+xy2 symmetric in x and y? Check by swapping, then test with (1,2) and (2,1).

    Hint: After swapping, see whether each term matches a term in the original.

  4. Let f(x,y)=x2+xy+y2. Check that f(3,7)=79, then find f(7,3) without working it out again.

    Hint: What happens to this expression when x and y trade places?

  5. Fact A: 4+9=9+4. Fact B: the expression a2+b2+ab stays the same when a and b swap. Which describes the commutative property, and which describes algebraic symmetry?

    Hint: One fact is about an operation; the other is about a whole expression.

  6. Mia checks whether x2+2y+xy is symmetric. She notices xy becomes yx, the same, and says yes. Is she right?

    Hint: Swap the letters in every term, not just one.

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

Is x−y symmetric if I take its absolute value?

Yes. x−yx-y itself is not symmetric, because trading the letters gives y−xy-x, its opposite. But ∣x−y∣|x-y| and (x−y)2(x-y)^2 are symmetric: ∣2−5∣=∣5−2∣=3|2-5|=|5-2|=3, and both squares are 9. That is why the distance between two numbers on a number line, ∣a−b∣|a-b|, does not depend on which number you start from.

Can an expression in three letters be symmetric?

Yes, if it survives every swap of two letters. a+b+ca+b+c and abcabc pass: swap any pair and nothing changes. ab+bcab+bc fails. Swapping aa and cc gives cb+bacb+ba, the same thing, but swapping aa and bb gives ba+acba+ac, which is different. The perimeter of a triangle with sides aa, bb, cc should be symmetric, and a+b+ca+b+c is.

How does symmetry help me check a formula?

If a formula should not care which quantity is named first, it must be symmetric, and one that is not contains a mistake. The area of a rectangle is lwlw; if your working gave l2wl^2w, swapping produces w2lw^2l, a different value, so something went wrong. Scientists use the same check on formulas for two objects that play equal parts, such as two masses attracting each other.

Do symmetric equations always have solutions in pairs?

Their solutions come in swapped pairs, but a pair can collapse into one point. For x+y=6x+y=6 and xy=9xy=9, the only solution is (3,3)(3,3), which swaps into itself. So a symmetric system can have an odd number of solutions, as long as the odd ones out have equal coordinates. Solutions with x≠yx\ne y always come in twos.

Learning Path

← Before

Expressions
Algebraic Symmetry

You are here

You need Expressions (reading and evaluating terms like x2y) first. Algebraic symmetry adds a test, swap the variables and compare, and the payoff that symmetric equations come with paired solutions. Next, Symmetric Functions build expressions such as x+y and xy that stay fixed under every swap, and Invariants study quantities that stay the same under other kinds of change.

See Also