I was solving a homework problem (don't worry it's already solved, I'm just curious as to how you can view magnetic fields), and I'm trying to figure out why the conclusion is what it is.
There is current running through the wire above, while you hold a compass below the wire, facing north. The direction of North is given. The current is AC current, and switches directions 100 times a second. What happens to the compass when this is occuring?
The answer was that the compass faces north. My answer was that they "cancel out", so the compass is instead affected by earth's B field, but the book said that the change in current was "too fast" as its reasoning.
But what is actually going on in this situation? Are there magnetic fields constantly opposing each other? How do the fields "cancel each other" if the current swaps direction? Wouldn't that field instantly disappear, resulting in just one field existing until the current swaps again?
If my questions are too broad, don't hesitate to ask me to clarify and I'll do my best. Thanks!
Edit: The book said the compass, couldn't keep up with the change, to avoid confusion. Which makes sense but still doesn't answer what goes on with the fields atleast for me.