Karyotyping involves the preparation and analysis of chromosomes from a cell sample. The chromosomes are stained, photographed, and arranged in a standard format known as a karyogram. This process allows scientists to observe the chromosomal composition of an individual, identifying anomalies such as extra or missing chromosomes, and structural abnormalities like translocations or inversions.