The yield ratios of negatively to positively charged pions ( π − / π + ), negatively to positively charged kaons ( K − / K + ), and anti-protons to protons ( p ¯ / p ) produced in mid-rapidity interval in central gold-gold (Au-Au) collisions, central lead-lead (Pb-Pb) collisions, and inelastic (INEL) or non-single-diffractive (NSD) proton-proton ( p p ) collisions, as well as in forward rapidity region in INEL p p collisions are analyzed in the present work. Over an energy range from a few GeV to above 10 TeV, the chemical potentials of light flavor particles (pion, kaon, and proton) and quarks (up, down, and strange quarks) are extracted from the mentioned yield ratios in which the contributions of strong decay from high-mass resonance and weak decay from heavy flavor hadrons are removed. Most energy dependent chemical potentials show the maximum at about 4 GeV, while the energy dependent yield ratios do not show such an extremum.