Theory and applications of the stress density