Both displayed matrices have determinant one and integer entries, so the generated group lies in . For any nonidentity matrix , some entry of is a nonzero integer . Choose a prime number not dividing . The reduction modulo a prime in an integral matrix group gives a group homomorphism
to a finite group in which is nonidentity. No determination of the abstract subgroup generated by the two matrices is needed.
Use the injective group homomorphism from part (a). If , its image is an integral matrix . Choose a prime number that does not divide one nonzero entry of . The reduction modulo a prime in an integral matrix group homomorphism
then sends to a nonidentity element. Its target is a finite group, so the composite map separates from the identity. Hence is a residually finite group.
Every finitely generated free group is a residually finite group. For , the ping-pong lemma embeds it into , and reduction modulo a prime in an integral matrix group separates each nonidentity element in a finite quotient.