Maximize ((1 + q)^x - 1)/(q + q^x) where x >= 1