Number the letters A=0 … Z=25. The affine cipher multiplies each number by a, adds b, and wraps round 26:
E(x) = (a·x + b) mod 26
The Caesar shift is the special case a = 1. Multiplying scatters the letters, so neighbours in the alphabet end up far apart.