Given points are \(A(-1, 3)\) and \(C(3, -1)\).
The slope of line \(AC\) is given by
\[ m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{-1 - 3}{3 + 1} = -1. \]
Using the point-slope form equation for line \(AC\) passing through point \(A(-1, 3)\):
\[ y - 3 = -1(x + 1) \implies x + y = 2. \]
To find the equation of a line parallel to \(AC\) but shifted inward by a unit distance, we utilize the formula for the distance between parallel lines.
For a line of the form \(ax + by + c = 0\), a parallel line shifted by a perpendicular distance \(d\) is given by modifying the constant term:
\[ |d| = \frac{|c_1 - c_2|}{\sqrt{a^2 + b^2}}. \]
For the given line \(x + y = 2\),
the equation of a parallel line shifted inward by a distance \(\sqrt{2}\) becomes:
\[ x + y = 2 - \sqrt{2}. \]

In the first configuration (1) as shown in the figure, four identical charges \( q_0 \) are kept at the corners A, B, C and D of square of side length \( a \). In the second configuration (2), the same charges are shifted to mid points C, E, H, and F of the square. If \( K = \frac{1}{4\pi \epsilon_0} \), the difference between the potential energies of configuration (2) and (1) is given by: