method and apparatus for electrolytically controlling the formation of scale and biofilm in water purification and other systems . an anode is deposited on or disposed on or adjacent to a surface , such as that of a quartz uv tube , providing a low ph environment which inhibits the formation of carbonate scale and biofilm .