# Why we don't use Ampere's law to find the magnetic field due to a wire of finite length at its perpendicular bisector?

I know that finite length doesn't have symmetry and thus its hard to apply maths here but take the case of magnetic field of a wire of finite length at a distance r from axis of the wire exactly at perpendicular bisector of wire . The magnetic field is symmetric here , but still , amperes circuital law doesn't apply here . Why is it so ?

• Could someone do this by Ampere's law, theoretically? The integrals I end up with are too intimidating. – PhysicsMonster Sep 22 '20 at 5:23

Ampere's law always applies everywhere (in static conditions); it is one of the Maxwell equations. The only thing is that you have to apply it correctly. It only ever tells you about one component of $$\bf B$$ at a time, so you have to look at the components one by one, and make sure you do the integral correctly. The case of a finite wire is artificial, as Farcher points out, and this makes the integral in this example impossible to perform until you have specified where the rest of the wire goes. This is because the field appearing in Ampere's law is not just the contribution to the field sourced by whatever current passes through the surface under consideration; it is the whole field at the boundary of the surface.
Then these current carrying connecting wires will also produce a magnetic field which needs to be included in the line integral $$\int \vec B \cdot d \vec s$$.
Then there is a time varying electric field and the $$\frac {\partial}{\partial t}\int\vec E\cdot d\vec A$$ term has to be included.