Based on the collapse characteristics of a shallow rectangular cavity, a three-dimensional failure mechanism which can be used to study the collapsing region of the rock mass above a shallow cavity roof is constructed. Considering the effects of surcharge pressure and surface bolt on the collapsing block, the external rate of works produced by surcharge pressure and surface bolt are included in the energy dissipation calculation. Using variational approach, an analytic expression of surface equation for the collapsing block, which can be used t...