An analytical approach to activating demand elasticity with a demand response mechanism