Call the two proposed matrices and . Direct multiplication gives , , and . Both are invertible since . They therefore satisfy every defining relation, and the universal property of a group presentation gives the desired group representation.
Because the generating sets are disjoint, the free product has the presentation
This is immediate from the universal property of a group presentation: a map out of this presented group is exactly a pair of homomorphisms from and to the target group.