Closed form solutions to localization conditions for rate-independent materials