There is no specific formula. They contain surfactants that reduce the surface tension of water. Most of these are anionic surfactants (negatively charged) to pick up metal ions.
The ingredients that the liquid detergent is made from are its chemical composition. For instance, liquid Cheer is made of biodegradable surfactants (anionic and nonionic) and enzymes.