The total energy of a system of point charges is the energy required to assemble the system. For example, if you have three charges Q1, Q2, Q3 then the total energy is
U=Q2V12 + Q3V13 + Q3V23 where V12 is the potential at particle 2 due to charge 1.
An electric dipole, dipole moment p placed in an electric
field E has a potential energy
U = -p•E and a torque τ=p×E
In addition to its integral form, Gauss's Law can be expressed in differential
form as
∇•E = ρ
ε0
which allows you to compute the charge density ρ causing a particular field.