We have employed near-uv second-derivative spectra of DNA, N-acetyl-l-tryptophanamide, N-acetyl-l-tyrosinamide, N-acetyl-l-phenylalanine ethyl ester, and phenol in a matrix least-squares multicomponent analysis algorithm to detect the presence of tryptophan, tyrosine, phenylalanine, and/or phenol in DNA preparations. With this method, each of these compounds can be detected in a DNA sample (absorbance, 0.1) at absorbance levels of less than 0.002. In practice, the presence of proteins can be detected at absorbance levels of less than 0.003. Using second-derivative spectra of proteins, contents of mixtures of proteins and DNA can be determined with less than 1% error. Mixtures of DNA and RNA can also be quantitatively analyzed with an error of approximately 2%. This technique can be easily implemented with computer-controlled spectrophotometers equipped with standard spectral analysis software. With prerecorded standard spectra, the time of analysis does not exceed a few seconds. © 1992.