In math, a group is a particular collection of elements. That might be a set of integers, the face of a Rubikās cubeāwhich weāll simplify to a 2x2 square for nowā or anything, so long as they follow 4 specific rules, or axioms.
Axiom 1: All group operations must be closed, or restricted, to only group elements. So in our square, for any operation you doālike turn it one way or the otherāyouāll still wind up with an element of the group. Or for integers, if we add 3 and 2, that gives us 1ā4 and 5 arenāt members of the group, so we roll around back to 0, similar to how 2 hours past 11 is 1 oāclock.
Axiom 2: If we regroup the order of the elements in an operation, we get the same result. In other words, if we turn our square right two times, then right once, thatās the same as once, then twice. Or for numbers, 1+(1+1) is the same as (1+1)+1.
Axiom 3: For every operation, thereās an element of our ground called the identity. When we apply it to any other element in our group, we still get that element. So for both turning the square and adding integers, our identity here is 0. Not very exciting.
Axiom 4: Ā Every group element has an element called its inverse, also in the group. When the two are brought together using groupās addition operation, they result in the identity element, 0. So they can be thought of as cancelling each other out. Here 3 and 1 are each otherās inverses, while 2 and 0 are their own worst enemies.
So thatās all well and good, but whatās the point of any of it? Well, when we get beyond these basic rules, some interesting properties emerge. For example, letās expand our square back into a full-fledged Rubikās cube. This is still a group that satisfies all of our axioms, though now with considerably more elements, and more operationsāwe can turn each row and column of each face.
Each position is called a permutation, and the more elements a group has, the more possible permutations there are. A Rubikās cube has more than 43 quintillion permutations, so trying to solve it randomly isnāt going to work so well. However, using group theory we can analyze the cube and determine a sequence of permutations that will result in a solution. And, in fact, thatās exactly what most solvers do, even using a group theory notation indicating turns.
From the TED-Ed Lesson Group theory 101: How to play a Rubikās Cube like a piano - Michael Staff