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.