The yellow box shows an approximation:  The R term is a squared deviation from the ideal target.   The more complex form shown in the first math slide allows us to split that deviation into a shape term (wrong shape) and an offset term (too high/too low).   Those two terms can have different weights.