The basic function of an inverter is to change DC (which flows in one direction) to AC (which periodically reverses direction). Inverters achieve this by using electronic circuits to switch the direction of current flow, typically at a rapid rate, to mimic the sinusoidal wave of AC power.