To calculate the electric dipole moment of a system, the formula \vec{p} = \sum_i q_i \vec{x_i} is used for discrete charge distributions, where \vec{x_i represents the position vectors of each charge from a chosen origin. For a more complex charge distribution, the dipole moment is defined as \int \rho(\vec{x})\,\vec{x}\,d^3x. An example involving three metal balls at the corners of an equilateral triangle can be solved by determining the position vectors of each charge and summing them. It's important to show your work for further assistance, especially if this is part of a homework assignment. Understanding these calculations is crucial for accurately determining the dipole moment's magnitude and direction.