Use integral homology groups. The sphere is ; each disk meets in its boundary circle, while . In particular, the two disks also meet away from the sphere. These spaces have compatible triangulations, so the Mayer–Vietoris sequence applies to their unions as subcomplexes; equivalently use small regular open neighborhoods with the same homotopy types.
First let . Its intersection is , and is contractible. The Mayer–Vietoris sequence gives
For example, the degree-two portion is , and the map from into is injective.
Now . It has and . Exactness gives and
This sequence splits: lift a generator of the quotient and extend its lift by integer multiples. Hence . In degree one the sequence becomes
The middle map has kernel generated by and cokernel . There are no higher groups, either by the same sequence or by the three-dimensional triangulation. Thus the homology of two disks meeting inside a sphere gives
The first-homology generator records a path from the sphere to the common interior point through one disk and back through the other; omitting that interior intersection would incorrectly remove this generator.