Hi Physics StackExchange!
Currently, I'm amidst research on a conceptually quite easy phenomenon: a magnetic force exerted on a (point) object by a coil with current I. In this research, I focus on the relation between magnetic force and distance x. Now, I have stumbled across two questions I cannot seem to figure out, mostly in mathematics.
Let the point object P be directly in the centre axis outside the coil, as shown in the figure below. We assume there is no external force or field disturbing this situation, everything is stationary, the coil is perfectly distributed, and the current remains constant.
The derivation of a single enclosed loop imposing a magnetic field on a point with distance x, suppose only $n_1$ in the figure, I already have down. Namely:
$$B = \frac{\mu_0IR^2}{2 (R^2+x^2)^{\frac{3}{2}}}$$
I now wish to express the magnetic field in point P as a result of the entire coil with N loops and length L. In this example, I have seven loops drawn. By this, $d\ell = \frac{L}{N-1}$. So I now stand to reason to write:
$$B = \sum^N_{n=0} \frac{\mu_0IR^2}{2 (R^2+(x+n\frac{L}{N-1}^2)^{\frac{3}{2}}}$$
Would there be any way to express the magnetic field more elegantly than this?
My second question is regarding the abstraction of a coil as parallel, separate closed loops. If a coil is significantly wide with few loops, the angle at which the enclosed circuit imposes a magnetic field is significantly distorted. However, I have no idea how to show this mathematically. For the derivation of a single enclosed loop I omitted prior, we cut the loop in segments $d\ell$ (different from the $d\ell$ used before) and use symmetry to conclude the perpendicular magnetic field $B_\perp$ cancels out, leaving only the parallel magnetic field $B_{l//}$. If we then integrate over $d\ell$, we arrive at the first formula. How would one go about deriving the magnetic field of a more slanted, wide coil? I presume a three-dimensional equation for a coil is used, although I might be mistaken.
Thanks in advance for the help!