A rotary flexible shaft for coupling between driving and driven member having female couplings has ends of noncircular cross-section. A neck portion case bottom and a neck portion case sidewall off further provided. In another aspect, a PDM output circuit includes a PDM modulator that uses variable reference voltages to reduce variations in switching frequency.