Use . The two defining relators say that commutes with , hence is central. The given group commutator identities give
Consequently a word collection in a two-step nilpotent group algorithm maintains an integer triple , initially . Reading , with , changes it to ; reading changes it to . Each step uses the displayed multiplication rule and reads one letter, so it terminates and produces the requested expression.
By the stipulated uniqueness, the word is trivial exactly when , which solves its word problem for a group. Moreover the commutator subgroup is : the quotient by is abelian, and itself is a commutator. It is central, so the nilpotency class is at most two. Uniqueness also implies , since and are distinct triples. Hence the exact nilpotency class is .
The class-two qualifier is essential: the presentation is in the variety of two-step nilpotent groups, so is included. Use the group commutator convention and put . Centrality and the allowed commutator identities give , so an ordinary finite presentation of the same group is
The commutator subgroup is generated by : modulo it the two generators commute, and centrality makes its normal closure simply its cyclic subgroup. To prove that has exactly order three and that no hidden relations remain, construct the group on triples
The bilinear cross term makes multiplication associative: both bracketings contribute to the last coordinate. The identity is and the inverse is . The elements and have central commutator of order three, and generate .
Conversely permits word collection in a two-step nilpotent group, expressing every element as with taken modulo three. The map , , sends that collected word to . Equality of such coordinates is therefore necessary as well as sufficient. This proves the unique normal form and the requested finite presentations:
To solve the word problem for a group, first total the exponents of and ; they give the quotient coordinates . If either is nonzero, the word is nonidentity. For the central coordinate, scan the word maintaining initially zero. Reading changes to , while reading changes to , with . Reduce modulo three. Hence
For example, , whereas . Both examples have zero abelian quotient coordinates; the second finite presentation detects their different central coordinates. The displayed one-relator presentation without the class-two laws would be a different group.