Chemical and x-ray analysis