Analytical model of a Brownian motor with a fluctuating potential