In Median XL, direct damage spells gain a damage bonus from energy. This bonus has diminishing returns: the damage gained per additional point of energy is lower if you already have lots of energy to begin with.
The spell focus bonus provides an additional benefit regardless of your energy. Spell focus is particularly effective for high level characters with most or all points into energy.
The formula used to calculate the bonus from energy and spell focus to spell damage is: