DXA works by emitting two X-ray beams at different energy levels through the bone. The differential absorption of these beams by bone and soft tissues allows for the calculation of bone density. The data collected is then processed to produce images and numerical values that represent the bone's mineral content. This information is crucial for evaluating conditions like osteopenia and osteoporosis.