Dynamic spectrum leasing can greatly enhance the spectrum efficiency and encourage more flexible services in the spectrum market. This paper presents a detailed analytical study of the strategic interactions of two competing secondary network operators (duopoly) who need to make optimal investment (leasing) and pricing decisions while taking secondary endusers' heterogeneous wireless characteristics into consideration. The operators need to determine how much to lease from the spectrum owner, and compete to sell the spectrum to secondary users to maximize their individual profits. We model the system as a three-stage multi-leader dynamic game. Both the operators' equilibrium investment and pricing decisions turn out to have nice threshold properties. Each secondary user receives a fair equilibrium resource allocation that only depends on the leasing cost of the operators and is independent of other users' channel conditions and transmission powers. To further understand ...