I understand that the magnetic field produced by a single Helmholtz coil is approximately :
$$B=N\frac{\mu_0IR^2}{2(R^2+x^2)^{3/2}}$$
Where $x$ is the distance from the centre of the coil to the point of interest along the central axis of the coil, R is the radius of the coil, N is the number of turns in the coil, I, is the current in the coil and $\mu_0$ is the permeability of free space (in vacuum).
The question I have is, how do you calculate the separation distance between two Helmholtz coils, such that the magnetic field between them is uniform.
On my attempt, I used the principle of super-position, with the aid of the following diagram:
I said the following must be true:
$$ B_{constant} = \frac{\mu_0NIR^2}{2}[\frac{1}{(R^2+x^2)^{3/2}}+\frac{1}{(R^2 +(d-x)^2)^{3/2}}] $$
I am wondering now if this approach will work, and also if there is an easier method as there seems to be a lot of algebra involved and a potential polynomial in d of degree 12.