Exact solution of a ratchet with switching sawtooth potential.